Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.files.ui.widgets
Class SystemFileFilterStringEditPane


java.lang.Object
  extended by 

org.eclipse.rse.ui.filters.SystemFilterStringEditPane
      extended by 
org.eclipse.rse.files.ui.widgets.SystemFileFilterStringEditPane
All Implemented Interfaces:
EventListener, SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class SystemFileFilterStringEditPane
extends SystemFilterStringEditPane

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.
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 org.eclipse.rse.ui.filters. SystemFilterStringEditPane
addChangeListener, addFillerLine, addGrowableFillerLine, addSeparatorLine, areErrorsPending, clearErrorsPending, configureHeadingLabel, enable, fireBackupChangeEvent, fireChangeEvent, fireRestoreChangeEvent, getCurrentSelectionIndex, getDefaultFilterName, getEditable, getFilterStringPromptLabel, getFilterStringPromptTooltip, getInputFilterString, getShell, getSystemFilterPoolManagerProvider, getSystemFilterPoolReferenceManagerProvider, isComplete, removeChangeListener, setChangeFilterMode, setFilterString, setIgnoreChanges, setInputFilterString, setTestButton, setType, validateStringInput, widgetDefaultSelected
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filesOnlyCheckBox

protected 
Button filesOnlyCheckBox

subsetByFileNameRadioButton

protected 
Button subsetByFileNameRadioButton

subsetByFileTypesRadioButton

protected 
Button subsetByFileTypesRadioButton

selectTypesButton

protected 
Button selectTypesButton

labelFile

protected 
Label labelFile

labelTypes

protected 
Label labelTypes

textFile

protected 
Text textFile

textTypes

protected 
Text textTypes

folderCombo

protected 
SystemRemoteFolderCombo folderCombo

filterFileLength

protected int filterFileLength

filterPathLength

protected int filterPathLength

pathValidator

protected 
ISystemValidator pathValidator

fileValidator

protected 
ISystemValidator fileValidator

caseSensitive

protected boolean caseSensitive

inputFilterStrings

protected 
String[] inputFilterStrings

noValidation

protected boolean noValidation

callerInstanceOfWizardPage

protected boolean callerInstanceOfWizardPage

callerInstanceOfSystemPromptDialog

protected boolean callerInstanceOfSystemPromptDialog

skipUniquenessChecking

protected boolean skipUniquenessChecking

calledFromVerify

protected boolean calledFromVerify

dontStealFocus

protected boolean dontStealFocus

inputSubsystemConfiguration

protected 
RemoteFileSubSystemConfiguration inputSubsystemConfiguration
Constructor Detail

SystemFileFilterStringEditPane

public SystemFileFilterStringEditPane(
Shell shell)
Constructor for SystemFileFilterStringEditPane.

Parameters:
shell -
Method Detail

setSystemFilterPoolReferenceManagerProvider

public void setSystemFilterPoolReferenceManagerProvider(
ISystemFilterPoolReferenceManagerProvider provider)
Set the contextual system filter pool reference manager provider. Will be non-null if the current selection is a reference to a filter pool or filter, or a reference manager provider (eg subsystem).

Intercept of parent so we can extract the isCaseSensitive() value.

Overrides:
setSystemFilterPoolReferenceManagerProvider in class SystemFilterStringEditPane
See Also:
SystemFilterStringEditPane.setSystemFilterPoolManagerProvider(ISystemFilterPoolManagerProvider)

setSystemFilterPoolManagerProvider

public void setSystemFilterPoolManagerProvider(
ISystemFilterPoolManagerProvider provider)
Set the contextual system filter pool manager provider. Will be non-null if the current selection is a filter pool or filter or reference to either, or a manager provider itself (eg, subsystem factory).

Intercept of parent so we can extract the isCaseSensitive() value.

Overrides:
setSystemFilterPoolManagerProvider in class SystemFilterStringEditPane
See Also:
SystemFilterStringEditPane.setSystemFilterPoolReferenceManagerProvider(ISystemFilterPoolReferenceManagerProvider)

