Eclipse JDT
2.1

org.eclipse.jdt.debug.ui
Class JavaSourceLookupDialog

java.lang.Object
  |
  +--org.eclipse.jface.window.Window
        |
        +--org.eclipse.jface.dialogs.Dialog
              |
              +--org.eclipse.jdt.debug.ui.JavaSourceLookupDialog

public class JavaSourceLookupDialog
extends Dialog

A dialog to manipulate the source lookup path for a launch configuration.

This class may be instantiated; it is not intended to be subclassed.

Since:
2.0.2
See Also:
Dialog

Inner classes inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
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
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
JavaSourceLookupDialog(Shell shell, String message, ILaunchConfiguration configuration)
          Constructs a dialog to manipulate the source lookup path of the given launch configuration.
 
Method Summary
protected  Control createDialogArea(Composite parent)
           
 boolean isNotAskAgain()
          Returns whether the "do not ask again" check box is selected in the dialog.
protected  void okPressed()
           
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, configureShell, constrainShellSize, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createButtonBar, createButtonsForButtonBar, createContents, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getOKButton, initializeBounds, initializeDialogUnits, setButtonLayoutData, setButtonLayoutFormData
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, create, createShell, getContents, getDefaultImage, getInitialLocation, getInitialSize, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setExceptionHandler, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSourceLookupDialog

public JavaSourceLookupDialog(Shell shell,
                              String message,
                              ILaunchConfiguration configuration)
Constructs a dialog to manipulate the source lookup path of the given launch configuration. The source lookup path is retrieved from the given launch configuration, based on the attributes IJavaLaunchConfigurationConstants.ATTR_DEFAULT_SOURCE_PATH and IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH. If the user changes the source lookup path and presses "ok", the launch configuration is updated with the new source lookup path.
Parameters:
shell - the shell to open the dialog on
message - the message to display in the dialog
configuration - the launch configuration from which the source lookup path is retrieved and (possibly) updated
Method Detail

isNotAskAgain

public boolean isNotAskAgain()
Returns whether the "do not ask again" check box is selected in the dialog.
Returns:
whether the "do not ask again" check box is selected in the dialog

createDialogArea

protected Control createDialogArea(Composite parent)
Overrides:
createDialogArea in class Dialog
See Also:
Dialog.createDialogArea(Composite)

okPressed

protected void okPressed()
Overrides:
okPressed in class Dialog
See Also:
Dialog.okPressed()

Eclipse JDT
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.