congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CommandParameter.getOwner
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.eclipse/org.eclipse.emf.mapping

   !(commandParameter.getOwner() instanceof Mapping) &&
   !(commandParameter.getOwner() instanceof MappedObjectItemProvider) &&
   commandParameter.getFeature() == null && 
   commandParameter.getValue() instanceof Collection)
 boolean inputToOutput = mappingRoot.isOutputObject(commandParameter.getOwner());
 boolean okay = true;
 for (Object object : (Collection<?>)commandParameter.getValue())
  mappedObjects.add(commandParameter.getOwner());
  return CreateMappingCommand.create(this, mappedObjects);
else if (commandClass == RemoveCommand.class && commandParameter.getOwner() == null)
if ((mappingRoot.isInputObject(commandParameter.getOwner()) ||
      mappingRoot.isOutputReadOnly() && mappingRoot.isOutputObject(commandParameter.getOwner())) && 
      (commandClass == AddCommand.class ||
       commandClass == MoveCommand.class ||
origin: org.eclipse.emf/org.eclipse.emf.mapping

   !(commandParameter.getOwner() instanceof Mapping) &&
   !(commandParameter.getOwner() instanceof MappedObjectItemProvider) &&
   commandParameter.getFeature() == null && 
   commandParameter.getValue() instanceof Collection<?>)
 boolean inputToOutput = mappingRoot.isOutputObject(commandParameter.getOwner());
 boolean okay = true;
 for (Object object : (Collection<?>)commandParameter.getValue())
  mappedObjects.add(commandParameter.getOwner());
  return CreateMappingCommand.create(this, mappedObjects);
else if (commandClass == RemoveCommand.class && commandParameter.getOwner() == null)
if ((mappingRoot.isInputObject(commandParameter.getOwner()) ||
      mappingRoot.isOutputReadOnly() && mappingRoot.isOutputObject(commandParameter.getOwner())) && 
      (commandClass == AddCommand.class ||
       commandClass == MoveCommand.class ||
origin: org.eclipse.emf/org.eclipse.emf.mapping

@Override
public Command createCommand(Object object, EditingDomain editingDomain, Class<? extends Command> commandClass, CommandParameter commandParameter)
{
 if (editingDomain instanceof MappingDomain)
 {
  MappingDomain mappingDomain = (MappingDomain)editingDomain;
  if (commandClass == NameMatchMappingCommand.class)
  {
   return createNameMatchMappingCommand(mappingDomain, (Mapping)commandParameter.getOwner());
  }
  else if (commandClass == TypeMatchMappingCommand.class)
  {
   return createTypeMatchMappingCommand(mappingDomain, (Mapping)commandParameter.getOwner());
  }
 }
 // This ensures that we are dealing with actual MOF objects.
 //
 commandParameter.collection = (Collection<?>)substituteMappedObject((Mapping)object, commandParameter.getCollection());
 commandParameter.value = substituteMappedObject((Mapping)object, commandParameter.getValue());
 return super.createCommand(object, editingDomain, commandClass, commandParameter);
}
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: org.eclipse/org.eclipse.emf.mapping

@Override
public Command createCommand(Object object, EditingDomain editingDomain, Class<? extends Command> commandClass, CommandParameter commandParameter)
{
 if (editingDomain instanceof MappingDomain)
 {
  MappingDomain mappingDomain = (MappingDomain)editingDomain;
  if (commandClass == NameMatchMappingCommand.class)
  {
   return createNameMatchMappingCommand(mappingDomain, (Mapping)commandParameter.getOwner());
  }
  else if (commandClass == TypeMatchMappingCommand.class)
  {
   return createTypeMatchMappingCommand(mappingDomain, (Mapping)commandParameter.getOwner());
  }
 }
 // This ensures that we are dealing with actual MOF objects.
 //
 commandParameter.collection = (Collection<?>)substituteMappedObject((Mapping)object, commandParameter.getCollection());
 commandParameter.value = substituteMappedObject((Mapping)object, commandParameter.getValue());
 return super.createCommand(object, editingDomain, commandClass, commandParameter);
}
origin: org.eclipse.emf/org.eclipse.emf.mapping

encode(commandParameter.getOwner());
encode(commandParameter.getFeature());
encode(commandParameter.getCollection());
origin: org.eclipse/org.eclipse.emf.mapping

encode(commandParameter.getOwner());
encode(commandParameter.getFeature());
encode(commandParameter.getCollection());
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

Object owner = commandParameter.getOwner();
if (commandClass == CopyToClipboardCommand.class)
  (this, commandParameter.getOwner(), commandParameter.getFeature(), commandParameter.getIndex(), getOptimizeCopy());
  (this, RemoveCommand.create(this, commandParameter.getOwner(), commandParameter.getFeature(), commandParameter.getCollection()));
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

return createDragAndDropCommand(domain, commandParameter.getOwner(), detail.location, detail.operations, detail.operation, commandParameter.getCollection());
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

if (domain != null && !collection.isEmpty() && commandParameter.getOwner() != domain.getResourceSet())
  (domain, commandParameter.getOwner(), detail.location, detail.operations, detail.operation, commandParameter.getCollection());
org.eclipse.emf.edit.commandCommandParametergetOwner

Javadoc

This returns the specified owner.

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.
  • getFeature
    This returns the specified feature.
  • getIndex
    This returns the specified index.
  • 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

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now