|
RSE Release 1.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
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 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 |
| Fields inherited from interface org.eclipse.jface.dialogs.IDialogConstants |
|---|
ABORT_ID, ABORT_LABEL, BACK_ID, BACK_LABEL, BUTTON_BAR_HEIGHT, BUTTON_HEIGHT, BUTTON_MARGIN, BUTTON_WIDTH, CANCEL_ID, CANCEL_LABEL, CLIENT_ID, CLOSE_ID, CLOSE_LABEL, DESELECT_ALL_ID, ENTRY_FIELD_WIDTH, FINISH_ID, FINISH_LABEL, HELP_ID, HELP_LABEL, HIDE_DETAILS_LABEL, HORIZONTAL_MARGIN, HORIZONTAL_SPACING, IGNORE_ID, IGNORE_LABEL, INDENT, INTERNAL_ID, LEFT_MARGIN, MINIMUM_MESSAGE_AREA_WIDTH, NEXT_ID, NEXT_LABEL, NO_ID, NO_LABEL, NO_TO_ALL_ID, NO_TO_ALL_LABEL, OK_ID, OK_LABEL, OPEN_ID, OPEN_LABEL, PROCEED_ID, PROCEED_LABEL, RETRY_ID, RETRY_LABEL, SELECT_ALL_ID, SELECT_TYPES_ID, SHOW_DETAILS_LABEL, SKIP_ID, SKIP_LABEL, SMALL_INDENT, STOP_ID, STOP_LABEL, VERTICAL_MARGIN, VERTICAL_SPACING, YES_ID, YES_LABEL, YES_TO_ALL_ID, YES_TO_ALL_LABEL |
| 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 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.
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 canceled.
protected boolean validateFileType(String filename)
public Object[] getResult()
null if
the selection was canceled.
null if Cancel was
pressed
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||