Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplugins/toolsmiths/builder/org.eclipse.papyrus.toolsmiths.plugin.builder/src/org/eclipse/papyrus/toolsmiths/plugin/builder/nature/AddPapyrusPluginNatureHandler.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/toolsmiths/builder/org.eclipse.papyrus.toolsmiths.plugin.builder/src/org/eclipse/papyrus/toolsmiths/plugin/builder/nature/AddPapyrusPluginNatureHandler.java b/plugins/toolsmiths/builder/org.eclipse.papyrus.toolsmiths.plugin.builder/src/org/eclipse/papyrus/toolsmiths/plugin/builder/nature/AddPapyrusPluginNatureHandler.java
index e611568aa72..16bb298bc56 100755
--- a/plugins/toolsmiths/builder/org.eclipse.papyrus.toolsmiths.plugin.builder/src/org/eclipse/papyrus/toolsmiths/plugin/builder/nature/AddPapyrusPluginNatureHandler.java
+++ b/plugins/toolsmiths/builder/org.eclipse.papyrus.toolsmiths.plugin.builder/src/org/eclipse/papyrus/toolsmiths/plugin/builder/nature/AddPapyrusPluginNatureHandler.java
@@ -174,10 +174,9 @@ public class AddPapyrusPluginNatureHandler extends AbstractHandler {
private boolean canSetPapyrusPluginNature(final IProject project) {
boolean canSet = false;
- if (project.exists() && project.isOpen() && project.getName().startsWith("org.eclipse.papyrus")) { //$NON-NLS-1$
+ if (project.exists() && project.isOpen()) {
try {
- canSet = project.hasNature(PapyrusPluginNature.JAVA_NATURE)
- && project.hasNature(PapyrusPluginNature.PLUGIN_NATURE)
+ canSet = project.hasNature(PapyrusPluginNature.PLUGIN_NATURE)
&& !project.hasNature(PapyrusPluginNature.PAPYRUS_PLUGIN_NATURE_ID);
} catch (CoreException e) {
// we ignore the exception

Back to the top