com.groovemanager.gui
Class EditorWindow

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.window.ApplicationWindow
          extended by com.groovemanager.gui.EditorWindow
All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableContext
Direct Known Subclasses:
SimpleSampleEditor

public abstract class EditorWindow
extends org.eclipse.jface.window.ApplicationWindow

An EditorWindow represents an Application Window that can be used as Top level Window (standalone) or inside another application.

Author:
Manu Robledo

Nested Class Summary
 
Nested classes inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
protected EditorWindow()
          Constructs a new Top Level EditorWindow
  EditorWindow(org.eclipse.swt.widgets.Shell shell)
          Constructs a new EditorWindow which will use the given Shell as parent Shell
 
Method Summary
protected abstract  org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
          This methos must be implemented to create the EditorWindow´s contents
 void errorMessage(java.lang.String m)
          Show an error message in a new MessageDialog
 
Methods inherited from class org.eclipse.jface.window.ApplicationWindow
addMenuBar, addStatusLine, addToolBar, canHandleShellCloseEvent, close, configureShell, createMenuManager, createStatusLineManager, createToolBarControl, createToolBarManager, getFont, getMenuBarManager, getStatusLineManager, getSymbolicFontName, getToolBarControl, getToolBarManager, run, setStatus, toolBarChildrenExist
 
Methods inherited from class org.eclipse.jface.window.Window
constrainShellSize, create, createShell, getContents, getDefaultImage, getInitialLocation, getInitialSize, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, initializeBounds, 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

EditorWindow

protected EditorWindow()
Constructs a new Top Level EditorWindow


EditorWindow

public EditorWindow(org.eclipse.swt.widgets.Shell shell)
Constructs a new EditorWindow which will use the given Shell as parent Shell

Parameters:
shell - The Shell to be used as the EditorWindow´s parent Shell
Method Detail

createContents

protected abstract org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
This methos must be implemented to create the EditorWindow´s contents

Overrides:
createContents in class org.eclipse.jface.window.Window

errorMessage

public void errorMessage(java.lang.String m)
Show an error message in a new MessageDialog

Parameters:
m - The error message to display