|
RSE Release 3.2 |
|||||||||
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.ui.dialogs.PropertyPage
org.eclipse.rse.ui.propertypages.SystemBasePropertyPage
org.eclipse.rse.ui.propertypages.SystemChangeFilterPropertyPage
public class SystemChangeFilterPropertyPage
This is the property page for changing filters. This page used to be the Change dialog. The plugin.xml file registers this for objects of class org.eclipse.rse.internal.filters.SystemFilter or org.eclipse.rse.filters.SystemFilterReference.
If you have your own change filter dialog (versus configuring ours) you must
configure this pane yourself by overriding
SubSystemConfigurationAdapter.customizeChangeFilterPropertyPage(ISubSystemConfiguration, SystemChangeFilterPropertyPage, ISystemFilter, Shell)
and configuring the pane as described in that method's javadoc.
Field Summary | |
---|---|
protected SystemChangeFilterPane |
changeFilterPane
|
protected SystemFilterStringEditPane |
editPane
|
protected String |
errorMessage
|
protected boolean |
initDone
|
Fields inherited from class org.eclipse.rse.ui.propertypages.SystemBasePropertyPage |
---|
buttonsComposite, contentArea, msgLine, msgLineSet |
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
SystemChangeFilterPropertyPage()
Constructor for SystemFilterPropertyPage |
Method Summary | |
---|---|
protected void |
contributeButtons(Composite parent)
Intercept of parent so we can reset the default button |
protected Control |
createContentArea(Composite parent)
Create the page's GUI contents. |
protected ISystemFilter |
getFilter()
Get the input filter object |
SystemFilterStringEditPane |
getFilterStringEditPane(Shell shell)
Return our edit pane. |
boolean |
performCancel()
Called by parent when user presses Cancel |
boolean |
performOk()
Called by parent when user presses OK |
void |
setDuplicateFilterStringErrorMessage(SystemMessage msg)
Configuration method Set the error message to use when the user is editing or creating a filter string, and the Apply processing detects a duplicate filter string in the list. |
void |
setEditable(boolean editable)
Set if the edit pane is not to be editable |
void |
setFilterStringEditPane(SystemFilterStringEditPane editPane)
Configuration method Specify an edit pane that prompts the user for the contents of a filter string. |
void |
setFilterStringValidator(ISystemValidator v)
Configuration method Call this to specify a validator for the filter string. |
void |
setListLabel(String label,
String tip)
Configuration method Set the label shown in group box around the filter string list, and the tooltip text for the list box. |
void |
setNamePromptLabel(String label,
String tip)
Configuration method Set the name prompt label and tooltip text. |
void |
setNewListItemText(String label)
Set the string to show as the first item in the list. |
void |
setPageComplete(boolean complete)
The comleteness of the page has changed. |
void |
setParentPoolPromptLabel(String label,
String tip)
Configuration method Set the Parent Filter Pool prompt label and tooltip text. |
void |
setSupportsMultipleStrings(boolean multi)
Set if the user is to be allowed to create multiple filter strings or not. |
void |
setSystemFilterPoolManagerProvider(ISystemFilterPoolManagerProvider provider)
Configuration method Set the contextual system filter pool manager provider. |
void |
setSystemFilterPoolReferenceManagerProvider(ISystemFilterPoolReferenceManagerProvider provider)
Configuration method Set the contextual system filter pool reference manager provider. |
void |
setWantTestButton(boolean wantTestButton)
Configuration method Specify if you want to include a test button or not. |
protected boolean |
verifyPageContents()
Parent-required method. |
Methods inherited from class org.eclipse.rse.ui.propertypages.SystemBasePropertyPage |
---|
addFillerLine, addSeparatorLine, clearErrorMessage, clearMessage, configureMessageLine, createContents, createLabeledCombo, createLabeledLabel, createLabeledText, createLabeledVerbiage, getMessageLine, getSystemErrorMessage, grabExcessSpace, okToLeave, setBusyCursor, setErrorMessage, setErrorMessage, setErrorMessage, setHelp, setMessage, setMessage, setMessageLine, wantAutomaticValidManagement, wantDefaultAndApplyButton, wantMnemonics |
Methods inherited from class org.eclipse.ui.dialogs.PropertyPage |
---|
getElement, setElement |
Methods inherited from class org.eclipse.jface.preference.PreferencePage |
---|
applyData, applyDialogFont, computeSize, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, performApply, performDefaults, performHelp, setContainer, 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, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.rse.ui.messages.ISystemMessageLine |
---|
getErrorMessage, getMessage |
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage |
---|
computeSize, isValid, setContainer, setSize |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
---|
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
Field Detail |
---|
protected String errorMessage
protected boolean initDone
protected SystemChangeFilterPane changeFilterPane
protected SystemFilterStringEditPane editPane
Constructor Detail |
---|
public SystemChangeFilterPropertyPage()
Method Detail |
---|
public void setFilterStringEditPane(SystemFilterStringEditPane editPane)
public void setSystemFilterPoolReferenceManagerProvider(ISystemFilterPoolReferenceManagerProvider provider)
This is passed into the filter and filter string wizards and dialogs in case it is needed for context.
public void setSystemFilterPoolManagerProvider(ISystemFilterPoolManagerProvider provider)
This is passed into the filter and filter string wizards and dialogs in case it is needed for context.
public void setParentPoolPromptLabel(String label, String tip)
public void setNamePromptLabel(String label, String tip)
public void setListLabel(String label, String tip)
public void setNewListItemText(String label)
public void setFilterStringValidator(ISystemValidator v)
Your validator should extend ValidatorFilterString to inherited the uniqueness error checking.
Alternatively, if all you want is a unique error message for the case when duplicates are found, call setDuplicateFilterStringErrorMessage, and it will be used in the default validator.
public void setDuplicateFilterStringErrorMessage(SystemMessage msg)
public void setWantTestButton(boolean wantTestButton)
public void setEditable(boolean editable)
public void setSupportsMultipleStrings(boolean multi)
protected Control createContentArea(Composite parent)
createContentArea
in class SystemBasePropertyPage
PreferencePage.createContents(Composite)
protected void contributeButtons(Composite parent)
contributeButtons
in class SystemBasePropertyPage
protected boolean verifyPageContents()
verifyPageContents
in class SystemBasePropertyPage
protected ISystemFilter getFilter()
public boolean performOk()
performOk
in interface IPreferencePage
performOk
in class SystemBasePropertyPage
public boolean performCancel()
performCancel
in interface IPreferencePage
performCancel
in class PreferencePage
public void setPageComplete(boolean complete)
setPageComplete
in interface ISystemPageCompleteListener
complete
- complete indicator as set by the callerSystemBaseForm.addPageCompleteListener(ISystemPageCompleteListener)
public SystemFilterStringEditPane getFilterStringEditPane(Shell shell)
ISystemChangeFilterPaneEditPaneSupplier
.
getFilterStringEditPane
in interface ISystemChangeFilterPaneEditPaneSupplier
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |