|
Eclipse Platform Release 3.6 |
|||||||||
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.jface.dialogs.IconAndMessageDialog
org.eclipse.jface.dialogs.MessageDialog
org.eclipse.ui.ide.dialogs.ImportTypeDialog
public class ImportTypeDialog
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
Window.IExceptionHandler |
Field Summary | |
---|---|
static String |
ABSOLUTE_PATH
Generate linked resources with absolute path locations. |
static String |
AUTOMATIC
Generate linked resources relative to their preferred variable (typically the PROJECT_LOC variable) |
static int |
IMPORT_COPY
Copy the files and folders to the destination |
static int |
IMPORT_GROUPS_AND_LINKS
Recreate the file and folder hierarchy using groups and links |
static int |
IMPORT_LINK
Create linked resources for each file and folder |
static int |
IMPORT_MOVE
Move the files and folders to the destination |
static int |
IMPORT_NONE
Do not perform an import operation |
Fields inherited from class org.eclipse.jface.dialogs.MessageDialog |
---|
CONFIRM, ERROR, INFORMATION, NONE, QUESTION, QUESTION_WITH_CANCEL, WARNING |
Fields inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog |
---|
imageLabel, message, messageLabel |
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 | |
---|---|
ImportTypeDialog(Shell parentShell,
int operationMask)
|
Method Summary | |
---|---|
protected void |
buttonPressed(int buttonId)
Notifies that this dialog's button with the given id has been pressed. |
protected Control |
createCustomArea(Composite parent)
Creates and returns the contents of an area of the dialog which appears below the message and above the button bar. |
int |
getSelection()
|
String |
getVariable()
|
int |
open()
Opens this message dialog, creating it first if it has not yet been created. |
void |
widgetDefaultSelected(SelectionEvent e)
Sent when default selection occurs in the control. |
void |
widgetSelected(SelectionEvent e)
Sent when selection occurs in the control. |
Methods inherited from class org.eclipse.jface.dialogs.MessageDialog |
---|
configureShell, createButton, createButtonsForButtonBar, createDialogArea, customShouldTakeFocus, getButton, getButtonLabels, getDefaultButtonIndex, getImage, getMinimumMessageWidth, handleShellCloseEvent, open, openConfirm, openError, openInformation, openQuestion, openWarning, setButtonLabels, setButtons |
Methods inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog |
---|
createButtonBar, createContents, createDialogAndButtonArea, createMessageArea, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImage |
Methods inherited from class org.eclipse.jface.window.Window |
---|
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String AUTOMATIC
public static final String ABSOLUTE_PATH
public static final int IMPORT_COPY
public static final int IMPORT_GROUPS_AND_LINKS
public static final int IMPORT_LINK
public static final int IMPORT_MOVE
public static final int IMPORT_NONE
Constructor Detail |
---|
public ImportTypeDialog(Shell parentShell, int operationMask)
parentShell
- operationMask
- Method Detail |
---|
public String getVariable()
public int getSelection()
public int open()
MessageDialog
This method waits until the dialog is closed by the end user, and then it
returns the dialog's return code. The dialog's return code is either the
index of the button the user pressed, or SWT.DEFAULT
if the dialog
has been closed by other means.
open
in class MessageDialog
Window.open()
protected Control createCustomArea(Composite parent)
MessageDialog
The default implementation of this framework method returns
null
. Subclasses may override.
createCustomArea
in class MessageDialog
parent
- parent composite to contain the custom area
null
protected void buttonPressed(int buttonId)
Dialog
The Dialog
implementation of this framework method calls
okPressed
if the ok button is the pressed, and
cancelPressed
if the cancel button is the pressed. All
other button presses are ignored. Subclasses may override to handle other
buttons, but should call super.buttonPressed
if the
default handling of the ok and cancel buttons is desired.
buttonPressed
in class MessageDialog
buttonId
- the id of the button that was pressed (see
IDialogConstants.*_ID
constants)public void widgetDefaultSelected(SelectionEvent e)
SelectionListener
For example, on some platforms default selection occurs in a List when the user double-clicks an item or types return in a Text. On some platforms, the event occurs when a mouse button or key is pressed. On others, it happens when the mouse or key is released. The exact key or mouse gesture that causes this event is platform specific.
widgetDefaultSelected
in interface SelectionListener
e
- an event containing information about the default selectionpublic void widgetSelected(SelectionEvent e)
SelectionListener
For example, selection occurs in a List when the user selects an item or items with the keyboard or mouse. On some platforms, the event occurs when a mouse button or key is pressed. On others, it happens when the mouse or key is released. The exact key or mouse gesture that causes this event is platform specific.
widgetSelected
in interface SelectionListener
e
- an event containing information about the selection
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.