org.topbraidcomposer.ui.dialogs
Class AbstractSelectionDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.topbraidcomposer.ui.dialogs.AbstractSelectionDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
Direct Known Subclasses:
ClassSelectionDialog, InstanceByClassSelectionDialog, PropertySelectionDialog, ResourceTableSelectionDialog

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


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
static int HEIGHT
           
static int WIDTH
           
 
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
AbstractSelectionDialog(org.eclipse.jface.window.IShellProvider shellProvider)
           
AbstractSelectionDialog(org.eclipse.swt.widgets.Shell shell)
           
 
Method Summary
protected abstract  boolean canSetOK()
           
protected  void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
           
protected  SubClassesTreePanel createClassTreeViewer(org.eclipse.swt.widgets.Composite parent, java.util.Collection rootClasses, IRDFNodeFilter filter, boolean multiple)
           
protected  org.eclipse.jface.viewers.TableViewer createInstancesTableViewer(org.eclipse.swt.widgets.Composite comp, boolean multiple)
           
protected  void okPressed()
           
protected  void updateOKButton()
           
protected  void updateResult()
           
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, createDialogArea, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, configureShell, 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
 

Field Detail

HEIGHT

public static final int HEIGHT
See Also:
Constant Field Values

WIDTH

public static final int WIDTH
See Also:
Constant Field Values
Constructor Detail

AbstractSelectionDialog

public AbstractSelectionDialog(org.eclipse.swt.widgets.Shell shell)

AbstractSelectionDialog

public AbstractSelectionDialog(org.eclipse.jface.window.IShellProvider shellProvider)
Method Detail

canSetOK

protected abstract boolean canSetOK()

createButtonsForButtonBar

protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Overrides:
createButtonsForButtonBar in class org.eclipse.jface.dialogs.Dialog

createClassTreeViewer

protected SubClassesTreePanel createClassTreeViewer(org.eclipse.swt.widgets.Composite parent,
                                                    java.util.Collection rootClasses,
                                                    IRDFNodeFilter filter,
                                                    boolean multiple)

createInstancesTableViewer

protected org.eclipse.jface.viewers.TableViewer createInstancesTableViewer(org.eclipse.swt.widgets.Composite comp,
                                                                           boolean multiple)

okPressed

protected void okPressed()
Overrides:
okPressed in class org.eclipse.jface.dialogs.Dialog

updateOKButton

protected void updateOKButton()

updateResult

protected void updateResult()