Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/runtime/ConfigurationManager.java')
-rw-r--r--plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/runtime/ConfigurationManager.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/runtime/ConfigurationManager.java b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/runtime/ConfigurationManager.java
index 6c7989a3bf3..95aba434d24 100644
--- a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/runtime/ConfigurationManager.java
+++ b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/runtime/ConfigurationManager.java
@@ -200,10 +200,15 @@ public class ConfigurationManager {
private void loadCustomContext(File contextDirectory) throws IOException {
String contextPath = contextDirectory.getPath() + "/" + contextDirectory.getName() + ".ctx"; //$NON-NLS-1$ //$NON-NLS-2$
URI contextURI = URI.createFileURI(contextPath);
- EObject model = loadEMFModel(contextURI);
- if(model instanceof Context) {
- Context context = (Context)model;
- addContext(context, isApplied(context));
+ try {
+ EObject model = loadEMFModel(contextURI);
+
+ if(model instanceof Context) {
+ Context context = (Context)model;
+ addContext(context, isApplied(context));
+ }
+ } catch (IOException ex) {
+ //Silent : The file has been removed from the preferences, but the folder still exists
}
}

Back to the top