Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Schnekenburger2021-09-21 08:37:00 +0000
committerPatrick Tessier2021-10-25 15:24:55 +0000
commit8440be42e0d731522bb4d76e513281f674223df0 (patch)
treef50bb6fb83e54f186134cd2be9bc44a9535a77d2
parent7af501956ef63b572a7575ac5b28952b5a997429 (diff)
downloadorg.eclipse.papyrus-8440be42e0d731522bb4d76e513281f674223df0.tar.gz
org.eclipse.papyrus-8440be42e0d731522bb4d76e513281f674223df0.tar.xz
org.eclipse.papyrus-8440be42e0d731522bb4d76e513281f674223df0.zip
Bug 573889 - problem to configure plugins as a papyrus project to run
the builder - do not check if the plugin starts with "org.eclipse.papyrus" Change-Id: I139335c6b18daabecde5ae87b744bd41a6c685c6 Signed-off-by: Remi Schnekenburger <rschnekenburger@eclipsesource.com>
-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