congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CommandParameter.getValue
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

Object value = commandParameter.getValue();
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

Object oldValue = commandParameter.getValue();
Object newValue = unwrap(oldValue);
origin: org.eclipse.emf/org.eclipse.emf.mapping

encode(commandParameter.getFeature());
encode(commandParameter.getCollection());
encode(commandParameter.getValue());
encode(commandParameter.getIndex());
buffer.append("</command-parameter>");
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

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

  !(commandParameter.getOwner() instanceof MappedObjectItemProvider) &&
  commandParameter.getFeature() == null && 
  commandParameter.getValue() instanceof Collection)
for (Object object : (Collection<?>)commandParameter.getValue())
 Collection<Object> mappedObjects = new ArrayList<Object>((Collection<?>)commandParameter.getValue());
 mappedObjects.add(commandParameter.getOwner());
 return CreateMappingCommand.create(this, mappedObjects);
origin: org.eclipse.emf/org.eclipse.emf.mapping

  !(commandParameter.getOwner() instanceof MappedObjectItemProvider) &&
  commandParameter.getFeature() == null && 
  commandParameter.getValue() instanceof Collection<?>)
for (Object object : (Collection<?>)commandParameter.getValue())
 Collection<Object> mappedObjects = new ArrayList<Object>((Collection<?>)commandParameter.getValue());
 mappedObjects.add(commandParameter.getOwner());
 return CreateMappingCommand.create(this, mappedObjects);
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

final Object value = commandParameter.getValue();
int index = commandParameter.getIndex();
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: 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: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

   commandParameter.getEStructuralFeature() != null ?
    commandParameter.getEStructuralFeature() :
    getSetFeature(commandParameter.getEOwner(), commandParameter.getValue()),
   commandParameter.getValue(),
   commandParameter.getIndex());
result = createCopyCommand(domain, commandParameter.getEOwner(), (CopyCommand.Helper)commandParameter.getValue());
result = createCreateCopyCommand(domain, commandParameter.getEOwner(), (CopyCommand.Helper)commandParameter.getValue());
result = createInitializeCopyCommand(domain, commandParameter.getEOwner(), (CopyCommand.Helper)commandParameter.getValue());
    commandParameter.getEOwner(), 
    commandParameter.getEStructuralFeature(), 
    commandParameter.getValue(), 
    commandParameter.getIndex());
  (domain, commandParameter.getEOwner(), commandParameter.getEStructuralFeature(), commandParameter.getValue(), commandParameter.getCollection());
CommandParameter newChildParameter = (CommandParameter)commandParameter.getValue();
result = 
 createCreateChildCommand
   commandParameter.getEOwner(), 
   newChildParameter.getEStructuralFeature(), 
   newChildParameter.getValue(),
   newChildParameter.getIndex(),
   commandParameter.getCollection());      
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

Object obj = commandParameter.getValue();
Object parent = (obj == null) ? null : getParent(obj);
if (parent == null) parent = obj;
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: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

Object child = parameter.getValue();
if (childFeature != null && child != null)
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

result = SetCommand.create(domain, commandOwner, feature, commandParameter.getValue(), commandParameter.getIndex());
org.eclipse.emf.edit.commandCommandParametergetValue

Javadoc

This returns the specified value.

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.
  • getOwner
    This returns the specified owner.
  • 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

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ImageIO (javax.imageio)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • PhpStorm for WordPress
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