Author: scabanovich
Date: 2008-05-30 08:21:18 -0400 (Fri, 30 May 2008)
New Revision: 8460
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/XModelObjectAction.java
Log:
JBIDE-1189
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/XModelObjectAction.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/XModelObjectAction.java 2008-05-30
12:20:50 UTC (rev 8459)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/XModelObjectAction.java 2008-05-30
12:21:18 UTC (rev 8460)
@@ -54,15 +54,20 @@
}
public void actionPerformed() {
try {
+ XAction runAction = action;
+ XModelObject runObject = object;
+
XRedirect redirect = action.getRedirect();
XAction redirectAction = null;
XModelObject redirectObject = null;
- if(redirect != null) {
- redirectAction = redirect.getRedirectAction(object);
- redirectObject = redirect.getRedirectSource(object);
+ while(redirect != null) {
+ redirectAction = redirect.getRedirectAction(runObject);
+ redirectObject = redirect.getRedirectSource(runObject);
+ redirect = redirectAction == null ? null : redirectAction.getRedirect();
+ if(redirect != null) {
+ runObject = redirectObject;
+ }
}
- XAction runAction = action;
- XModelObject runObject = object;
if(redirectAction != null && redirectObject != null) {
runAction = redirectAction;
runObject = redirectObject;
Show replies by date