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/extensions/EnvironmentExtensionPoint.java')
-rw-r--r--plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/extensions/EnvironmentExtensionPoint.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/extensions/EnvironmentExtensionPoint.java b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/extensions/EnvironmentExtensionPoint.java
index 48056b38d54..49fc94f7220 100644
--- a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/extensions/EnvironmentExtensionPoint.java
+++ b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/extensions/EnvironmentExtensionPoint.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 2010 CEA LIST.
- *
+ *
* 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
@@ -23,7 +23,7 @@ import org.eclipse.papyrus.views.properties.runtime.ConfigurationManager;
/**
* Handles the extension point org.eclipse.papyrus.views.properties.environment
* Registers the given Environment models to the Property View framework
- *
+ *
* @author Camille Letavernier
*/
public class EnvironmentExtensionPoint {
@@ -31,20 +31,20 @@ public class EnvironmentExtensionPoint {
private final String EXTENSION_ID = "org.eclipse.papyrus.views.properties.environment"; //$NON-NLS-1$
/**
- *
+ *
* Constructor.
- *
+ *
*/
public EnvironmentExtensionPoint() {
IConfigurationElement[] config = Platform.getExtensionRegistry().getConfigurationElementsFor(EXTENSION_ID);
- for(IConfigurationElement e : config) {
+ for (IConfigurationElement e : config) {
final String environmentResource = e.getAttribute("environmentModel"); //$NON-NLS-1$
URI uri = URI.createURI("ppe:/environment/" + e.getContributor().getName() + "/" + environmentResource); //$NON-NLS-1$ //$NON-NLS-2$
//URI uri = URI.createPlatformPluginURI(e.getContributor().getName() + "/" + environmentResource, true); //$NON-NLS-1$
try {
ConfigurationManager.getInstance().addEnvironment(uri);
- ConstraintsManager.instance.addEnvironment(uri); //We also add it to the constraints extension point, which we "extend"
+ ConstraintsManager.instance.addEnvironment(uri); // We also add it to the constraints extension point, which we "extend"
} catch (IOException ex) {
Activator.log.error("The plugin " + e.getContributor() + " contributed an invalid " + "extension for " + EXTENSION_ID, ex); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
}

Back to the top