Class DrawerEntryPage
java.lang.Object
org.eclipse.gef.ui.palette.customize.DefaultEntryPage
org.eclipse.gef.ui.palette.customize.DrawerEntryPage
- All Implemented Interfaces:
EntryPage
The default entry page for drawers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(Composite parent, PaletteEntry entry) Creates the Control that displays the properties of the given entry.protected ButtonCreates the button that provides the option to pin a drawer open at start-up.protected ButtonCreates the button that provides the option to have a drawer open at start-up.protected PaletteDrawerConvenience method that provides access to the PaletteDrawer.protected ButtonReturns the checkbox button which controls whether the drawer is initially open.protected ButtonReturns the checkbox button which controls whether the drawer is initially pinned.protected voidhandleOpenSelected(boolean selection) This method is invoked when the selection state of the option to open drawer at start-up is toggled.protected voidhandlePinSelected(boolean selection) This method is invoked when the selection state of the option to pin a drawer open at start-up is toggled.Methods inherited from class org.eclipse.gef.ui.palette.customize.DefaultEntryPage
apply, createDescText, createHiddenCheckBox, createLabel, createNameText, createText, getControl, getEntry, getMessage, getPageContainer, getPermission, handleDescriptionChanged, handleHiddenSelected, handleNameChanged, setPageContainer
-
Constructor Details
-
DrawerEntryPage
public DrawerEntryPage()
-
-
Method Details
-
createControl
Description copied from interface:EntryPageCreates the Control that displays the properties of the given entry. This method will only be called once. The parent Composite's Font is set to the Workbench Dialog Font. The page's Controls should use the Workbench Dialog Font where appropriate.- Specified by:
createControlin interfaceEntryPage- Overrides:
createControlin classDefaultEntryPage- Parameters:
parent- The Composite in which the Control has to be createdentry- The entry whose properties have to be displayed- See Also:
-
createOpenDrawerInitiallyOption
Creates the button that provides the option to pin a drawer open at start-up.- Parameters:
panel- The parent Composite- Returns:
- The button for the new option
-
createPinDrawerInitiallyOption
Creates the button that provides the option to have a drawer open at start-up.- Parameters:
panel- The parent Composite- Returns:
- The button for the new option
-
getDrawer
Convenience method that provides access to the PaletteDrawer.- Returns:
- the entry as a PaletteDrawer
-
getOpenDrawerInitiallyButton
Returns the checkbox button which controls whether the drawer is initially open.- Returns:
- the checkbox button which controls the initially open setting.
-
getPinDrawerInitiallyButton
Returns the checkbox button which controls whether the drawer is initially pinned.- Returns:
- the checkbox button which controls the initially pinned setting.
-
handleOpenSelected
protected void handleOpenSelected(boolean selection) This method is invoked when the selection state of the option to open drawer at start-up is toggled.It sets the initial state of the drawer accordingly.
- Parameters:
selection-trueif that option is now selected
-
handlePinSelected
protected void handlePinSelected(boolean selection) This method is invoked when the selection state of the option to pin a drawer open at start-up is toggled.It sets the initial state of the drawer accordingly.
- Parameters:
selection-trueif that option is now selected
-