Author: mareshkau
Date: 2008-07-23 04:30:14 -0400 (Wed, 23 Jul 2008)
New Revision: 9227
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/FormatAttributeData.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/FormatData.java
Log:
JBIDE-1494, code cleanup, unused methods clone was removed
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/FormatAttributeData.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/FormatAttributeData.java 2008-07-23
08:28:08 UTC (rev 9226)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/FormatAttributeData.java 2008-07-23
08:30:14 UTC (rev 9227)
@@ -17,7 +17,7 @@
/**
* @author Igels
*/
-public class FormatAttributeData implements Cloneable{
+public class FormatAttributeData{
public static final String STYLE_TYPE = "style"; //$NON-NLS-1$
@@ -28,23 +28,6 @@
private FormatData parentFormatData;
- /* (non-Javadoc)
- * @see java.lang.Object#clone()
- */
- @Override
- public FormatAttributeData clone() throws CloneNotSupportedException {
-
- FormatAttributeData result = new FormatAttributeData(parentFormatData, null);
-
- result.type = new String(this.type);
- result.name = new String(this.name);
- result.value = new String(this.value);
- result.caseSensitive = caseSensitive;
- result.parentFormatData = this.parentFormatData;
-
- return result;
- }
-
/**
* @param formatAttribute - Element <vpe:formatAttribute>
*/
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/FormatData.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/FormatData.java 2008-07-23
08:28:08 UTC (rev 9226)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/FormatData.java 2008-07-23
08:30:14 UTC (rev 9227)
@@ -19,7 +19,7 @@
* FormatData describe vpe template text formating part for tag.
* @author Igels
*/
-public class FormatData implements Cloneable{
+public class FormatData{
private FormatAttributeData[] formatAttributes;
private String type;
@@ -61,38 +61,6 @@
}
- /* (non-Javadoc)
- * @see java.lang.Object#clone()
- */
- @Override
- public FormatData clone() throws CloneNotSupportedException {
-
- FormatData result = new FormatData();
-
- result.formatAttributes = new FormatAttributeData[formatAttributes.length];
- //clone format attributes
- for(int i=0;i<formatAttributes.length;i++) {
- result.formatAttributes[i]=this.formatAttributes[i].clone();
- result.formatAttributes[i].setParentFormatData(result);
- }
- result.addChildren = new String(this.addChildren);
- result.addChildrenByItself = this.addChildrenByItself;
- result.addChildrenHandler = new String(this.addChildrenHandler);
- result.addChildrenIsAllow = this.addChildrenIsAllow;
- result.addChildrenIsAllowIfParentDoesntDeny =
this.addChildrenIsAllowIfParentDoesntDeny;
- result.addChildrenIsDeny=this.addChildrenIsDeny;
- result.addParent = new String(this.addParent);
- result.addParentByItself = this.addParentByItself;
- result.addParentIsAllow = this.addParentIsAllow;
- result.addParentIsAllowIfParentDoesntDeny = this.addParentIsAllowIfParentDoesntDeny;
- result.addParentIsDeny = this.addParentIsDeny;
- result.handler = new String(this.handler);
- result.setDefault=this.setDefault;
- result.type= new String(this.type);
- return result;
- }
-
-
private void setAddChildrenFlags() {
if(VpeTemplateManager.ATTR_FORMAT_ADD_CHILDREN_ALLOW_VALUE.equals(addChildren)) {
addChildrenIsAllow = true;
Show replies by date