setFilterFileLength

public void setFilterFileLength(int max)
Call this to override the text limit for the filter name, from the default of 40.


setFilterPathLength

public void setFilterPathLength(int max)
Call this to override the text limit for the filter name, from the default of 40.


setEditable

public void setEditable(boolean editable)
Description copied from class: SystemFilterStringEditPane
Sets whether or not the edit pane is not to be editable. May be invoked atany time prior or after the creation of the controls. Subclasses should override and enable their own controls appropriately.

Subclasses should call super to ensure that the "editable" flag is set properly. Controls which are not instantiated in this call will be ignored.

Overrides:
setEditable in class SystemFilterStringEditPane
Parameters:
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.

setExistingStrings

public void setExistingStrings(
String[] existingStrings,
                               boolean caseSensitive)
Existing strings are used to aid in uniqueness validation.


createContents

public 
Control createContents(
Composite parent)
Populate the pane with the GUI widgets

Overrides:
createContents in class SystemFilterStringEditPane
Parameters:
parent -
Returns:
Control
See Also:
SystemWidgetHelpers

getInitialFocusControl

public 
Control getInitialFocusControl()
Return the control to recieve initial focus. Should be overridden if you override createContents

Overrides:
getInitialFocusControl in class SystemFilterStringEditPane

doInitializeFields

protected void doInitializeFields()
Override of parent. Called after reset fields, at first create time or when input is reset to a non-null value.

Overrides:
doInitializeFields in class SystemFilterStringEditPane

resetFields

protected void resetFields()
This is called in the change filter dialog when the user selects "new", or selects another string. You must override this if you override createContents. Be sure to test if the contents have even been created yet!

Overrides:
resetFields in class SystemFilterStringEditPane

areFieldsComplete

protected boolean areFieldsComplete()
Must be overridden if createContents is overridden.

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.

Overrides:
areFieldsComplete in class SystemFilterStringEditPane

verify

public 
SystemMessage verify()
Completes processing of the wizard page or dialog. If this method returns true, the wizard/dialog will close; otherwise, it will stay active.

Overrides:
verify in class SystemFilterStringEditPane
Returns:
error, if there is one

validateFileInput

protected 
SystemMessage validateFileInput()
This hook method is called whenever the text changes in the input field. The default implementation delegates the request to an ISystemValidator object. If the ISystemValidator reports an error the error message is displayed in the Dialog's message line.


validateFolderInput

protected 
SystemMessage validateFolderInput()
This hook method is called whenever the text changes in the input field. The default implementation delegates the request to an ISystemValidator object. If the ISystemValidator reports an error the error message is displayed in the Dialog's message line.


getFilterString

public 
String getFilterString()
Get the filter string in its current form. This should be overridden if createContents is overridden.

Overrides:
getFilterString in class SystemFilterStringEditPane

widgetSelected

public void widgetSelected(
SelectionEvent event)
User has selected something

Specified by:
widgetSelected in interface SelectionListener
Overrides:
widgetSelected in class SystemFilterStringEditPane

processTest

public void processTest(
Shell shell)
Called by us or by owning dialog when common Test button is pressed

Overrides:
processTest in class SystemFilterStringEditPane

getFileFilterStringValidator

public static 
ValidatorFileFilterString getFileFilterStringValidator(
ISystemFilter filter,
                                                                     
String filterString)
Reusable method to return a name validator for creating/update a file system filter string

Parameters:
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.

getFileFilterStringValidator

public static 
ValidatorFileFilterString getFileFilterStringValidator(
IRemoteFileSubSystemConfiguration ssFactory)
Reusable method to return a name validator for creating/update a file system filter string. No unique checking.


canSaveImplicitly

public 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. If in new mode for non-Unix system, and the user hasn't changed the other fields, we force user to use the Create button to create the filter string explicitly.

Overrides:
canSaveImplicitly in class SystemFilterStringEditPane
Returns:
true to query user to save pending changes, false otherwise.
See Also:
SystemFilterStringEditPane.canSaveImplicitly()

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire