Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsdimov2011-09-20 12:35:09 +0000
committersdimov2011-09-20 12:35:09 +0000
commit060ce44b73ffe0f966a3678558a3789858211646 (patch)
tree1b18d5c573f8742f01ffcdfdca3178737bf88b76 /jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui
parente6e9f03cdba80509d9b8057b5e900065212d7b87 (diff)
downloadwebtools.dali-060ce44b73ffe0f966a3678558a3789858211646.tar.gz
webtools.dali-060ce44b73ffe0f966a3678558a3789858211646.tar.xz
webtools.dali-060ce44b73ffe0f966a3678558a3789858211646.zip
[350474] Cannot create JPA Diagram because Eclipse try to puts XML file in the wrong folder
Diffstat (limited to 'jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui')
-rw-r--r--jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/modelintegration/util/ModelIntegrationUtil.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/modelintegration/util/ModelIntegrationUtil.java b/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/modelintegration/util/ModelIntegrationUtil.java
index c38d3ba0fb..2196274861 100644
--- a/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/modelintegration/util/ModelIntegrationUtil.java
+++ b/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/modelintegration/util/ModelIntegrationUtil.java
@@ -25,7 +25,6 @@ import java.util.Properties;
import java.util.WeakHashMap;
import org.eclipse.core.filesystem.EFS;
-import org.eclipse.core.filesystem.IFileInfo;
import org.eclipse.core.filesystem.IFileStore;
import org.eclipse.core.filesystem.IFileSystem;
import org.eclipse.core.resources.IContainer;
@@ -133,7 +132,7 @@ public class ModelIntegrationUtil {
return null;
}
- private static IPath copyExistingXMIContentAndDeleteFile(IProject project,
+ public static IPath copyExistingXMIContentAndDeleteFile(IProject project,
String diagramName, IFileStore newXMIFile) throws JavaModelException, CoreException {
String xmiFileName = diagramName + "." + DIAGRAM_FILE_EXTENSION; //$NON-NLS-1$
IPath folderPath = copyExistingXMIContent(project, xmiFileName, newXMIFile);
@@ -141,11 +140,6 @@ public class ModelIntegrationUtil {
return folderPath;
IPath projectPath = project.getFullPath();
folderPath = projectPath.append(getDiagramsXMLFolderPath(project));
- IFileStore xmlFileStore = EFS.getLocalFileSystem().getStore(folderPath.append(diagramName).addFileExtension(DIAGRAM_XML_FILE_EXTENSION));
- IFileInfo info = xmlFileStore.fetchInfo();
- if(!info.exists()){
- xmlFileStore.mkdir(EFS.NONE, null);
- }
return folderPath;
}

Back to the top