2
/*******************************************************************************
3
* Copyright (C) 2003-2004, 2013, Guillaume Brocker
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
11
* Guillaume Brocker - Initial API and implementation
13
******************************************************************************/
15
package eclox.ui.editor.advanced;
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;
22
import eclox.core.doxyfiles.Doxyfile;
23
import eclox.core.doxyfiles.Setting;
28
public class Block extends MasterDetailsBlock {
31
* the doxyfile to edit
33
private Doxyfile doxyfile;
38
* @param doxyfile the doxyfile to edit
40
Block( Doxyfile doxyfile ) {
41
this.doxyfile = doxyfile;
45
* @see org.eclipse.ui.forms.MasterDetailsBlock#createMasterPart(org.eclipse.ui.forms.IManagedForm, org.eclipse.swt.widgets.Composite)
47
protected void createMasterPart(IManagedForm managedForm, Composite parent) {
48
managedForm.addPart( new MasterPart(parent, managedForm.getToolkit(), doxyfile) );
52
* @see org.eclipse.ui.forms.MasterDetailsBlock#registerPages(org.eclipse.ui.forms.DetailsPart)
54
protected void registerPages(DetailsPart detailsPart) {
55
detailsPart.registerPage(Setting.class, new DetailsPage());
59
* @see org.eclipse.ui.forms.MasterDetailsBlock#createToolBarActions(org.eclipse.ui.forms.IManagedForm)
61
protected void createToolBarActions(IManagedForm managedForm) {}