summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2013-10-23 05:45:54 (EDT)
committerJuergen Haug2013-10-23 05:45:54 (EDT)
commitd7eb7ecc0147b95edb2f6c4ac06420644a652e04 (patch)
treeab7e02b0e9b88bac1858f3069d83900c05ca5849
parent408050cb3457a12d9b05258b3c227c3e949646ea (diff)
downloadorg.eclipse.etrice-d7eb7ecc0147b95edb2f6c4ac06420644a652e04.zip
org.eclipse.etrice-d7eb7ecc0147b95edb2f6c4ac06420644a652e04.tar.gz
org.eclipse.etrice-d7eb7ecc0147b95edb2f6c4ac06420644a652e04.tar.bz2
[ui] bug fix for diagram rename participantrefs/changes/77/17677/1
-rw-r--r--plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/refactoring/DiagramRenameParticipant.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/refactoring/DiagramRenameParticipant.java b/plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/refactoring/DiagramRenameParticipant.java
index c5da6c5..feb6322 100644
--- a/plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/refactoring/DiagramRenameParticipant.java
+++ b/plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/refactoring/DiagramRenameParticipant.java
@@ -80,6 +80,9 @@ public class DiagramRenameParticipant extends RenameParticipant {
IFile roomFile = (IFile) element;
IFolder diagramFolder = roomFile.getParent().getFolder(new Path(DiagramAccessBase.DIAGRAMS_FOLDER_NAME));
+ if(!diagramFolder.exists())
+ return false;
+
// find all diagrams in diagram folder
final List<IFile> allDiagrams = new ArrayList<IFile>();
IResourceProxyVisitor visitor = new IResourceProxyVisitor() {