Author: dazarov
Date: 2008-07-17 07:39:15 -0400 (Thu, 17 Jul 2008)
New Revision: 9160
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/commands/AddExceptionOnDiagramHandler.java
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/commands/AddPageOnDiagramHandler.java
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ExceptionEditPart.java
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2524
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/commands/AddExceptionOnDiagramHandler.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/commands/AddExceptionOnDiagramHandler.java 2008-07-17
00:12:11 UTC (rev 9159)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/commands/AddExceptionOnDiagramHandler.java 2008-07-17
11:39:15 UTC (rev 9160)
@@ -31,7 +31,7 @@
int y = Integer.parseInt(p.getProperty("mouse.y"));
PageException newException = PagesFactoryImpl.eINSTANCE.createPgException();
- newException.setName("");
+ newException.setName("<initialize>");
newException.setLocation(new Point(x,y));
part.getPagesModel().getChildren().add(newException);
}
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/commands/AddPageOnDiagramHandler.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/commands/AddPageOnDiagramHandler.java 2008-07-17
00:12:11 UTC (rev 9159)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/commands/AddPageOnDiagramHandler.java 2008-07-17
11:39:15 UTC (rev 9160)
@@ -30,7 +30,7 @@
int y = Integer.parseInt(p.getProperty("mouse.y"));
Page newPage = PagesFactoryImpl.eINSTANCE.createPage();
- newPage.setName("");
+ newPage.setName("<initialize>");
newPage.setLocation(new Point(x,y));
part.getPagesModel().getChildren().add(newPage);
}
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ExceptionEditPart.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ExceptionEditPart.java 2008-07-17
00:12:11 UTC (rev 9159)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ExceptionEditPart.java 2008-07-17
11:39:15 UTC (rev 9160)
@@ -242,7 +242,8 @@
return;
((Notifier) getModel()).eAdapters().add(this);
super.activate();
- if("".equals(getExceptionModel().getName())){
+ if("<initialize>".equals(getExceptionModel().getName())){
+ getExceptionModel().setName("");
DirectEditRequest req = new DirectEditRequest();
req.setType(GraphicalPartFactory.REQ_INIT_EDIT);
performRequest(req);
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java 2008-07-17
00:12:11 UTC (rev 9159)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java 2008-07-17
11:39:15 UTC (rev 9160)
@@ -250,7 +250,8 @@
return;
((Notifier) getModel()).eAdapters().add(this);
super.activate();
- if("".equals(getPageModel().getName())){
+ if("<initialize>".equals(getPageModel().getName())){
+ getPageModel().setName("");
DirectEditRequest req = new DirectEditRequest();
req.setType(GraphicalPartFactory.REQ_INIT_EDIT);
performRequest(req);