Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.util.pde.core/src/org/eclipse/papyrus/emf/facet/util/pde/core/internal/PluginUtils.java')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.pde.core/src/org/eclipse/papyrus/emf/facet/util/pde/core/internal/PluginUtils.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.pde.core/src/org/eclipse/papyrus/emf/facet/util/pde/core/internal/PluginUtils.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.pde.core/src/org/eclipse/papyrus/emf/facet/util/pde/core/internal/PluginUtils.java
index 18f6c56c6e9..23880765ea5 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.pde.core/src/org/eclipse/papyrus/emf/facet/util/pde/core/internal/PluginUtils.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.pde.core/src/org/eclipse/papyrus/emf/facet/util/pde/core/internal/PluginUtils.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010-2013 Mia-Software.
+ * Copyright (c) 2010-2013, 2023 Mia-Software.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
@@ -14,6 +14,7 @@
* Nicolas Guyomar (Mia-Software) - Bug 340681 - Facet column implementation
* Nicolas Bros (Mia-Software) - Bug 380391 - PluginUtils#importPlugin should use the Bundle API
* Gregoire Dupe (Mia-Software) - Bug 408344 - [Releng] Deep folders cause build break
+ * Pauline DEVILLE (CEA LIST) pauline.deville@cea.fr - Bug 581848
*******************************************************************************/
package org.eclipse.papyrus.emf.facet.util.pde.core.internal;
@@ -244,7 +245,7 @@ public final class PluginUtils {
}
}
- private static final String JAVA_VERSION = "J2SE-1.5"; //$NON-NLS-1$
+ private static final String JAVA_VERSION = "JavaSE-17"; //$NON-NLS-1$
private static final String ACTIVATOR_NAME = "Activator"; //$NON-NLS-1$
private static final String MANIFEST_MF_TPL = "resources/MANIFEST.MF.template"; //$NON-NLS-1$
private static final String ACTIVATOR_TPL = "resources/Activator.java.template"; //$NON-NLS-1$
@@ -363,7 +364,8 @@ public final class PluginUtils {
if (!status.isOK()) {
Logger.logWarning(
"Couldn't make valid package name from project name: " //$NON-NLS-1$
- + status.getMessage(), Activator.getDefault());
+ + status.getMessage(),
+ Activator.getDefault());
result = name;
}
return result;
@@ -509,7 +511,7 @@ public final class PluginUtils {
final List<IStatus> errors, final URL url) throws CoreException {
try {
final InputStream inputStream = url.openStream();
- final String strSubpath = url.toString().replaceAll("bundleentry://[^/]*/", ""); //$NON-NLS-1$ //$NON-NLS-2$
+ final String strSubpath = url.toString().replaceAll("bundleentry://[^/]*/", ""); //$NON-NLS-1$ //$NON-NLS-2$
final IFile file = project.getFile(new Path(strSubpath));
if (file.exists()) {
file.delete(true, new NullProgressMonitor());

Back to the top