|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.ui.filters.SystemFilterStringEditPane
org.eclipse.rse.files.ui.widgets.SystemFileFilterStringEditPane
public class SystemFileFilterStringEditPane
The edit pane for page 1 of the New File Filter wizard. Prompts for the details of a single file filter string.
Field Summary | |
---|---|
protected boolean |
calledFromVerify
|
protected boolean |
callerInstanceOfSystemPromptDialog
|
protected boolean |
callerInstanceOfWizardPage
|
protected boolean |
caseSensitive
|
protected boolean |
dontStealFocus
|
protected Button |
filesOnlyCheckBox
|
protected ISystemValidator |
fileValidator
|
protected int |
filterFileLength
|
protected int |
filterPathLength
|
protected SystemRemoteFolderCombo |
folderCombo
|
protected String[] |
inputFilterStrings
|
protected RemoteFileSubSystemConfiguration |
inputSubsystemConfiguration
|
protected Label |
labelFile
|
protected Label |
labelTypes
|
protected boolean |
noValidation
|
protected ISystemValidator |
pathValidator
|
protected Button |
selectTypesButton
|
protected boolean |
skipUniquenessChecking
|
protected Button |
subsetByFileNameRadioButton
|
protected Button |
subsetByFileTypesRadioButton
|
protected Text |
textFile
|
protected Text |
textTypes
|
Fields inherited from class org.eclipse.rse.ui.filters.SystemFilterStringEditPane |
---|
changeFilterMode, currentSelectionIndex, dlgTestButton, editable, errorMessage, ignoreChanges, inputFilterString, labelString, listeners, newMode, provider, refProvider, shell, skipEventFiring, textString, type |
Constructor Summary | |
---|---|
SystemFileFilterStringEditPane(Shell shell)
Constructor for SystemFileFilterStringEditPane. |
Method Summary | |
---|---|
protected boolean |
areFieldsComplete()
Must be overridden if createContents is overridden. |
boolean |
canSaveImplicitly()
If the file filter string is in new mode, and we have a non-Unix system, then if the folder name is empty and other fields are at default, we do not allow an implicit save through changing of filter string or pressing Ok button in the change filter pane. |
Control |
createContents(Composite parent)
Populate the pane with the GUI widgets |
protected void |
doInitializeFields()
Override of parent. |
String |
getDefaultFilterName()
Overridable getter method. |
static ValidatorFileFilterString |
getFileFilterStringValidator(IRemoteFileSubSystemConfiguration ssFactory)
Reusable method to return a name validator for creating/update a file system filter string. |
static ValidatorFileFilterString |
getFileFilterStringValidator(ISystemFilter filter,
String filterString)
Reusable method to return a name validator for creating/update a file system filter string |
String |
getFilterString()
Get the filter string in its current form. |
Control |
getInitialFocusControl()
Return the control to recieve initial focus. |
void |
processTest(Shell shell)
Called by us or by owning dialog when common Test button is pressed |
protected void |
resetFields()
This is called in the change filter dialog when the user selects "new", or selects another string. |
void |
setEditable(boolean editable)
Sets whether or not the edit pane is not to be editable. |
void |
setExistingStrings(String[] existingStrings,
boolean caseSensitive)
Existing strings are used to aid in uniqueness validation. |
void |
setFilterFileLength(int max)
Call this to override the text limit for the filter name, from the default of 40. |
void |
setFilterPathLength(int max)
Call this to override the text limit for the filter name, from the default of 40. |
void |
setSystemFilterPoolManagerProvider(ISystemFilterPoolManagerProvider provider)
Set the contextual system filter pool manager provider. |
void |
setSystemFilterPoolReferenceManagerProvider(ISystemFilterPoolReferenceManagerProvider provider)
Set the contextual system filter pool reference manager provider. |
protected SystemMessage |
validateFileInput()
This hook method is called whenever the text changes in the input field. |
protected SystemMessage |
validateFolderInput()
This hook method is called whenever the text changes in the input field. |
SystemMessage |
verify()
Completes processing of the wizard page or dialog. |
void |
widgetSelected(SelectionEvent event)
User has selected something |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Button filesOnlyCheckBox
protected Button subsetByFileNameRadioButton
protected Button subsetByFileTypesRadioButton
protected Button selectTypesButton
protected Label labelFile
protected Label labelTypes
protected Text textFile
protected Text textTypes
protected SystemRemoteFolderCombo folderCombo
protected int filterFileLength
protected int filterPathLength
protected ISystemValidator pathValidator
protected ISystemValidator fileValidator
protected boolean caseSensitive
protected String[] inputFilterStrings
protected boolean noValidation
protected boolean callerInstanceOfWizardPage
protected boolean callerInstanceOfSystemPromptDialog
protected boolean skipUniquenessChecking
protected boolean calledFromVerify
protected boolean dontStealFocus
protected RemoteFileSubSystemConfiguration inputSubsystemConfiguration
Constructor Detail |
---|
public SystemFileFilterStringEditPane(Shell shell)
shell
- Method Detail |
---|
public void setSystemFilterPoolReferenceManagerProvider(ISystemFilterPoolReferenceManagerProvider provider)
Intercept of parent so we can extract the isCaseSensitive() value.
setSystemFilterPoolReferenceManagerProvider
in class SystemFilterStringEditPane
SystemFilterStringEditPane.setSystemFilterPoolManagerProvider(ISystemFilterPoolManagerProvider)
public void setSystemFilterPoolManagerProvider(ISystemFilterPoolManagerProvider provider)
Intercept of parent so we can extract the isCaseSensitive() value.
setSystemFilterPoolManagerProvider
in class SystemFilterStringEditPane
SystemFilterStringEditPane.setSystemFilterPoolReferenceManagerProvider(ISystemFilterPoolReferenceManagerProvider)
public void setFilterFileLength(int max)
public void setFilterPathLength(int max)
public void setEditable(boolean editable)
SystemFilterStringEditPane
Subclasses should call super to ensure that the "editable" flag is set properly. Controls which are not instantiated in this call will be ignored.
setEditable
in class SystemFilterStringEditPane
editable
- true if the controls in this pane are to be editable.
Usually set to true, but if the filter is not modifiable it will be
set to false.public void setExistingStrings(String[] existingStrings, boolean caseSensitive)
public Control createContents(Composite parent)
createContents
in class SystemFilterStringEditPane
parent
-
SystemWidgetHelpers
public Control getInitialFocusControl()
getInitialFocusControl
in class SystemFilterStringEditPane
protected void doInitializeFields()
doInitializeFields
in class SystemFilterStringEditPane
protected void resetFields()
resetFields
in class SystemFilterStringEditPane
protected boolean areFieldsComplete()
This is called by the isComplete, to decide if the default information is complete enough to enable finish. It doesn't do validation, that will be done when finish is pressed.
areFieldsComplete
in class SystemFilterStringEditPane
public SystemMessage verify()
verify
in class SystemFilterStringEditPane
protected SystemMessage validateFileInput()
ISystemValidator
object.
If the ISystemValidator
reports an error the error message is displayed
in the Dialog's message line.
protected SystemMessage validateFolderInput()
ISystemValidator
object.
If the ISystemValidator
reports an error the error message is displayed
in the Dialog's message line.
public String getFilterString()
getFilterString
in class SystemFilterStringEditPane
public void widgetSelected(SelectionEvent event)
widgetSelected
in interface SelectionListener
widgetSelected
in class SystemFilterStringEditPane
public void processTest(Shell shell)
processTest
in class SystemFilterStringEditPane
public static ValidatorFileFilterString getFileFilterStringValidator(ISystemFilter filter, String filterString)
filter
- The system filter to which we are adding/updating a filter string.filterString
- The current filter object on updates. Can be null for new string. Used
to remove from the existing string list the current filter string.public static ValidatorFileFilterString getFileFilterStringValidator(IRemoteFileSubSystemConfiguration ssFactory)
public boolean canSaveImplicitly()
canSaveImplicitly
in class SystemFilterStringEditPane
true
to query user to save pending changes, false
otherwise.SystemFilterStringEditPane.canSaveImplicitly()
public String getDefaultFilterName()
SystemFilterStringEditPane
getDefaultFilterName
in class SystemFilterStringEditPane
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |