congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Table (org.hibernate.mapping)
    A relational table
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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