Codota Logo
CommandParameter.getFeature
Code IndexAdd Codota to your IDE (free)

How to use
getFeature
method
in
org.eclipse.emf.edit.command.CommandParameter

Best Java code snippets using org.eclipse.emf.edit.command.CommandParameter.getFeature (Showing top 8 results out of 315)

  • Common ways to obtain CommandParameter
private void myMethod () {
CommandParameter c =
  • Codota IconObject feature;Object value;new CommandParameter(null, feature, value)
  • Smart code suggestions by Codota
}
origin: org.eclipse.emf/org.eclipse.emf.mapping

buffer.append("<command-parameter>");
encode(commandParameter.getOwner());
encode(commandParameter.getFeature());
encode(commandParameter.getCollection());
encode(commandParameter.getValue());
origin: org.eclipse/org.eclipse.emf.mapping

buffer.append("<command-parameter>");
encode(commandParameter.getOwner());
encode(commandParameter.getFeature());
encode(commandParameter.getCollection());
encode(commandParameter.getValue());
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

/**
 * Implements creation of a set, copy, or drag-and-drop command by calling out to {@link #createSetCommand
 * createSetCommand}, {@link #createCopyCommand createCopyCommand}, or {@link #createDragAndDropCommand
 * createDragAndDropCommand}.
 */
public Command baseCreateCommand(Object object, EditingDomain domain, Class<? extends Command> commandClass, CommandParameter commandParameter)
{
 if (commandClass == SetCommand.class)
 {
  return 
   createSetCommand
    (domain, commandParameter.getOwner(), commandParameter.getFeature(), commandParameter.getValue(), commandParameter.getIndex());
 }
 else if (commandClass == CopyCommand.class)
 {
  return createCopyCommand(domain, commandParameter.getOwner(), (CopyCommand.Helper)commandParameter.getValue());
 }
 else if (commandClass == DragAndDropCommand.class)
 {
  DragAndDropCommand.Detail detail = (DragAndDropCommand.Detail)commandParameter.getFeature();
  return 
   createDragAndDropCommand
    (domain, commandParameter.getOwner(), detail.location, detail.operations, detail.operation, commandParameter.getCollection());
 }
 else
 {
  return UnexecutableCommand.INSTANCE;
 }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

DragAndDropCommand.Detail detail = (DragAndDropCommand.Detail)commandParameter.getFeature();
return createDragAndDropCommand(domain, commandParameter.getOwner(), detail.location, detail.operations, detail.operation, commandParameter.getCollection());
 Object feature = commandParameter.getFeature();
 result = SetCommand.create(domain, commandOwner, feature, commandParameter.getValue(), commandParameter.getIndex());
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

(this, commandParameter.getOwner(), commandParameter.getFeature(), commandParameter.getIndex(), getOptimizeCopy());
(this, RemoveCommand.create(this, commandParameter.getOwner(), commandParameter.getFeature(), commandParameter.getCollection()));
return createCommand(CreateChildCommand.class, new CommandParameter(parent, commandParameter.getFeature(), commandParameter.getValue(), commandParameter.getCollection(), commandParameter.getIndex()));
return createCommand(DragAndDropCommand.class, new CommandParameter(resourceSet, commandParameter.getFeature(), commandParameter.getValue(), commandParameter.getCollection(), commandParameter.getIndex()));
origin: org.eclipse/org.eclipse.emf.mapping

!(commandParameter.getOwner() instanceof Mapping) &&
!(commandParameter.getOwner() instanceof MappedObjectItemProvider) &&
commandParameter.getFeature() == null && 
commandParameter.getValue() instanceof Collection)
origin: org.eclipse.emf/org.eclipse.emf.mapping

!(commandParameter.getOwner() instanceof Mapping) &&
!(commandParameter.getOwner() instanceof MappedObjectItemProvider) &&
commandParameter.getFeature() == null && 
commandParameter.getValue() instanceof Collection<?>)
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

DragAndDropCommand.Detail detail = (DragAndDropCommand.Detail)commandParameter.getFeature();
Collection<?> collection = commandParameter.getCollection();
if (domain != null && !collection.isEmpty() && commandParameter.getOwner() != domain.getResourceSet())
org.eclipse.emf.edit.commandCommandParametergetFeature

Javadoc

This returns the specified feature.

Popular methods of CommandParameter

  • <init>
    This creates an instance specifying an owner, a feature, a collection of values, and an index.
  • setOwner
    This sets the owner to the specified value.
  • getCollection
    This returns the specified collection.
  • getIndex
    This returns the specified index.
  • getOwner
    This returns the specified owner.
  • getValue
    This returns the specified value.
  • collectionToString
  • getEOwner
    This returns the specified owner as a EObject, if it is one.
  • getEStructuralFeature
    This returns the specified feature as a EStructuralFeature, if it is one.
  • getOwnerList
    This is a safe way to get the list affected by the parameters for an add or remove specification. It

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Reference (javax.naming)
  • JOptionPane (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now