org.eclipse.cdt.internal.ui.dialogs
Class StatusDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.cdt.internal.ui.dialogs.StatusDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
Direct Known Subclasses:
ExclusionPatternDialog, ExclusionPatternEntryDialog, ExPatternDialog, ExPatternEntryDialog, NewSourceFolderDialog, SourceAttachmentDialog

public abstract class StatusDialog
extends org.eclipse.jface.dialogs.Dialog

An abstract base class for dialogs with a status bar and ok/cancel buttons. The status message must be passed over as StatusInfo object and can be an error, warning or ok. The OK button is enabled or disabled depending on the status.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, 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
StatusDialog(org.eclipse.swt.widgets.Shell parent)
          Creates an instane of a status dialog.
 
Method Summary
 void create()
           
 org.eclipse.core.runtime.IStatus getStatus()
          Returns the last status.
 void setImage(org.eclipse.swt.graphics.Image image)
          Sets the image for this dialog.
 void setTitle(java.lang.String title)
          Sets the title for this dialog.
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, close, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getBlockedHandler, getImage, setBlockedHandler, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusDialog

public StatusDialog(org.eclipse.swt.widgets.Shell parent)
Creates an instane of a status dialog.

Method Detail

getStatus

public org.eclipse.core.runtime.IStatus getStatus()
Returns the last status.


create

public void create()
Overrides:
create in class org.eclipse.jface.dialogs.Dialog

setTitle

public void setTitle(java.lang.String title)
Sets the title for this dialog.

Parameters:
title - the title.

setImage

public void setImage(org.eclipse.swt.graphics.Image image)
Sets the image for this dialog.

Parameters:
image - the image.