|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.dialogs.Dialog
com.ibm.etools.systems.core.ui.dialogs.SystemPromptDialog
com.ibm.etools.systems.core.ui.dialogs.SystemSelectFileTypesDialog
A public implementation of the eclipse Select Types dialog.
File types are extension names without the dot. For example "java" and "class".
Call getResult() to get the array of selected types.
Field Summary | |
---|---|
static String |
copyright
|
protected IFileEditorMapping[] |
currentInput
|
protected Collection |
initialSelections
|
protected String |
instruction
|
protected CheckboxTableViewer |
listViewer
|
protected Object[] |
result
|
protected static int |
SIZING_SELECTION_WIDGET_HEIGHT
|
protected static int |
SIZING_SELECTION_WIDGET_WIDTH
|
protected static String |
TYPE_DELIMITER
|
protected Text |
userDefinedText
|
Constructor Summary | |
---|---|
SystemSelectFileTypesDialog(Shell shell)
Constructor when there are no existing types |
|
SystemSelectFileTypesDialog(Shell shell,
Collection currentTypes)
Constructor when there are existing types. |
|
SystemSelectFileTypesDialog(Shell shell,
String[] currentTypes)
Constructor when there are existing types. |
Method Summary | |
---|---|
protected void |
addUserDefinedEntries(List result)
Add the currently-specified extensions. |
protected void |
checkInitialSelections()
Visually checks the previously-specified elements in this dialog's list viewer. |
protected Control |
createInner(Composite parent)
Method declared on Dialog. |
protected Label |
createInstructionArea(Composite composite)
Creates the message area for this dialog. |
protected Control |
getInitialFocusControl()
Return the Control to be given initial focus. |
protected IFileEditorMapping[] |
getInput()
Return the input to the dialog. |
Object[] |
getResult()
Returns the list of selections made by the user, or null if
the selection was canceled. |
protected boolean |
processOK()
User pressed OK. |
void |
setInstruction(String instr)
Sets the instruction text for this dialog. |
protected void |
setResult(List newResult)
Set the selections made by the user, or null if
the selection was canceled. |
protected boolean |
validateFileType(String filename)
Validate the user input for a file type |
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.messages.ISystemMessageLine |
---|
clearErrorMessage, clearMessage, getErrorMessage, getMessage, getSystemErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setMessage, setMessage |
Field Detail |
public static final String copyright
protected Collection initialSelections
protected String instruction
protected Object[] result
protected CheckboxTableViewer listViewer
protected static final int SIZING_SELECTION_WIDGET_HEIGHT
protected static final int SIZING_SELECTION_WIDGET_WIDTH
protected static final String TYPE_DELIMITER
protected Text userDefinedText
protected IFileEditorMapping[] currentInput
Constructor Detail |
public SystemSelectFileTypesDialog(Shell shell)
shell
- The window hosting this dialogpublic SystemSelectFileTypesDialog(Shell shell, Collection currentTypes)
shell
- The window hosting this dialogcurrentTypes
- The current types as a java.util.Collection. Typically ArrayList is usedpublic SystemSelectFileTypesDialog(Shell shell, String[] currentTypes)
shell
- The window hosting this dialogcurrentTypes
- The current types as an array of StringsMethod Detail |
protected Control createInner(Composite parent)
createInner
in class SystemPromptDialog
protected Control getInitialFocusControl()
getInitialFocusControl
in class SystemPromptDialog
public void setInstruction(String instr)
instr
- the instruction textprotected Label createInstructionArea(Composite composite)
This method is provided to allow subclasses to decide where the message will appear on the screen.
protected void addUserDefinedEntries(List result)
protected void checkInitialSelections()
protected IFileEditorMapping[] getInput()
protected boolean processOK()
processOK
in class SystemPromptDialog
protected void setResult(List newResult)
null
if
the selection was canceled.
protected boolean validateFileType(String filename)
public Object[] getResult()
null
if
the selection was canceled.
null
if Cancel was
pressed
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |