EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui
Class EgfUiActivator

java.lang.Object
  extended by AbstractUIPlugin
      extended by org.eclipse.egf.common.ui.activator.AbstractUIActivator
          extended by org.eclipse.egf.core.ui.EgfUiActivator

public class EgfUiActivator
extends AbstractUIActivator

The activator class controls the plug-in life cycle


Constructor Summary
EgfUiActivator()
           
 
Method Summary
 List<FactoryComponent> getAllFactoryComponents()
          Return all factory components located in both workspace and running Eclipse platform.
static EgfUiActivator getDefault()
          Returns the shared instance
 AdapterFactoryEditingDomain getEditingDomain()
          Get the editing domain to deal with EGF model elements.
 AdapterFactoryEditingDomain getEditingDomainInReadOnly()
          Get the editing domain to deal with EGF model elements in a read only context
 IAdaptable getFactoryComponentInPlatormInput()
          Return an input related to factory components in the platform.
 IAdaptable getFactoryComponentInWorkspaceInput()
          Return an input related to factory components in the workspace.
 List<FactoryComponent> getTargetPlatformFactoryComponents()
          Return all factory components located in the running Eclipse platform.
 IAdaptable getWorkingSetsInput()
          Return an input related to factory components in the workspace.
 List<FactoryComponent> getWorkspaceFactoryComponents()
          Return all factory components located in the workspace.
 void start(BundleContext context)
           
 void stop(BundleContext context)
           
 
Methods inherited from class org.eclipse.egf.common.ui.activator.AbstractUIActivator
createImageDescriptor, getImage, getImageDescriptor, getPluginID, getWorkbenchDisplay, log, log, log, log, log, log, log, newErrorStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EgfUiActivator

public EgfUiActivator()
Method Detail

start

public void start(BundleContext context)
           throws Exception
Throws:
Exception
See Also:
org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)

stop

public void stop(BundleContext context)
          throws Exception
Throws:
Exception
See Also:
org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)

getDefault

public static EgfUiActivator getDefault()
Returns the shared instance

Returns:
the shared instance

getFactoryComponentInWorkspaceInput

public IAdaptable getFactoryComponentInWorkspaceInput()
Return an input related to factory components in the workspace.

Returns:
not null object.

getWorkingSetsInput

public IAdaptable getWorkingSetsInput()
Return an input related to factory components in the workspace.

Returns:
not null object.

getFactoryComponentInPlatormInput

public IAdaptable getFactoryComponentInPlatormInput()
Return an input related to factory components in the platform.

Returns:
a not null object.

getAllFactoryComponents

public List<FactoryComponent> getAllFactoryComponents()
Return all factory components located in both workspace and running Eclipse platform.

Returns:
a not null list.

getTargetPlatformFactoryComponents

public List<FactoryComponent> getTargetPlatformFactoryComponents()
Return all factory components located in the running Eclipse platform.

Returns:
a not null list.

getWorkspaceFactoryComponents

public List<FactoryComponent> getWorkspaceFactoryComponents()
Return all factory components located in the workspace.

Returns:
a not null list.

getEditingDomain

public AdapterFactoryEditingDomain getEditingDomain()
Get the editing domain to deal with EGF model elements.
This editing domain supports model elements modifications.

Returns:
a not null AdapterFactoryEditingDomain instance.

getEditingDomainInReadOnly

public AdapterFactoryEditingDomain getEditingDomainInReadOnly()
Get the editing domain to deal with EGF model elements in a read only context. *

Returns:
a not null AdapterFactoryEditingDomain instance.

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.