TPTP 4.2.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.test.ui.dialog
Class EObjectResourceSelectionDialog

java.lang.Object
  extended byorg.eclipse.jface.window.Window
      extended byorg.eclipse.jface.dialogs.Dialog
          extended byorg.eclipse.hyades.test.ui.dialog.EObjectResourceSelectionDialog
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.viewers.IDoubleClickListener, org.eclipse.jface.window.IShellProvider, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class EObjectResourceSelectionDialog
extends org.eclipse.jface.dialogs.Dialog
implements org.eclipse.swt.events.SelectionListener, org.eclipse.jface.viewers.IDoubleClickListener

This class implements a dialog to select one or more resources with a certain file extension in the workspace.

Since:
3.0

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.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
EObjectResourceSelectionDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, java.lang.String[] theFileExtensions, org.eclipse.swt.graphics.Image fileImage)
           
EObjectResourceSelectionDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, java.lang.String[] theFileExtensions, org.eclipse.swt.graphics.Image fileImage, int style)
           
 
Method Summary
protected  void configureShell(org.eclipse.swt.widgets.Shell shell)
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.jface.viewers.StructuredViewer createViewer(org.eclipse.swt.widgets.Composite parent)
           
 void doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
           
 org.eclipse.core.resources.IFile[] getSelectedFiles()
           
 org.eclipse.emf.ecore.EObject[] getSelectedObjects()
           
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
           
 void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
           
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, 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

EObjectResourceSelectionDialog

public EObjectResourceSelectionDialog(org.eclipse.swt.widgets.Shell parentShell,
                                      java.lang.String title,
                                      java.lang.String[] theFileExtensions,
                                      org.eclipse.swt.graphics.Image fileImage)

EObjectResourceSelectionDialog

public EObjectResourceSelectionDialog(org.eclipse.swt.widgets.Shell parentShell,
                                      java.lang.String title,
                                      java.lang.String[] theFileExtensions,
                                      org.eclipse.swt.graphics.Image fileImage,
                                      int style)
Method Detail

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)

createViewer

protected org.eclipse.jface.viewers.StructuredViewer createViewer(org.eclipse.swt.widgets.Composite parent)

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell shell)

getSelectedObjects

public org.eclipse.emf.ecore.EObject[] getSelectedObjects()

getSelectedFiles

public org.eclipse.core.resources.IFile[] getSelectedFiles()

doubleClick

public void doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
Specified by:
doubleClick in interface org.eclipse.jface.viewers.IDoubleClickListener

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener

TPTP 4.2.0 Testing Tools Project
Public API Specification