Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsabeva2012-07-05 11:05:33 -0400
committerpsabeva2012-07-05 11:05:33 -0400
commit9293a1f5c473f0ac7d368ed4d786dbdeb704e599 (patch)
tree846b7958408a8652405cc0516d4e01d2737a5d4b /jpa_diagram_editor
parent3e8db5c6d17fa0af93e02bc74cf6c5c47c9a6b34 (diff)
downloadwebtools.dali-9293a1f5c473f0ac7d368ed4d786dbdeb704e599.tar.gz
webtools.dali-9293a1f5c473f0ac7d368ed4d786dbdeb704e599.tar.xz
webtools.dali-9293a1f5c473f0ac7d368ed4d786dbdeb704e599.zip
[383816] - Only one JPA diagram editor is opened per workspace
Diffstat (limited to 'jpa_diagram_editor')
-rw-r--r--jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/modelintegration/ui/OpenJpaDiagramActionDelegate.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/modelintegration/ui/OpenJpaDiagramActionDelegate.java b/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/modelintegration/ui/OpenJpaDiagramActionDelegate.java
index 85d1405675..c0e74197eb 100644
--- a/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/modelintegration/ui/OpenJpaDiagramActionDelegate.java
+++ b/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/modelintegration/ui/OpenJpaDiagramActionDelegate.java
@@ -180,6 +180,7 @@ public class OpenJpaDiagramActionDelegate implements IObjectActionDelegate {
} else if (firstElement instanceof JpaNode) {
jpaProject = ((JpaNode)firstElement).getJpaProject();
} else if (firstElement instanceof IProject) {
+ jpaProject = JpaArtifactFactory.instance().getJpaProject((IProject)firstElement);
int cnt = 0;
while ((jpaProject == null) && (cnt < 25)) {
jpaProject = JpaArtifactFactory.instance().getJpaProject((IProject)firstElement);

Back to the top