|
Eclipse Platform Release 3.3 |
|||||||||||
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.ui.dialogs.EditorSelectionDialog
This class is used to allow the user to select a dialog from the set of internal and external editors.
Nested Class Summary |
---|
Nested classes inherited from class org.eclipse.jface.window.Window |
---|
Window.IExceptionHandler |
Field Summary |
---|
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 | |
---|---|
EditorSelectionDialog(Shell parentShell)
Create an instance of this class. |
Method Summary | |
---|---|
protected void |
buttonPressed(int buttonId)
This method is called if a button has been pressed. |
boolean |
close()
Close the window. |
protected void |
configureShell(Shell shell)
Configures the given shell in preparation for opening this window in it. |
protected void |
createButtonsForButtonBar(Composite parent)
Adds buttons to this dialog's button bar. |
protected Control |
createDialogArea(Composite parent)
Creates and returns the contents of the upper part of the dialog (above the button bar). |
protected void |
fillEditorTable()
|
protected IEditorDescriptor[] |
filterEditors(IEditorDescriptor[] editors)
Returns an array of editors which have been filtered according to the array of editors in the editorsToFilter instance variable. |
protected IDialogSettings |
getDialogSettings()
Return the dialog store to cache values into |
protected IEditorDescriptor[] |
getExternalEditors()
Get a list of registered programs from the OS |
protected Image[] |
getImages(IEditorDescriptor[] editors)
Returns an array of images for the given array of editors |
protected IEditorDescriptor[] |
getInternalEditors()
Returns the internal editors |
IEditorDescriptor |
getSelectedEditor()
Return the editor the user selected |
protected void |
handleDoubleClickEvent()
Handle a double click event on the list |
protected void |
promptForExternalEditor()
|
protected void |
restoreWidgetValues()
Use the dialog store to restore widget values to the values that they held last time this wizard was used to completion |
protected void |
saveWidgetValues()
Since Finish was pressed, write widget values to the dialog store so that they will persist into the next invocation of this wizard page |
void |
setEditorsToFilter(IEditorDescriptor[] editors)
Set the editors which will not appear in the dialog. |
void |
setMessage(String aMessage)
Set the message displayed by this message dialog |
protected void |
updateEnableState()
Update enabled state. |
protected void |
updateOkButton()
Update the button enablement state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EditorSelectionDialog(Shell parentShell)
parentShell
- the parent shellMethod Detail |
protected void buttonPressed(int buttonId)
buttonPressed
in class Dialog
buttonId
- the id of the button that was pressed (see
IDialogConstants.*_ID
constants)public boolean close()
close
in class Dialog
Window.close()
protected void configureShell(Shell shell)
Window
The default implementation of this framework method sets the shell's image and gives it a grid layout. Subclasses may extend or reimplement.
configureShell
in class Window
shell
- the shellprotected Control createDialogArea(Composite parent)
createDialogArea
in class Dialog
parent
- the parent composite to contain the dialog area
protected void fillEditorTable()
protected IDialogSettings getDialogSettings()
protected IEditorDescriptor[] getExternalEditors()
protected IEditorDescriptor[] filterEditors(IEditorDescriptor[] editors)
editors
- an array of editors to filter
protected Image[] getImages(IEditorDescriptor[] editors)
protected IEditorDescriptor[] getInternalEditors()
public IEditorDescriptor getSelectedEditor()
protected void promptForExternalEditor()
protected void handleDoubleClickEvent()
protected void restoreWidgetValues()
protected void saveWidgetValues()
public void setMessage(String aMessage)
aMessage
- the messagepublic void setEditorsToFilter(IEditorDescriptor[] editors)
editors
- an array of editorsprotected void updateEnableState()
protected void createButtonsForButtonBar(Composite parent)
Dialog
The Dialog
implementation of this framework method adds
standard ok and cancel buttons using the createButton
framework method. These standard buttons will be accessible from
getCancelButton
, and getOKButton
.
Subclasses may override.
createButtonsForButtonBar
in class Dialog
parent
- the button bar compositeprotected void updateOkButton()
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.