|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.stp.core.saf.handler.AbstractHandler
org.eclipse.stp.core.saf.handler.AbstractEntryPointHandler
This class is to be extended by all EntryPoint handler contributions.
Constructor Summary | |
AbstractEntryPointHandler()
|
Method Summary | |
boolean |
canCreateEntryPointBinding()
Queries if the entry point handler provides support for creating an entry point binding using the method createEntryPointBindingFor() . |
boolean |
canCreateEntryPointFor(java.lang.Object service)
Queries if an entry point of the kind supported by this handler can be created for the specified model object. |
boolean |
canCreateManyEntryPointBindings()
Queries if the entry point handler provides support for creating more than one binding instance for an entry point. |
boolean |
isInterfaceKindSupported(IInterfaceHandler interfaceHandler)
Queries if an entry point of the kind supported by this handler supports interfaces of the kind specified by the given interface handler in its interface set. |
org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation |
removeKind(org.eclipse.stp.core.sca.EntryPoint theEntryPoint)
Removes a given binding kind from the entry point. |
Methods inherited from class org.eclipse.stp.core.saf.handler.AbstractHandler |
getDescription, getDescriptiveKindName, getKind, getLargeIcon, getName, getSmallIcon, initialize |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.stp.core.saf.handler.IEntryPointHandler |
createEntryPointBindingFor, createEntryPointFor |
Methods inherited from interface org.eclipse.stp.core.saf.handler.IHandler |
getDescription, getDescriptiveKindName, getKind, getLargeIcon, getName, getSmallIcon |
Constructor Detail |
public AbstractEntryPointHandler()
Method Detail |
public boolean canCreateEntryPointFor(java.lang.Object service)
IEntryPointHandler
true
, the handler's
IEntryPointHandler.createEntryPointFor(Object, IContainer, IUIContext)
method may
be called to create an entry point for the component or external service.
This method should be quick to execute, because it may be called to populate a context menu or a user dialog.
canCreateEntryPointFor
in interface IEntryPointHandler
service
- an object representing the service to be exposed
true
if the handler can create an
EntryPoint
object from the specified model object;
false
otherwisepublic boolean canCreateEntryPointBinding()
IEntryPointHandler
createEntryPointBindingFor()
.
canCreateEntryPointBinding
in interface IEntryPointHandler
true
if support is provided for creating a
binding; false
otherwisepublic boolean canCreateManyEntryPointBindings()
IEntryPointHandler
canCreateManyEntryPointBindings
in interface IEntryPointHandler
true
if support is provided for creating more than
one binding of the supported kind; false
otherwisepublic boolean isInterfaceKindSupported(IInterfaceHandler interfaceHandler) throws SAFException
IEntryPointHandler
isInterfaceKindSupported
in interface IEntryPointHandler
interfaceHandler
- the interface handler that will be used to manipulate the
interface. The implementation of this method can obtain the
interface kind by invoking IHandler.getKind()
when performing the evaluation.
true
if the entry point supports interfaces of the
specified interface kind; false
otherwise
SAFException
- An unexpected exception occurred in the handler.public final org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation removeKind(org.eclipse.stp.core.sca.EntryPoint theEntryPoint) throws SAFException, InvalidOperationException
IEntryPointHandler
removeKind
in interface IEntryPointHandler
theEntryPoint
- the entry point being modified
IDataModelOperation
instance that, once executed by
the caller, resets the entry point kind
InvalidOperationException
- The entry point kind cannot be removed.
SAFException
- No handler for the specified kind is found, or the
handler throws an exception.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |