Author: akazakov
Date: 2011-05-24 20:29:03 -0400 (Tue, 24 May 2011)
New Revision: 31468
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/text/TextProposal.java
Log:
https://issues.jboss.org/browse/JBIDE-8953
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/text/TextProposal.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/text/TextProposal.java 2011-05-25
00:27:38 UTC (rev 31467)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/text/TextProposal.java 2011-05-25
00:29:03 UTC (rev 31468)
@@ -55,6 +55,29 @@
PostProcessing postProcessing;
+ /* (non-Javadoc)
+ * @see java.lang.Object#clone()
+ */
+ @Override
+ public Object clone() throws CloneNotSupportedException {
+ TextProposal newObject = new TextProposal();
+ newObject.source = this.source;
+ newObject.label = this.label;
+ newObject.contextInfo = this.contextInfo;
+ newObject.image = this.image;
+ newObject.emptyImage = this.emptyImage;
+ newObject.replacementString = this.replacementString;
+ newObject.emptyContextInfo = this.emptyContextInfo;
+ newObject.relevance = this.relevance;
+ newObject.position = this.position;
+ newObject.autoActivationContentAssistantAfterApplication =
this.autoActivationContentAssistantAfterApplication;
+ newObject.type = this.type;
+ newObject.sourceType = this.sourceType;
+ newObject.start = this.start;
+ newObject.end = this.end;
+ return newObject;
+ }
+
public String getType() {
return type;
}