Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.jdt.annotation
Class EditAnnotationDialog  view EditAnnotationDialog download EditAnnotationDialog.java

java.lang.Object
  extended byorg.eclipse.jface.window.Window
      extended byorg.eclipse.jface.dialogs.Dialog
          extended bycom.port80.eclipse.jdt.annotation.EditAnnotationDialog

public class EditAnnotationDialog
extends org.eclipse.jface.dialogs.Dialog

Prompts the user for a multi-line text.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
private static org.eclipse.swt.graphics.RGB COLOR_BLACK
           
private static org.eclipse.swt.graphics.RGB COLOR_RED
           
private  org.eclipse.swt.graphics.Color fColorBlack
           
private  org.eclipse.swt.graphics.Color fColorRed
           
private  java.lang.String fFolder
           
private  org.eclipse.swt.widgets.Combo fFolderCombo
           
private  org.eclipse.swt.widgets.Label fFolderLabel
           
private  java.util.List fFolders
           
private  java.util.Set fFolderSet
           
private  java.lang.String fLabel
           
private  java.lang.String fText
           
private  org.eclipse.swt.widgets.Text fTextArea
           
private  java.lang.String fTitle
           
private  boolean fValid
           
private static int HEIGHT_HINT
           
private static java.lang.String NAME
           
private static int WIDTH_HINT
           
 
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
 
Constructor Summary
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.
 
Method Summary
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
          Creates and returns the contents of the upper part of this dialog (above the button bar).
 java.lang.String getFolder()
           
 java.lang.String getText()
           
protected  void okPressed()
          Notifies that the ok button of this dialog has been pressed.
(package private)  void validCheck()
           
 
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
 

Field Detail

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
Constructor Detail

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.

Method Detail

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()