java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
com.port80.eclipse.jdt.annotation.EditAnnotationDialog
- public class EditAnnotationDialog
- extends org.eclipse.jface.dialogs.Dialog
Prompts the user for a multi-line text.
| 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
COLOR_BLACK
private static final org.eclipse.swt.graphics.RGB COLOR_BLACK
COLOR_RED
private static final org.eclipse.swt.graphics.RGB COLOR_RED
fTitle
private java.lang.String fTitle
fLabel
private java.lang.String fLabel
fText
private java.lang.String fText
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
fColorRed
private org.eclipse.swt.graphics.Color fColorRed
fTextArea
private org.eclipse.swt.widgets.Text fTextArea
fFolderCombo
private org.eclipse.swt.widgets.Combo fFolderCombo
fFolderLabel
private org.eclipse.swt.widgets.Label fFolderLabel
EditAnnotationDialog
public EditAnnotationDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String title,
java.lang.String label,
java.lang.String folder,
java.util.List folders,
java.lang.String content)
- TextEdit constructor.
getText
public java.lang.String getText()
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()