|
|||||||||||
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.AbstractExternalServiceHandler
This class is to be extended by all ExternalService handler contributions.
Constructor Summary | |
AbstractExternalServiceHandler()
|
Method Summary | |
boolean |
canCreateExternalServiceBinding()
Queries if the external service handler provides support for creating an external service binding using the method createExternalServiceBindingFor() . |
boolean |
canCreateExternalServiceFor(java.lang.Object service)
Queries if an external service of the kind supported by this handler can be created for the specified model object. |
boolean |
canCreateManyExternalServiceBindings()
Queries if the external service handler provides support for creating more than one binding instance for an external service. |
boolean |
isInterfaceKindSupported(IInterfaceHandler interfaceHandler)
Queries if an external service 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.ExternalService theExternalService)
Removes a given binding kind from the external service. |
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.IExternalServiceHandler |
createExternalServiceBindingFor, createExternalServiceFor |
Methods inherited from interface org.eclipse.stp.core.saf.handler.IHandler |
getDescription, getDescriptiveKindName, getKind, getLargeIcon, getName, getSmallIcon |
Constructor Detail |
public AbstractExternalServiceHandler()
Method Detail |
public boolean canCreateExternalServiceFor(java.lang.Object service)
IExternalServiceHandler
true
, the handler's
IExternalServiceHandler.createExternalServiceFor(Object,IContainer,IUIContext)
method
may be called to create an external service for the model object.
This method should be quick to execute, because it may be called to populate a context menu or a user dialog.
canCreateExternalServiceFor
in interface IExternalServiceHandler
service
- an object representing a service that may be imported
true
if the handler can create an
ExternalService
object from the specified model
object; false
otherwisepublic boolean canCreateExternalServiceBinding()
IExternalServiceHandler
createExternalServiceBindingFor()
.
canCreateExternalServiceBinding
in interface IExternalServiceHandler
true
if support is provided for creating a
binding; false
otherwisepublic boolean canCreateManyExternalServiceBindings()
IExternalServiceHandler
canCreateManyExternalServiceBindings
in interface IExternalServiceHandler
true
if support is provided for creating more than
one binding of the supported kind; false
otherwisepublic boolean isInterfaceKindSupported(IInterfaceHandler interfaceHandler) throws SAFException
IExternalServiceHandler
isInterfaceKindSupported
in interface IExternalServiceHandler
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 external service 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.ExternalService theExternalService) throws SAFException, InvalidOperationException
IExternalServiceHandler
removeKind
in interface IExternalServiceHandler
theExternalService
- the external service being modified
IDataModelOperation
instance that, once executed by the
caller, resets the extenal service point kind
InvalidOperationException
- The external service 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 |