Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/api/views/modelexplorerview/resourcelistener/DefaultModelingProjectResourceListener.java')
-rw-r--r--plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/api/views/modelexplorerview/resourcelistener/DefaultModelingProjectResourceListener.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/api/views/modelexplorerview/resourcelistener/DefaultModelingProjectResourceListener.java b/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/api/views/modelexplorerview/resourcelistener/DefaultModelingProjectResourceListener.java
index 8bc5287674..c5ec0adc2a 100644
--- a/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/api/views/modelexplorerview/resourcelistener/DefaultModelingProjectResourceListener.java
+++ b/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/api/views/modelexplorerview/resourcelistener/DefaultModelingProjectResourceListener.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 THALES GLOBAL SERVICES.
+ * Copyright (c) 2011, 2017 THALES GLOBAL SERVICES.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -196,4 +196,22 @@ public class DefaultModelingProjectResourceListener implements IModelingProjectR
return file != null && new ModelingProjectFileQuery(file).isPotentialSemanticResource();
}
+ /**
+ * Check if the file must be considered as semantic resource during semantic
+ * resource detection. If it is, this listener will check if is it loadable.
+ * <BR>
+ * Added only in maintenance branch to avoid an API break by changing the
+ * visibility of {@link #isPotentialSemanticResource(IFile)}. This method
+ * will be removed in Sirius 5.0.0.<BR>
+ * This method is not intended to be used by clients.
+ *
+ * @param file
+ * an added file
+ * @return <code>false</code> if the file should be ignored.
+ * @deprecated
+ */
+ @Deprecated
+ public boolean isPotentialSemanticResource2(IFile file) {
+ return isPotentialSemanticResource(file);
+ }
}

Back to the top