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.clipboard.core
Class PasteAction

java.lang.Object
  extended by org.eclipse.emf.common.util.AbstractEnumerator
      extended by 
org.eclipse.gmf.runtime.emf.clipboard.core.PasteAction
All Implemented Interfaces:
java.io.Serializable, org.eclipse.emf.common.util.Enumerator

public class PasteAction
extends org.eclipse.emf.common.util.AbstractEnumerator

An enumeration of actions to resolve paste collisions.

See Also:
Serialized Form

Field Summary
static  PasteAction ADD
          Indicates that that the collision should be resolved by just adding the conflicting pasted element with an altered name to distinguish it from the existing one.
static  PasteAction CLONE
          Indicates that that the collision should be resolved by just adding the conflicting pasted element with an altered name to distinguish it from the existing one.
static  PasteAction DISCARD
          Indicates that the collision should be resolved by discarding the new element (not pasting it).
static  PasteAction IGNORE
          Indicates that the collision should be resolved by just not doing anything.
static  PasteAction MERGE
          Indicates that the collision should be resolved by merging the new element into the existing one.
static  PasteAction NO_ACTION
          The "undefined" value.
static  PasteAction REPLACE
          Indicates that the collision should be resolved by replacing the existing element with the new one.
 
Method Summary
protected  java.util.List getValues ()
          Retrieves the list of constants for this enumerated type.
 
Methods inherited from class org.eclipse.emf.common.util.AbstractEnumerator
getLiteral, getName, getValue, toString, writeReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD

public static final 
PasteAction ADD
Indicates that that the collision should be resolved by just adding the conflicting pasted element with an altered name to distinguish it from the existing one. Note that for scalar references, this is equivalent to a REPLACE.


CLONE

public static final 
PasteAction CLONE
Indicates that that the collision should be resolved by just adding the conflicting pasted element with an altered name to distinguish it from the existing one. Note that for scalar references, this is equivalent to a REPLACE.


DISCARD

public static final 
PasteAction DISCARD
Indicates that the collision should be resolved by discarding the new element (not pasting it).


IGNORE

public static final 
PasteAction IGNORE
Indicates that the collision should be resolved by just not doing anything. The new element will not be pasted.


MERGE

public static final 
PasteAction MERGE
Indicates that the collision should be resolved by merging the new element into the existing one. The merge will be strong or weak according to the merge hints provided to the paste operation.


NO_ACTION

public static final 
PasteAction NO_ACTION
The "undefined" value. This is an invalid paste action, which can be used to indicate that the determination of an appropriate paste action has not been done.


REPLACE

public static final 
PasteAction REPLACE
Indicates that the collision should be resolved by replacing the existing element with the new one.

Method Detail

getValues

protected java.util.List getValues()
Retrieves the list of constants for this enumerated type.

Returns:
The list of constants for this enumerated type.

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