Author: scabanovich
Date: 2008-09-22 07:32:33 -0400 (Mon, 22 Sep 2008)
New Revision: 10390
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/AutoLayout.java
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/Items.java
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/TransitionArranger.java
Log:
JBIDE-2611 Autolayout for links that have identical source and target nodes.
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/AutoLayout.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/AutoLayout.java 2008-09-22
10:48:56 UTC (rev 10389)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/AutoLayout.java 2008-09-22
11:32:33 UTC (rev 10390)
@@ -34,7 +34,7 @@
items.setProcess(process);
apply();
if(items.override) {
- TransitionArranger a = new TransitionArranger();
+ TransitionArranger a = items.createTransitionArranger();
a.setItems(items.items);
a.execute();
}
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/Items.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/Items.java 2008-09-22
10:48:56 UTC (rev 10389)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/Items.java 2008-09-22
11:32:33 UTC (rev 10390)
@@ -119,6 +119,10 @@
}
}
+ protected TransitionArranger createTransitionArranger() {
+ return new TransitionArranger();
+ }
+
private void print() {
for (int i = 0; i < items.length; i++)
items[i].print();
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/TransitionArranger.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/TransitionArranger.java 2008-09-22
10:48:56 UTC (rev 10389)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/autolayout/TransitionArranger.java 2008-09-22
11:32:33 UTC (rev 10390)
@@ -14,7 +14,7 @@
import org.jboss.tools.common.model.XModelObject;
public class TransitionArranger {
- Item[] items;
+ protected Item[] items;
public void setItems(Item[] items) {
this.items = items;