java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
com.port80.eclipse.jdt.annotation.PromptForFolderDialog
- public class PromptForFolderDialog
- extends org.eclipse.jface.dialogs.Dialog
Prompts the user a folder.
| Nested classes inherited from class org.eclipse.jface.window.Window |
org.eclipse.jface.window.Window.IExceptionHandler |
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
blockedHandler, buttonBar, dialogArea, DLG_IMG_ERROR, 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 |
| Methods inherited from class org.eclipse.jface.dialogs.Dialog |
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
| Methods inherited from class org.eclipse.jface.window.Window |
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getInitialLocation, getInitialSize, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setExceptionHandler, setReturnCode, setShellStyle, setWindowManager |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
WIDTH_HINT
private static final int WIDTH_HINT
- See Also:
- Constant Field Values
HEIGHT_HINT
private static final int HEIGHT_HINT
- See Also:
- Constant Field Values
fLabel
private java.lang.String fLabel
fFolder
private java.lang.String fFolder
fFolders
private java.util.List fFolders
fValid
private boolean fValid
fFolderSet
private java.util.Set fFolderSet
fColorBlack
private org.eclipse.swt.graphics.Color fColorBlack
fColorBlue
private org.eclipse.swt.graphics.Color fColorBlue
fFolderCombo
private org.eclipse.swt.widgets.Combo fFolderCombo
fFolderLabel
private org.eclipse.swt.widgets.Label fFolderLabel
PromptForFolderDialog
public PromptForFolderDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String label,
java.lang.String folder,
java.util.List folders)
- TextEdit constructor.
getFolder
public java.lang.String getFolder()
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Description copied from class:
org.eclipse.jface.dialogs.Dialog
- Creates and returns the contents of the upper part of this dialog (above
the button bar).
The Dialog implementation of this framework method creates
and returns a new Composite with standard margins and
spacing.
The returned control's layout data must be an instance of
GridData. This method must not modify the parent's
layout.
Subclasses must override this method but may call super as
in the following example:
Composite composite = (Composite) super.createDialogArea(parent);
//add controls to composite as necessary
return composite;
okPressed
protected void okPressed()
- Description copied from class:
org.eclipse.jface.dialogs.Dialog
- Notifies that the ok button of this dialog has been pressed.
The Dialog implementation of this framework method sets
this dialog's return code to Window.OK and closes the
dialog. Subclasses may override.
validCheck
void validCheck()