|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAction
com.ibm.etools.systems.core.ui.actions.SystemBaseAction
com.ibm.etools.systems.core.ui.actions.SystemBaseDialogAction
com.ibm.etools.systems.core.ui.actions.SystemSelectFileTypesAction
The action for allowing the user to select one or more file types, using the Eclipse dialog for this. The types are from the file editor registry, as specified in the Workbench preferences.
To set preselected types, use setTypes(List)
or setTypes(String[])
.
Or, if you have single string of comma-separated types, call setTypes(String)
.
After running, and checking wasCancelled(), you can query the selected types using one of:
getTypes()
to retrieve the selected types as a List
getTypesArray()
to retrieve the selected types as a String array
getTypesString()
to retrieve the selected types as a single String of comma-delimited selections
Note the types are remembered after running, so a subsequent run will result in the previous types being preselected, assuming you re-use the same instance of this class.
SystemSelectFileTypesDialog
,
Serialized FormField Summary | |
---|---|
static String |
copyright
|
protected List |
types
|
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseDialogAction |
---|
cancelled, dlgHelpId, needsProgressMonitor, needsProgressMonitorSet, processAll, value |
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseAction |
---|
allowOnMultipleSelection, arrowCursor, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor |
Constructor Summary | |
---|---|
SystemSelectFileTypesAction(Shell shell)
Constructor To set preselected types, use setTypes(List) or setTypes(String[]) .
|
Method Summary | |
---|---|
Dialog |
createDialog(Shell parent)
Create and return the dialog |
Object |
getDialogValue(Dialog dlg)
Parent abstract method. |
List |
getTypes()
Get the selected file types after running the action. |
String[] |
getTypesArray()
Get the selected file types after running the action. |
String |
getTypesString()
Get the selected file types as a concatenated list of strings, comma-separated |
void |
setTypes(List types)
Set the current input types as a java.util List, such as ArrayList Each type is a file name extension, without the dot, as in "java" or "class" |
void |
setTypes(String typeString)
Set the current input types given a comma-separated list as a single String. |
void |
setTypes(String[] types)
Set the current input types as a String array. |
boolean |
wasCancelled()
Return true if the dialog was cancelled by the user. |
Methods inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseDialogAction |
---|
getDialogHelpContextId, getNeedsProgressMonitor, getProcessAllSelections, getValue, run, setDialogHelp, setNeedsProgressMonitor, setProcessAllSelections, setValue, wasNeedsProgressMonitorSet |
Methods inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseAction |
---|
allowOnMultipleSelection, checkObjectType, getAdapter, getContextMenuGroup, getCurrentTreeView, getDescription, getFirstSelection, getHelpContextId, getLabel, getNextSelection, getRemoteAdapter, getSelection, getSelectionProvider, getShell, getShell, getString, getStringOrNull, getSystemConnection, getToolTip, getViewer, isDummy, isEnabled, isSelectionSensitive, issueTraceMessage, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setInputs, setSelection, setSelectionProvider, setSelectionSensitive, setShell, setSystemConnection, setTracing, setTracing, setViewer, updateSelection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.etools.systems.core.ui.actions.ISystemAction |
---|
allowOnMultipleSelection, getContextMenuGroup, getHelpContextId, getSelection, getShell, getViewer, isDummy, isSelectionSensitive, setContextMenuGroup, setHelp, setInputs, setSelection, setSelectionSensitive, setShell, setViewer |
Field Detail |
public static final String copyright
protected List types
Constructor Detail |
public SystemSelectFileTypesAction(Shell shell)
setTypes(List)
or setTypes(String[])
.
Note the types are remember after running, so a subsequent run will result in the previous types
being preselected.
Method Detail |
public void setTypes(String[] types)
public void setTypes(List types)
public void setTypes(String typeString)
public List getTypes()
public String[] getTypesArray()
public String getTypesString()
public boolean wasCancelled()
wasCancelled
in interface ISystemDialogAction
wasCancelled
in class SystemBaseDialogAction
public Dialog createDialog(Shell parent)
createDialog
in class SystemBaseDialogAction
SystemBaseDialogAction.run()
public Object getDialogValue(Dialog dlg)
getDialogValue
in class SystemBaseDialogAction
dlg
- The dialog object, after it has returned from open.
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |