~ubuntu-branches/ubuntu/utopic/eclipse-eclox/utopic

« back to all changes in this revision

Viewing changes to eclox.ui/src/eclox/ui/editor/advanced/Block.java

  • Committer: Package Import Robot
  • Author(s): Graham Inggs
  • Date: 2013-07-07 20:33:10 UTC
  • Revision ID: package-import@ubuntu.com-20130707203310-a44yw80gqtc2s9ob
Tags: upstream-0.10.0
ImportĀ upstreamĀ versionĀ 0.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
/*******************************************************************************
 
3
 * Copyright (C) 2003-2004, 2013, Guillaume Brocker
 
4
 * 
 
5
 * All rights reserved. This program and the accompanying materials
 
6
 * are made available under the terms of the Eclipse Public License v1.0
 
7
 * which accompanies this distribution, and is available at
 
8
 * http://www.eclipse.org/legal/epl-v10.html
 
9
 *
 
10
 * Contributors:
 
11
 *     Guillaume Brocker - Initial API and implementation
 
12
 *
 
13
 ******************************************************************************/ 
 
14
 
 
15
package eclox.ui.editor.advanced;
 
16
 
 
17
import org.eclipse.swt.widgets.Composite;
 
18
import org.eclipse.ui.forms.DetailsPart;
 
19
import org.eclipse.ui.forms.IManagedForm;
 
20
import org.eclipse.ui.forms.MasterDetailsBlock;
 
21
 
 
22
import eclox.core.doxyfiles.Doxyfile;
 
23
import eclox.core.doxyfiles.Setting;
 
24
 
 
25
/**
 
26
 * @author gbrocker
 
27
 */
 
28
public class Block extends MasterDetailsBlock {
 
29
    
 
30
    /**
 
31
     * the doxyfile to edit
 
32
     */
 
33
    private Doxyfile doxyfile;
 
34
    
 
35
    /**
 
36
     * Constructor
 
37
     * 
 
38
     * @param   doxyfile        the doxyfile to edit
 
39
     */
 
40
    Block( Doxyfile doxyfile ) {
 
41
        this.doxyfile = doxyfile;
 
42
    }
 
43
        
 
44
    /**
 
45
     * @see org.eclipse.ui.forms.MasterDetailsBlock#createMasterPart(org.eclipse.ui.forms.IManagedForm, org.eclipse.swt.widgets.Composite)
 
46
     */
 
47
    protected void createMasterPart(IManagedForm managedForm, Composite parent) {
 
48
        managedForm.addPart( new MasterPart(parent, managedForm.getToolkit(), doxyfile) );
 
49
    }
 
50
 
 
51
    /**
 
52
     * @see org.eclipse.ui.forms.MasterDetailsBlock#registerPages(org.eclipse.ui.forms.DetailsPart)
 
53
     */
 
54
    protected void registerPages(DetailsPart detailsPart) {
 
55
        detailsPart.registerPage(Setting.class, new DetailsPage());
 
56
    }
 
57
 
 
58
    /**
 
59
     * @see org.eclipse.ui.forms.MasterDetailsBlock#createToolBarActions(org.eclipse.ui.forms.IManagedForm)
 
60
     */
 
61
    protected void createToolBarActions(IManagedForm managedForm) {}
 
62
 
 
63
}