de.cau.cs.kieler.kiml.export.ui
Class ExportDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by de.cau.cs.kieler.kiml.export.ui.ExportDialog
All Implemented Interfaces:
IShellProvider

public class ExportDialog
extends Dialog

The dialog that lets the user select a graph file format and a file to export a graph into.

Rating red

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
 
Field Summary
 
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
ExportDialog(Shell parent)
          Constructs an export dialog.
 
Method Summary
 boolean close()
          
protected  void configureShell(Shell shell)
          
protected  Control createContents(Composite parent)
          
protected  Control createDialogArea(Composite parent)
          
 AbstractExporter getExporter()
          Returns the selected exporter.
 String getExportFile()
          Returns the selected export file path.
protected  Point getInitialSize()
          
 MapPropertyHolder getOptions()
          Returns the selected options.
 boolean isExportWorkspacePath()
          Returns whether the selected export file path is relative to the workspace.
protected  void okPressed()
          
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
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, handleShellCloseEvent, open, 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
 

Constructor Detail

ExportDialog

public ExportDialog(Shell parent)
Constructs an export dialog.

Parameters:
parent - the parent shell
Method Detail

createContents

protected Control createContents(Composite parent)

Overrides:
createContents in class Dialog

createDialogArea

protected Control createDialogArea(Composite parent)

Overrides:
createDialogArea in class Dialog

configureShell

protected void configureShell(Shell shell)

Overrides:
configureShell in class Window

getInitialSize

protected Point getInitialSize()

Overrides:
getInitialSize in class Dialog

getExporter

public AbstractExporter getExporter()
Returns the selected exporter.

Returns:
the selected exporter

getExportFile

public String getExportFile()
Returns the selected export file path.

Returns:
the selected path or null if the dialog has not successfully finished

isExportWorkspacePath

public boolean isExportWorkspacePath()
Returns whether the selected export file path is relative to the workspace.

Returns:
true if the selected export file path is relative to the workspace

getOptions

public MapPropertyHolder getOptions()
Returns the selected options.

Returns:
the selected options or null if the dialog has not successfully finished

close

public boolean close()

Overrides:
close in class Dialog

okPressed

protected void okPressed()

Overrides:
okPressed in class Dialog