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.type.core.edithelper
Interface IEditHelper

All Known Implementing Classes:
AbstractEditHelper

public interface IEditHelper

A factory for commands that will modify elements of a specific type.

Clients should not implement this interface directly, but should subclass AbstractEditHelperinstead.


Method Summary
 boolean canEdit ( IEditCommandRequest req)
          Answers whether or not the requested edit can be performed.
 java.util.List getContainedValues (org.eclipse.emf.ecore.EObject eContainer, org.eclipse.emf.ecore.EReference feature)
          Gets the values that can be contained in the feature of eContainer.
  ICommand getEditCommand ( IEditCommandRequest req)
          Gets an edit command to perform the work requested in req.
 

Method Detail

canEdit

boolean canEdit(
IEditCommandRequest req)
Answers whether or not the requested edit can be performed.

Parameters:
req - the edit request
Returns:
true if the requested edit can be performed, false otherwise.

getEditCommand


ICommand getEditCommand(
IEditCommandRequest req)
Gets an edit command to perform the work requested in req.

The work should be considered unsupported by this edit helper if the command returned is null or its isExecutable() method returns false.

Parameters:
req - the edit request
Returns:
the edit command, or null if none could be found

getContainedValues

java.util.List getContainedValues(org.eclipse.emf.ecore.EObject eContainer,
                                  org.eclipse.emf.ecore.EReference feature)
Gets the values that can be contained in the feature of eContainer. Such values may be element types that could be owned by the eContainer, or actual model element instances that can be referenced by the feature.

Parameters:
eContainer - the container object
feature - the feature of the container object
Returns:
the possible values that can be contained in the feature

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