|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.ecp.internal.core.util.Element
org.eclipse.emf.ecp.spi.ui.DefaultUIProvider
public class DefaultUIProvider
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecp.spi.core.util.ECPDisposable |
|---|
ECPDisposable.DisposeListener |
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.emf.ecp.spi.ui.UIProvider |
|---|
EMF_LABEL_PROVIDER, TYPE |
| Constructor Summary | |
|---|---|
DefaultUIProvider(String name)
Constructor of a DefaultUIProvider. |
|
| Method Summary | ||
|---|---|---|
void |
addDisposeListener(ECPDisposable.DisposeListener listener)
Adds a ECPDisposable.DisposeListener to this instance. |
|
org.eclipse.swt.widgets.Control |
createAddRepositoryUI(org.eclipse.swt.widgets.Composite parent,
ECPProperties repositoryProperties,
org.eclipse.swt.widgets.Text repositoryNameText,
org.eclipse.swt.widgets.Text repositoryLabelText,
org.eclipse.swt.widgets.Text repositoryDescriptionText)
The UIProvider can return its provider specific UI to allow the user to fill in provider specific data during the creation of an Repository. |
|
org.eclipse.swt.widgets.Control |
createCheckoutUI(org.eclipse.swt.widgets.Composite parent,
ECPCheckoutSource checkoutSource,
ECPProperties projectProperties)
The UIProvider can return a provider specific UI to allow the user to fill in provider specific data for a checkout. |
|
org.eclipse.swt.widgets.Control |
createNewProjectUI(org.eclipse.swt.widgets.Composite parent,
CompositeStateObserver observer,
ECPProperties projectProperties)
The UIProvider can return a provider specific UI to allow the user to fill in provider specific data for the creation of a new project. |
|
void |
dispose()
Disposes the current instance. |
|
void |
fillContextMenu(org.eclipse.jface.action.IMenuManager manager,
ECPContainer context,
Object[] elements)
Allows the UIProvider to fill the context menu specifically. |
|
Object |
getAdapter(Class adapterType)
Returns an object which is an instance of the given class associated with this object. |
|
|
getAdapter(Object adaptable,
Class<T> adapterType)
|
|
String |
getDescription()
Return the description. |
|
org.eclipse.swt.graphics.Image |
getImage(Object element)
Returns the image for an element. |
|
String |
getLabel()
Returns the label. |
|
InternalProvider |
getProvider()
Returns the corresponding Provider for this UI Provider. |
|
String |
getText(Object element)
Returns the name for an element. |
|
String |
getType()
This return the type of the object. |
|
boolean |
isDisposed()
Whether this instance is already disposed. |
|
void |
removeDisposeListener(ECPDisposable.DisposeListener listener)
Removed a ECPDisposable.DisposeListener from this instance. |
|
void |
setDescription(String description)
Sets the description. |
|
void |
setLabel(String label)
Sets the label. |
|
| Methods inherited from class org.eclipse.emf.ecp.internal.core.util.Element |
|---|
compareTo, equals, getName, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.ecp.core.util.ECPElement |
|---|
getName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public DefaultUIProvider(String name)
DefaultUIProvider.
name - the name for this UIProvider| Method Detail |
|---|
public String getType()
getType in class Elementpublic InternalProvider getProvider()
getProvider in interface UIProviderInternalProviderpublic final String getLabel()
getLabel in interface InternalRegistryElementpublic final void setLabel(String label)
setLabel in interface InternalRegistryElementlabel - the Label to setpublic final String getDescription()
getDescription in interface InternalRegistryElementpublic final void setDescription(String description)
setDescription in interface InternalRegistryElementdescription - the Description to set
public <T> T getAdapter(Object adaptable,
Class<T> adapterType)
getAdapter in interface AdapterProviderpublic Object getAdapter(Class adapterType)
null
if
no such object can be found.
This implementation of the method declared by IAdaptable passes the request along to the platform's
adapter manager; roughly Platform.getAdapterManager().getAdapter(this, adapter). Subclasses may
override this method (however, if they do so, they should invoke the method on their superclass to ensure that
the Platform's adapter manager is consulted).
getAdapter in interface org.eclipse.core.runtime.IAdaptableadapterType - the class to adapt to
nullIAdaptable.getAdapter(Class)public final boolean isDisposed()
isDisposed in interface ECPDisposablepublic final void dispose()
dispose in interface ECPDisposablepublic final void addDisposeListener(ECPDisposable.DisposeListener listener)
ECPDisposable.DisposeListener to this instance.
addDisposeListener in interface ECPDisposablelistener - the listener to addpublic final void removeDisposeListener(ECPDisposable.DisposeListener listener)
ECPDisposable.DisposeListener from this instance.
removeDisposeListener in interface ECPDisposablelistener - the listener to removepublic String getText(Object element)
getText in interface UIProviderelement - the object to return the name for
public org.eclipse.swt.graphics.Image getImage(Object element)
getImage in interface UIProviderelement - the object to return the image for
public void fillContextMenu(org.eclipse.jface.action.IMenuManager manager,
ECPContainer context,
Object[] elements)
fillContextMenu in interface UIProvidermanager - the IMenuManager to fillcontext - the current selected ECPContainerelements - the selected elements
public org.eclipse.swt.widgets.Control createAddRepositoryUI(org.eclipse.swt.widgets.Composite parent,
ECPProperties repositoryProperties,
org.eclipse.swt.widgets.Text repositoryNameText,
org.eclipse.swt.widgets.Text repositoryLabelText,
org.eclipse.swt.widgets.Text repositoryDescriptionText)
createAddRepositoryUI in interface UIProviderparent - the Composite to fillrepositoryProperties - the ECPProperties of the repository to createrepositoryNameText - the Text widget handling the repository namerepositoryLabelText - the Text widget handling the repository labelrepositoryDescriptionText - the Text widget handling the repository description
public org.eclipse.swt.widgets.Control createCheckoutUI(org.eclipse.swt.widgets.Composite parent,
ECPCheckoutSource checkoutSource,
ECPProperties projectProperties)
createCheckoutUI in interface UIProviderparent - the Composite to fillcheckoutSource - the Object to checkoutprojectProperties - the ECPProperties of the project to create
public org.eclipse.swt.widgets.Control createNewProjectUI(org.eclipse.swt.widgets.Composite parent,
CompositeStateObserver observer,
ECPProperties projectProperties)
createNewProjectUI in interface UIProviderparent - the Composite to fillobserver - the observerprojectProperties - the ECPProperties of the project to create
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||