Author: scabanovich
Date: 2008-04-04 12:24:20 -0400 (Fri, 04 Apr 2008)
New Revision: 7347
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/model/commands/ConnectionCommand.java
Log:
JBIDE-893
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/model/commands/ConnectionCommand.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/model/commands/ConnectionCommand.java 2008-04-04
16:24:01 UTC (rev 7346)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/model/commands/ConnectionCommand.java 2008-04-04
16:24:20 UTC (rev 7347)
@@ -12,6 +12,7 @@
import org.eclipse.gef.commands.Command;
+import org.jboss.tools.common.model.XModelException;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.jst.web.tiles.ui.editor.edit.TilesEditPart;
import org.jboss.tools.jst.web.tiles.ui.editor.model.IDefinition;
@@ -57,9 +58,13 @@
public void execute() {
if (((IDefinition) target.getModel()).isCollapsed())
((IDefinition) target.getModel()).expand();
+ try {
((IDefinition) source.getModel()).getTilesModel().getHelper().makeLink(
(XModelObject) ((IDefinition) source.getModel()).getSource(),
(XModelObject) ((IDefinition) target.getModel()).getSource());
+ } catch (XModelException e) {
+ throw new IllegalArgumentException(e);
+ }
}
public String getLabel() {
Show replies by date