java.lang.Object
|
+--org.eclipse.jface.dialogs.DialogPage
|
+--org.eclipse.jface.preference.PreferencePage
|
+--org.eclipse.ui.dialogs.PropertyPage
|
+--com.ibm.lab.soln.dialogs.MyPropertyPage
Displays two properties,
My_Prop_Nameand
Recent_Editsassociated with the selected resource. These properties are stored as persistent properties. Keys are defined in
IDialogsIDs.
IDialogsIDs,
PropertyPage,
IWorkbenchPropertyPage| Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
ERROR, INFORMATION, NONE, WARNING |
| Constructor Summary | |
MyPropertyPage()
Default constructor. |
|
| Method Summary | |
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent)
Creates the user interface for the property page. |
boolean |
getReditPropertyState()
Gets the property value for the |
protected void |
performApply()
Can be used to implement any special processing, such as notification, if required. |
boolean |
performCancel()
Can be used to implement any cleanup processing that may be required. |
protected void |
performDefaults()
Can be used to retrieve and set any defaults for the properties that are displayed as part of this page. |
boolean |
performOk()
Saves a persistent property for the current resource. |
void |
setReditPropertyState(boolean value)
Sets the property value for the |
void |
setVisible(boolean visible)
Method triggered as page is entered and exited. |
| Methods inherited from class org.eclipse.ui.dialogs.PropertyPage |
getElement, setElement |
| Methods inherited from class org.eclipse.jface.preference.PreferencePage |
computeSize, contributeButtons, createControl, createDescriptionLabel, doComputeSize, doGetPreferenceStore, getContainer, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton |
| Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setControl, setDescription, setImageDescriptor, setMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPropertyPage |
getElement, setElement |
| Methods inherited from interface org.eclipse.jface.preference.IPreferencePage |
computeSize, isValid, okToLeave, setContainer, setSize |
| Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle |
| Constructor Detail |
public MyPropertyPage()
| Method Detail |
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
Recent_Editskey is obtained at this time. The
My_Prop_Nameproperty key value is obtained in the
setVisible() method.createContents in class org.eclipse.jface.preference.PreferencePagePreferencePage.createContents(org.eclipse.swt.widgets.Composite)public boolean getReditPropertyState()
Recent_Editskey.
protected void performApply()
performOk method as that method will also be triggered
when the Apply push button is selected.performApply in class org.eclipse.jface.preference.PreferencePagePreferencePage.performApply()public boolean performCancel()
performCancel in interface org.eclipse.jface.preference.IPreferencePageperformCancel in class org.eclipse.jface.preference.PreferencePagePreferencePage.performCancel()protected void performDefaults()
performDefaults in class org.eclipse.jface.preference.PreferencePagePreferencePage.performDefaults()public boolean performOk()
performOk in interface org.eclipse.jface.preference.IPreferencePageperformOk in class org.eclipse.jface.preference.PreferencePagePreferencePage.performOk()public void setReditPropertyState(boolean value)
Recent_Editskey.
public void setVisible(boolean visible)
My_Prop_Nameproperty key value is obtained every time the page is entered. The other key shown on this page is only retrieved as the user interface is constructed in the
createContents()
method.setVisible in interface org.eclipse.jface.dialogs.IDialogPagesetVisible in class org.eclipse.jface.dialogs.DialogPageDialogPage.setVisible(boolean)