TPTP 4.4.0 Platform Project
Public API Specification

org.eclipse.hyades.uml2sd.util
Class SDUtil

java.lang.Object
  extended byorg.eclipse.hyades.uml2sd.util.SDUtil

public class SDUtil
extends java.lang.Object


Field Summary
protected static SDUtil instance
           
static java.lang.String LOADER_PREFIX
           
static java.lang.String LOADER_TAG
           
 
Constructor Summary
SDUtil()
           
 
Method Summary
static void createLoaderForView(java.lang.String viewId, org.eclipse.core.runtime.IConfigurationElement ce)
           
static SDUtil getInstance()
           
static java.util.List getLoaders(java.lang.String viewId)
           
static org.eclipse.jface.resource.ImageDescriptor getResourceImage(java.lang.String _name)
           
 java.lang.String getSavedLoader(java.lang.String viewId)
          Returns the loader class name that have been saved last time
 void setLastLoader(java.lang.String id, java.lang.String id2)
          Saves the last loader in order to reload it on next session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static SDUtil instance

LOADER_TAG

public static final java.lang.String LOADER_TAG
See Also:
Constant Field Values

LOADER_PREFIX

public static final java.lang.String LOADER_PREFIX
See Also:
Constant Field Values
Constructor Detail

SDUtil

public SDUtil()
Method Detail

getResourceImage

public static org.eclipse.jface.resource.ImageDescriptor getResourceImage(java.lang.String _name)

getLoaders

public static java.util.List getLoaders(java.lang.String viewId)

createLoaderForView

public static void createLoaderForView(java.lang.String viewId,
                                       org.eclipse.core.runtime.IConfigurationElement ce)
Parameters:
viewId -
ce -

getSavedLoader

public java.lang.String getSavedLoader(java.lang.String viewId)
Returns the loader class name that have been saved last time

Parameters:
viewId - the view this loader belongs to
Returns:
the class name of the saved loader

setLastLoader

public void setLastLoader(java.lang.String id,
                          java.lang.String id2)
Saves the last loader in order to reload it on next session.


getInstance

public static SDUtil getInstance()
Returns:
Returns the instance.

TPTP 4.4.0 Platform Project
Public API Specification