TPTP 4.2.0 Platform Project
Public API Specification

org.eclipse.hyades.uml2sd.ztest
Class testLoaders

java.lang.Object
  extended byorg.eclipse.hyades.uml2sd.ztest.testLoaders
All Implemented Interfaces:
ISDFilterProvider, ISDFindProvider, ISDGraphNodeSupporter, ISDPagingProvider, org.eclipse.ui.ISelectionListener, IUml2SDLoader

public class testLoaders
extends java.lang.Object
implements IUml2SDLoader, ISDFindProvider, ISDFilterProvider, ISDPagingProvider, org.eclipse.ui.ISelectionListener


Field Summary
 int page
           
 SDView v
           
 
Fields inherited from interface org.eclipse.hyades.uml2sd.ui.actions.provider.ISDGraphNodeSupporter
ASYNCMESSAGE, ASYNCMESSAGERETURN, LIFELINE, STOP, SYNCMESSAGE, SYNCMESSAGERETURN
 
Constructor Summary
testLoaders()
           
 
Method Summary
 void aboutToBeReplaced()
          When another loader becomes the one the previous one is replaced It's time clean-up if needed (listeners to be removed for example)
 void cancel()
          Called when dialog is closed
 boolean filter(java.util.List filters)
          Called when the Filter dialog box OK button is pressed
 boolean find(Criteria toSearch)
          Called when the Find dialog box OK button is pressed
 LifelineCategories[] getCategories()
           
 java.util.ArrayList getCurrentFilters()
           
 org.eclipse.jface.action.Action getFindAction()
           
 java.lang.String getNodeName(int nodeType, java.lang.String loaderClassName)
          Return the name to use in dialogs Not called if isNodeSupported return false
 org.eclipse.swt.graphics.Image getResourceImage(java.lang.String _name)
           
 java.lang.String getTitleString()
          Title string for the UML2SD View when this loader is the one
 boolean hasNextPage()
          Return true to enable the next page button in the coolBar, false otherwise
 boolean hasPrevPage()
          Return true to enable the previous page button in the coolBar, false otherwise
 boolean isAsyncMessageReturnSupported()
           
 boolean isAsyncMessageSupported()
           
 boolean isLifelineSupported()
           
 boolean isNodeSupported(int nodeType)
          Return true to enable this options, false otherwise
 boolean isStopSupported()
           
 boolean isSyncMessageReturnSupported()
           
 boolean isSyncMessageSupported()
           
 void nextPage()
          Called back when next page button is pressed in the coolBar
 void prevPage()
          Called back when previous page button is pressed in the coolBar
 void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
           
 void setViewer(SDView j)
          Set the viewer object to the loader that has been reloaded at the beginning of a new workbench session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

v

public SDView v

page

public int page
Constructor Detail

testLoaders

public testLoaders()
Method Detail

setViewer

public void setViewer(SDView j)
Description copied from interface: IUml2SDLoader
Set the viewer object to the loader that has been reloaded at the beginning of a new workbench session

Specified by:
setViewer in interface IUml2SDLoader

hasNextPage

public boolean hasNextPage()
Description copied from interface: ISDPagingProvider
Return true to enable the next page button in the coolBar, false otherwise

Specified by:
hasNextPage in interface ISDPagingProvider
Returns:
true if a next page exists false otherwise

hasPrevPage

public boolean hasPrevPage()
Description copied from interface: ISDPagingProvider
Return true to enable the previous page button in the coolBar, false otherwise

Specified by:
hasPrevPage in interface ISDPagingProvider
Returns:
true if a previous page exists false otherwise

prevPage

public void prevPage()
Description copied from interface: ISDPagingProvider
Called back when previous page button is pressed in the coolBar

Specified by:
prevPage in interface ISDPagingProvider

nextPage

public void nextPage()
Description copied from interface: ISDPagingProvider
Called back when next page button is pressed in the coolBar

Specified by:
nextPage in interface ISDPagingProvider

find

public boolean find(Criteria toSearch)
Description copied from interface: ISDFindProvider
Called when the Find dialog box OK button is pressed

Specified by:
find in interface ISDFindProvider
Returns:
true if the find got a non empty result

cancel

public void cancel()
Description copied from interface: ISDFindProvider
Called when dialog is closed

Specified by:
cancel in interface ISDFindProvider
See Also:
ISDFindProvider.cancel()

getCategories

public LifelineCategories[] getCategories()

isLifelineSupported

public boolean isLifelineSupported()

isSyncMessageSupported

public boolean isSyncMessageSupported()

isSyncMessageReturnSupported

public boolean isSyncMessageReturnSupported()

isAsyncMessageSupported

public boolean isAsyncMessageSupported()

isAsyncMessageReturnSupported

public boolean isAsyncMessageReturnSupported()

isStopSupported

public boolean isStopSupported()

getResourceImage

public org.eclipse.swt.graphics.Image getResourceImage(java.lang.String _name)

getFindAction

public org.eclipse.jface.action.Action getFindAction()

filter

public boolean filter(java.util.List filters)
Description copied from interface: ISDFilterProvider
Called when the Filter dialog box OK button is pressed

Specified by:
filter in interface ISDFilterProvider
Returns:
true if the filter applied

getCurrentFilters

public java.util.ArrayList getCurrentFilters()

getTitleString

public java.lang.String getTitleString()
Description copied from interface: IUml2SDLoader
Title string for the UML2SD View when this loader is the one

Specified by:
getTitleString in interface IUml2SDLoader
Returns:
the string convenient for this loader

aboutToBeReplaced

public void aboutToBeReplaced()
Description copied from interface: IUml2SDLoader
When another loader becomes the one the previous one is replaced It's time clean-up if needed (listeners to be removed for example)

Specified by:
aboutToBeReplaced in interface IUml2SDLoader
Returns:
the string convenient for this loader

selectionChanged

public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.ISelectionListener

isNodeSupported

public boolean isNodeSupported(int nodeType)
Description copied from interface: ISDGraphNodeSupporter
Return true to enable this options, false otherwise

Specified by:
isNodeSupported in interface ISDGraphNodeSupporter
Returns:
true to enable this options, false otherwise

getNodeName

public java.lang.String getNodeName(int nodeType,
                                    java.lang.String loaderClassName)
Description copied from interface: ISDGraphNodeSupporter
Return the name to use in dialogs Not called if isNodeSupported return false

Specified by:
getNodeName in interface ISDGraphNodeSupporter
Returns:
the name to use in dialogs

TPTP 4.2.0 Platform Project
Public API Specification