org.eclipse.emf.ecp.view.editor.handler
Class SelectAttributesDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.emf.ecp.view.editor.handler.SelectAttributesDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class SelectAttributesDialog
extends org.eclipse.jface.dialogs.Dialog

Dialog for selecting the attributes for which controls should be generated.

Author:
Eugen Neufeld

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
SelectAttributesDialog(VView view, org.eclipse.emf.ecore.EClass rootClass, org.eclipse.swt.widgets.Shell parentShell)
          Constructor.
 
Method Summary
 boolean close()
           
 org.eclipse.emf.ecore.EClass getRootClass()
           
 Set<org.eclipse.emf.ecore.EStructuralFeature> getSelectedFeatures()
           
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, 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

SelectAttributesDialog

public SelectAttributesDialog(VView view,
                              org.eclipse.emf.ecore.EClass rootClass,
                              org.eclipse.swt.widgets.Shell parentShell)
Constructor.

Parameters:
view - for identifying the attributes which are not referenced yet
rootClass - the rootClass of the view
parentShell - the shell for creating the dialog
Method Detail

close

public boolean close()
Overrides:
close in class org.eclipse.jface.dialogs.Dialog

getSelectedFeatures

public Set<org.eclipse.emf.ecore.EStructuralFeature> getSelectedFeatures()
Returns:
the set of features selected in the dialog, for which controls should be generated.

getRootClass

public org.eclipse.emf.ecore.EClass getRootClass()
Returns:
the rootEClass the dialog is displaying the attributes for.


Copyright © 2014. All Rights Reserved.