List of usage examples for org.eclipse.jface.preference ScaleFieldEditor setPage
public void setPage(DialogPage dialogPage)
From source file:org.eclipse.papyrus.diagram.common.groups.preferences.OpacityGroup.java
License:Open Source License
/** * Creates the content./*w w w. ja va 2 s . c o m*/ * * @param parent * the parent */ public void createContent(Composite parent) { Group visibilityGroup = new Group(parent, SWT.SCROLL_PAGE); /* * TODO Refactor layout (help component at the end of the line) */ visibilityGroup.setLayout(new GridLayout()); visibilityGroup.setText("Opacity of the compartment"); ScaleFieldEditor alphaEditor = new ScaleFieldEditor(preferenceName, "Opacity", visibilityGroup, 0, 255, 5, 20); alphaEditor.setPage(dialogPage); addFieldEditor(alphaEditor); HelpComponentFactory.createHelpComponent(visibilityGroup, new FormToolkit(parent.getDisplay()), "Set to min to make the compartment totally transparent"); }
From source file:org.eclipse.papyrus.uml.diagram.activity.activitygroup.preferences.OpacityGroup.java
License:Open Source License
/** * Creates the content./*from ww w . j a va 2 s . com*/ * * @param parent * the parent */ public void createContent(Composite parent) { Group visibilityGroup = new Group(parent, SWT.SCROLL_PAGE); /* * TODO Refactor layout (help component at the end of the line) */ visibilityGroup.setLayout(new GridLayout()); visibilityGroup.setText("Opacity of the compartment"); ScaleFieldEditor alphaEditor = new ScaleFieldEditor(preferenceName, "Opacity", visibilityGroup, 0, 255, 5, 20); alphaEditor.setPage(dialogPage); addFieldEditor(alphaEditor); HelpComponentFactory.createHelpComponent(visibilityGroup, new FormToolkit(parent.getDisplay()), "Set to min to make the compartment totally transparent"); }