Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Runtime

org.eclipse.gmf.runtime.emf.ui.services.modelingassistant
Class GetRelTypesOnTargetOperation

java.lang.Object
  extended by 
org.eclipse.gmf.runtime.emf.ui.services.modelingassistant.GetRelTypesOnTargetOperation
All Implemented Interfaces:
IOperation, IModelingAssistantOperation

public class GetRelTypesOnTargetOperation
extends java.lang.Object
implements IModelingAssistantOperation

The operation used with the modeling assistant service that gets the type of relationships that can be created from a given target element.


Field Summary
 
Fields inherited from interface org.eclipse.gmf.runtime.emf.ui.services.modelingassistant. IModelingAssistantOperation
GET_REL_TYPES_FOR_SRE_ON_SOURCE_ID, GET_REL_TYPES_FOR_SRE_ON_TARGET_ID, GET_REL_TYPES_ON_SOURCE_AND_TARGET_ID, GET_REL_TYPES_ON_SOURCE_ID, GET_REL_TYPES_ON_TARGET_ID, GET_TYPES_FOR_POPUP_BAR_ID, GET_TYPES_FOR_SOURCE_ID, GET_TYPES_FOR_TARGET_ID, GET_TYPES_ID, SELECT_EXISTING_ELEMENT_FOR_SOURCE_ID, SELECT_EXISTING_ELEMENT_FOR_TARGET_ID
 
Constructor Summary
protected GetRelTypesOnTargetOperation ( IAdaptable target)
          Creates a new GetRelTypesOnTargetOperation.
 
Method Summary
 java.lang.Object execute ( IProvider provider)
          Executes this operation on the specified provider.
  IAdaptable getContext ()
          Returns the target.
 java.lang.String getId ()
          Returns the id string to match that specified in the plugin.xml for deferred loading.
  IAdaptable getTarget ()
          Gets the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetRelTypesOnTargetOperation

protected GetRelTypesOnTargetOperation(
IAdaptable target)
Creates a new GetRelTypesOnTargetOperation.

Parameters:
target - the target: adapts to editpart, view, element, etc.
Method Detail

getId

public java.lang.String getId()
Description copied from interface: IModelingAssistantOperation
Returns the id string to match that specified in the plugin.xml for deferred loading.

Specified by:
getId in interface IModelingAssistantOperation
Returns:
the id string

getContext

public 
IAdaptable getContext()
Returns the target. This is what will be used to assist in delayed loading of a modeling assistant provider.

Specified by:
getContext in interface IModelingAssistantOperation
Returns:
the context object

execute

public java.lang.Object execute(
IProvider provider)
Description copied from interface: IOperation
Executes this operation on the specified provider.

Service implementers generally implement this method by first casting the provider to their service specific IProvider-derived class and then by delegating it the execution. Delegation is accomplished through the service specific provider derived class API.

Specified by:
execute in interface IOperation
Parameters:
provider - The provider on which to execute the operation.
Returns:
The result of executing this operation.

getTarget

public 
IAdaptable getTarget()
Gets the target.

Returns:
Returns the target.

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire