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

Quick Search    Search Deep

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

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

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

Prompts the user a folder.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
private  org.eclipse.swt.graphics.Color fColorBlack
           
private  org.eclipse.swt.graphics.Color fColorBlue
           
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  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
PromptForFolderDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String label, java.lang.String folder, java.util.List folders)
          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()
           
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

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

PromptForFolderDialog

public PromptForFolderDialog(org.eclipse.swt.widgets.Shell parentShell,
                             java.lang.String label,
                             java.lang.String folder,
                             java.util.List folders)
TextEdit constructor.

Method Detail

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