|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.m2m.atl.adt.ui.preferences.AbstractPreferencePage
public abstract class AbstractPreferencePage
This abstract class permits other preferences pages to use some classical method such creating fields ofenly used.
| Field Summary | |
|---|---|
protected java.lang.String[][] |
checkBoxModel
|
protected org.eclipse.swt.widgets.List |
colorList
|
protected java.lang.String[][] |
colorListModel
|
protected org.eclipse.jface.preference.ColorSelector |
colorSelector
|
protected AtlPreferenceStore |
fPreferenceeStore
|
protected java.lang.String[][] |
textFieldModel
|
| Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
|---|
ERROR, INFORMATION, NONE, WARNING |
| Constructor Summary | |
|---|---|
AbstractPreferencePage(java.lang.String title)
Creates a new preference page with a title using the PreferencePage constructor. |
|
| Method Summary | |
|---|---|
void |
dispose()
|
protected org.eclipse.jface.preference.IPreferenceStore |
doGetPreferenceStore()
|
org.eclipse.jface.preference.IPreferenceStore |
getPreferenceStore()
|
protected void |
handleColorListSelection()
When a selection is made, the color button handles the color sets by this selection. |
void |
init(org.eclipse.ui.IWorkbench workbench)
|
protected void |
initialize()
Initializes the preference page with the user values. |
protected void |
initializeFieldsToDefaultValues()
Initializes the preference page widgets with the default values. |
protected void |
initializeFieldsToUserValues()
Initializes the preference page widgets with the user values. |
protected org.eclipse.swt.widgets.Button |
newCheckBoxField(org.eclipse.swt.widgets.Composite parent,
java.lang.String label)
Creates an new checkbox instance. |
protected org.eclipse.swt.widgets.Button |
newCheckBoxField(org.eclipse.swt.widgets.Composite parent,
java.lang.String label,
java.lang.String key)
Creates an new checkbox instance and stores it in a hash map. |
protected org.eclipse.swt.widgets.Button |
newCheckBoxField(org.eclipse.swt.widgets.Composite parent,
java.lang.String label,
java.lang.String key,
org.eclipse.swt.events.SelectionListener sl)
Creates an new checkbox instance and stores it in a hash map. |
protected org.eclipse.swt.widgets.Control[] |
newColorList(org.eclipse.swt.widgets.Composite parent,
java.lang.String listLabel,
java.lang.String buttonLabel,
java.lang.String[][] colorListModel)
Creates a new color list with a label and a color selector button. |
protected org.eclipse.swt.widgets.Composite |
newComposite(org.eclipse.swt.widgets.Composite parent,
int numColumns)
Creates composite control and sets the default layout data. |
protected org.eclipse.swt.widgets.Composite |
newCompositeCheckBoxes(org.eclipse.swt.widgets.Composite parent)
|
protected org.eclipse.swt.widgets.Composite |
newCompositeColors(org.eclipse.swt.widgets.Composite parent,
java.lang.String listLabel,
java.lang.String buttonLabel)
|
protected org.eclipse.swt.widgets.Composite |
newCompositeTextFields(org.eclipse.swt.widgets.Composite parent)
|
protected org.eclipse.swt.widgets.Group |
newGroup(org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
Creates a new elements group with a title above the side. |
protected org.eclipse.swt.widgets.Label |
newLabelField(org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
Utility method that creates a label instance and sets the default layout data. |
protected org.eclipse.swt.widgets.Text |
newLabelledTextField(org.eclipse.swt.widgets.Composite parent,
java.lang.String label,
java.lang.String text,
int limit,
java.lang.String key)
Creates a new group composed by a label and an editable text field. |
protected org.eclipse.swt.widgets.Button |
newPushButton(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
org.eclipse.swt.events.SelectionListener sl)
Utility method that creates a push button instance and sets the default layout data. |
protected org.eclipse.swt.widgets.Button |
newRadioButton(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
org.eclipse.swt.events.SelectionListener sl)
Utility method that creates a radio button instance and sets the default layout data. |
protected org.eclipse.swt.widgets.List |
newScrollList(org.eclipse.swt.widgets.Composite parent)
Creates a new scroll list. |
protected org.eclipse.swt.widgets.TabItem |
newTabItem(org.eclipse.swt.widgets.TabFolder parent,
java.lang.String text,
org.eclipse.swt.widgets.Control control)
Creates a new tab item in a tab folder. |
protected org.eclipse.swt.widgets.Text |
newTextField(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
int limit)
Creates a new editable text field. |
protected org.eclipse.swt.widgets.Text |
newTextField(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
int limit,
java.lang.String key)
Creates a new editable text field. |
protected org.eclipse.swt.widgets.Text |
newTextField(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
int limit,
java.lang.String key,
org.eclipse.swt.events.ModifyListener sl)
Creates a new editable text field. |
protected void |
performDefaults()
|
boolean |
performOk()
|
protected void |
tabForward(org.eclipse.swt.widgets.Composite parent)
Creates a tab of one horizontal spans. |
| Methods inherited from class org.eclipse.jface.preference.PreferencePage |
|---|
applyData, applyDialogFont, computeSize, contributeButtons, createContents, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, getApplyButton, getContainer, getDefaultsButton, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton |
| Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
|---|
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.preference.IPreferencePage |
|---|
computeSize, isValid, okToLeave, performCancel, setContainer, setSize |
| Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
|---|
createControl, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
| Field Detail |
|---|
protected java.lang.String[][] checkBoxModel
protected org.eclipse.swt.widgets.List colorList
protected java.lang.String[][] colorListModel
protected org.eclipse.jface.preference.ColorSelector colorSelector
protected AtlPreferenceStore fPreferenceeStore
protected java.lang.String[][] textFieldModel
| Constructor Detail |
|---|
public AbstractPreferencePage(java.lang.String title)
PreferencePage constructor. Above
that, a new preference fPreferenceeStore is created to react with the default one of the
AtlUIPlugin.
title - the preference page title| Method Detail |
|---|
public void dispose()
dispose in interface org.eclipse.jface.dialogs.IDialogPagedispose in class org.eclipse.jface.dialogs.DialogPageprotected org.eclipse.jface.preference.IPreferenceStore doGetPreferenceStore()
doGetPreferenceStore in class org.eclipse.jface.preference.PreferencePagepublic org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
getPreferenceStore in class org.eclipse.jface.preference.PreferencePageprotected void handleColorListSelection()
public void init(org.eclipse.ui.IWorkbench workbench)
init in interface org.eclipse.ui.IWorkbenchPreferencePageprotected void initialize()
protected void initializeFieldsToDefaultValues()
protected void initializeFieldsToUserValues()
protected org.eclipse.swt.widgets.Button newCheckBoxField(org.eclipse.swt.widgets.Composite parent,
java.lang.String label)
parent - the composite in which to create the checkboxlabel - the string to set into the checkbox
protected org.eclipse.swt.widgets.Button newCheckBoxField(org.eclipse.swt.widgets.Composite parent,
java.lang.String label,
java.lang.String key)
checkBoxFieldListener is associated with.
parent - the composite in which to create the checkboxlabel - the string to set into the checkboxkey - the string key associated
protected org.eclipse.swt.widgets.Button newCheckBoxField(org.eclipse.swt.widgets.Composite parent,
java.lang.String label,
java.lang.String key,
org.eclipse.swt.events.SelectionListener sl)
parent - the composite in which to create the checkboxlabel - the string to set into the checkboxkey - the string key associatedsl - the selection listener associated with
protected org.eclipse.swt.widgets.Control[] newColorList(org.eclipse.swt.widgets.Composite parent,
java.lang.String listLabel,
java.lang.String buttonLabel,
java.lang.String[][] colorListModel)
parent - the parent composite grouplistLabel - the color list labelbuttonLabel - the color selector labelcolorListModel - the models of the color list
protected org.eclipse.swt.widgets.Composite newComposite(org.eclipse.swt.widgets.Composite parent,
int numColumns)
parent - the parent of the new compositenumColumns - the number of columns for the new composite
protected org.eclipse.swt.widgets.Composite newCompositeCheckBoxes(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.swt.widgets.Composite newCompositeColors(org.eclipse.swt.widgets.Composite parent,
java.lang.String listLabel,
java.lang.String buttonLabel)
protected org.eclipse.swt.widgets.Composite newCompositeTextFields(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.swt.widgets.Group newGroup(org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
parent - the parent of the new grouptext - the title of the new group
protected org.eclipse.swt.widgets.Label newLabelField(org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
parent - the parent for the new labeltext - the text for the new label
protected org.eclipse.swt.widgets.Text newLabelledTextField(org.eclipse.swt.widgets.Composite parent,
java.lang.String label,
java.lang.String text,
int limit,
java.lang.String key)
parent - the parent grouplabel - the label of the grouptext - the default value of the text fieldlimit - the maximum number of chars in the fieldkey - the string key associated
protected org.eclipse.swt.widgets.Button newPushButton(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
org.eclipse.swt.events.SelectionListener sl)
parent - the parent for the new buttontext - the label for the new button
protected org.eclipse.swt.widgets.Button newRadioButton(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
org.eclipse.swt.events.SelectionListener sl)
parent - the parent for the new buttontext - the label for the new button
protected org.eclipse.swt.widgets.List newScrollList(org.eclipse.swt.widgets.Composite parent)
parent - the parent in which the list is created
protected org.eclipse.swt.widgets.TabItem newTabItem(org.eclipse.swt.widgets.TabFolder parent,
java.lang.String text,
org.eclipse.swt.widgets.Control control)
parent - the parent tab foldertext - the tab item labelcontrol - the page of this item
protected org.eclipse.swt.widgets.Text newTextField(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
int limit)
parent - the parent grouptext - the default value of the text fieldlimit - the maximum number of chars in the field
protected org.eclipse.swt.widgets.Text newTextField(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
int limit,
java.lang.String key)
TextFieldListener is associated
with.
parent - the parent grouptext - the default value of the text fieldlimit - the maximum number of chars in the fieldkey - the string key associated
protected org.eclipse.swt.widgets.Text newTextField(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
int limit,
java.lang.String key,
org.eclipse.swt.events.ModifyListener sl)
parent - the parent grouptext - the default value of the text fieldlimit - the maximum number of chars in the fieldkey - the string key associatedsl - the selection listener associated with
protected void performDefaults()
performDefaults in class org.eclipse.jface.preference.PreferencePagepublic boolean performOk()
performOk in interface org.eclipse.jface.preference.IPreferencePageperformOk in class org.eclipse.jface.preference.PreferencePageprotected void tabForward(org.eclipse.swt.widgets.Composite parent)
parent - the parent in which the tab should be created
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||