Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 c5da6c5a5..feb6322cd 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() {

Back to the top