|
RSE Release 3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.rse.ui.dialogs.SystemPromptDialog
org.eclipse.rse.ui.dialogs.SystemSelectFileTypesDialog
public class 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
|---|
Window.IExceptionHandler |
| Field Summary | |
|---|---|
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
|
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
| Fields inherited from class org.eclipse.jface.window.Window |
|---|
CANCEL, OK |
| 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 cancelled. |
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 cancelled. |
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 org.eclipse.rse.ui.messages.ISystemMessageLine |
|---|
clearErrorMessage, clearMessage, getErrorMessage, getMessage, getSystemErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setMessage, setMessage |
| Field Detail |
|---|
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 dialog
public SystemSelectFileTypesDialog(Shell shell,
Collection currentTypes)
shell - The window hosting this dialogcurrentTypes - The current types as a java.util.Collection. Typically ArrayList is used
public SystemSelectFileTypesDialog(Shell shell,
String[] currentTypes)
shell - The window hosting this dialogcurrentTypes - The current types as an array of Strings| Method Detail |
|---|
protected Control createInner(Composite parent)
createInner in class SystemPromptDialogprotected Control getInitialFocusControl()
getInitialFocusControl in class SystemPromptDialogpublic 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.
composite - the parent composite
protected void addUserDefinedEntries(List result)
protected void checkInitialSelections()
protected IFileEditorMapping[] getInput()
protected boolean processOK()
processOK in class SystemPromptDialogprotected void setResult(List newResult)
null if
the selection was cancelled.
newResult - list of selected elements, or null if Cancel was
pressedprotected boolean validateFileType(String filename)
public Object[] getResult()
null if
the selection was cancelled.
null if Cancel was
pressed
|
RSE Release 3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||