Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-08-21 11:43:07 +0000
committerCamille Letavernier2014-08-21 13:50:25 +0000
commitdbc038b44bcbb890ae256d15eb09eb285512f020 (patch)
tree757e736583eea3ae352ad9ac91a81df7e59b79ff /plugins/infra/services/org.eclipse.papyrus.infra.services.edit
parentea48a20561464c3cbb7895d430583669a9f82fcc (diff)
downloadorg.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.tar.gz
org.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.tar.xz
org.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.zip
[Code style] Apply clean-up and formatter on Main plug-ins
Diffstat (limited to 'plugins/infra/services/org.eclipse.papyrus.infra.services.edit')
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/Activator.java6
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/AbstractConfigureCommandFactory.java2
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/ConfigureFeatureCommandFactory.java3
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/ConfigureFeatureListCommandFactory.java5
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/IConfigureCommandFactory.java6
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditService.java38
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditServiceProvider.java41
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditServiceProviderFactory.java24
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/advice/MarkerDeletionAdvice.java26
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/context/TypeContext.java16
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/matcher/NoContextEnablementMatcher.java7
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/messages/Messages.java10
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/ElementEditServiceUtils.java40
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/IElementEditService.java26
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/IElementEditServiceProvider.java16
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/ElementTypeUtils.java12
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/ElementTypeValidator.java13
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/GMFCommandUtils.java16
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/RequestParameterConstants.java12
19 files changed, 167 insertions, 152 deletions
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/Activator.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/Activator.java
index 6884befb8b4..c9836bba6be 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/Activator.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/Activator.java
@@ -1,14 +1,14 @@
/*****************************************************************************
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
*
*****************************************************************************/
@@ -61,7 +61,7 @@ public class Activator extends AbstractUIPlugin {
/**
* Returns the shared instance
- *
+ *
* @return the shared instance
*/
public static Activator getDefault() {
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/AbstractConfigureCommandFactory.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/AbstractConfigureCommandFactory.java
index 18ea32c858c..b209993d5bd 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/AbstractConfigureCommandFactory.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/AbstractConfigureCommandFactory.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/ConfigureFeatureCommandFactory.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/ConfigureFeatureCommandFactory.java
index 784ee948bee..5e7651fbd32 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/ConfigureFeatureCommandFactory.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/ConfigureFeatureCommandFactory.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
@@ -43,6 +43,7 @@ public class ConfigureFeatureCommandFactory extends AbstractConfigureCommandFact
/**
* {@inheritDoc}
*/
+ @Override
public ConfigureElementCommand create(ConfigureRequest request) {
return new ConfigureElementCommand(request) {
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/ConfigureFeatureListCommandFactory.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/ConfigureFeatureListCommandFactory.java
index bf1cf70958e..9adf52795f4 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/ConfigureFeatureListCommandFactory.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/ConfigureFeatureListCommandFactory.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
@@ -41,6 +41,7 @@ public class ConfigureFeatureListCommandFactory extends AbstractConfigureCommand
/**
* {@inheritDoc}
*/
+ @Override
public ConfigureElementCommand create(ConfigureRequest request) {
return new ConfigureElementCommand(request) {
@@ -49,7 +50,7 @@ public class ConfigureFeatureListCommandFactory extends AbstractConfigureCommand
protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
EObject eObject = getElementToEdit();
- for(EStructuralFeature feature : featureValueMap.keySet()) {
+ for (EStructuralFeature feature : featureValueMap.keySet()) {
eObject.eSet(feature, featureValueMap.get(feature));
}
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/IConfigureCommandFactory.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/IConfigureCommandFactory.java
index d6ee63da9ac..7f04731d7d5 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/IConfigureCommandFactory.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/commands/IConfigureCommandFactory.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
@@ -29,9 +29,9 @@ public interface IConfigureCommandFactory {
/**
* Create a configure element command.
- *
+ *
* @param request
- * the configure request.
+ * the configure request.
* @return the configure command.
*/
public ICommand create(final ConfigureRequest request);
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditService.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditService.java
index 9bf159fdb5d..8fc7e098309 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditService.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditService.java
@@ -1,14 +1,14 @@
/*****************************************************************************
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
*
*****************************************************************************/
@@ -22,7 +22,7 @@ import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
/**
* <pre>
- *
+ *
* This class implements {@link IElementEditService}.
*
* @see org.eclipse.papyrus.infra.services.edit.service.IElementEditService
@@ -31,11 +31,11 @@ import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
* a specific type of element.
*
* This class relies for a large part on the GMF ExtensibleType framework,
- * mostly as a wrapper of {@link IElementType} for Papyrus. No added value
+ * mostly as a wrapper of {@link IElementType} for Papyrus. No added value
* for Papyrus is expected in using this wrapper, except the fact that it ensures
- * Papyrus shared {@link IClientContext} is always explicitly used or set in
+ * Papyrus shared {@link IClientContext} is always explicitly used or set in
* request while retrieving commands.
- *
+ *
* </pre>
*/
public class ElementEditService implements IElementEditService {
@@ -48,12 +48,12 @@ public class ElementEditService implements IElementEditService {
/**
* <pre>
- *
+ *
* Constructor.
*
* @param elementType the {@link IElementType} this service will use to provide edit commands
* @param sharedClientContext the shared {@link IClientContext}
- *
+ *
* </pre>
*/
public ElementEditService(IElementType elementType, IClientContext sharedClientContext) {
@@ -64,7 +64,7 @@ public class ElementEditService implements IElementEditService {
/**
* <pre>
- *
+ *
* This method creates an edit command in response to an edit request.
* This method directly uses the ElementType framework (through {@link IElementType} api,
* making sure that the Papyrus shared {@link IClientContext} is explicitly set in the request.
@@ -73,9 +73,10 @@ public class ElementEditService implements IElementEditService {
*
* @param request the edit request
* @return the edit command corresponding to the edit request
- *
+ *
* </pre>
*/
+ @Override
public ICommand getEditCommand(IEditCommandRequest request) {
// Make sure the share client context in passed in the request
request.setClientContext(sharedClientContext);
@@ -88,28 +89,30 @@ public class ElementEditService implements IElementEditService {
/**
* <pre>
- *
+ *
* Get the display name of the element type.
*
* @see org.eclipse.papyrus.infra.services.edit.service.IElementEditService#getDisplayName()
*
* @return the display name of the {@link IElementType} used by current service.
- *
+ *
* </pre>
*/
+ @Override
public String getDisplayName() {
return elementType.getDisplayName();
}
/**
- *
+ *
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
- *
+ *
* @param adapter
* @return the adapted object
*/
+ @Override
public Object getAdapter(Class adapter) {
- if(adapter == IElementType.class) {
+ if (adapter == IElementType.class) {
return elementType;
}
return null;
@@ -117,16 +120,17 @@ public class ElementEditService implements IElementEditService {
/**
* <pre>
- *
+ *
* Test if current service can provide an edit command in response to the request.
*
* @see org.eclipse.papyrus.infra.services.edit.service.IElementEditService#canEdit(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest)
*
* @param req the edit request to test
* @return true is this service can provide edit command for the request
- *
+ *
* </pre>
*/
+ @Override
public boolean canEdit(IEditCommandRequest req) {
// Make sure the share client context in passed in the request
req.setClientContext(sharedClientContext);
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditServiceProvider.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditServiceProvider.java
index be57c143bd2..a60ea665c8f 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditServiceProvider.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditServiceProvider.java
@@ -1,14 +1,14 @@
/*****************************************************************************
* Copyright (c) 2010, 2014 CEA LIST and others.
*
- *
+ *
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
* Christian W. Damus (CEA) - support read-only objects (CDO)
* Christian W. Damus (CEA) - bug 323802
@@ -37,15 +37,15 @@ import org.eclipse.papyrus.infra.services.edit.service.IElementEditServiceProvid
/**
* <pre>
- *
- * This provider wrap {@link ElementTypeRegistry} especially to provide a Papyrus-like
+ *
+ * This provider wrap {@link ElementTypeRegistry} especially to provide a Papyrus-like
* service provider.
* This class is a singleton that may be access directly or via Papyrus service registry.
* Note that this provider does not necessary need Papyrus to be the active editor to be available
* (it relies on {@link ElementTypeRegistry} which is independant from Papyrus.
*
* It is registered as Papyrus service with the {@link ElementEditServiceProviderFactory}.
- *
+ *
* </pre>
*/
public class ElementEditServiceProvider implements IElementEditServiceProvider {
@@ -63,7 +63,7 @@ public class ElementEditServiceProvider implements IElementEditServiceProvider {
/** Get singleton instance */
public static synchronized IElementEditServiceProvider getInstance() throws ServiceException {
- if(instance == null) {
+ if (instance == null) {
instance = new ElementEditServiceProvider();
}
@@ -72,34 +72,35 @@ public class ElementEditServiceProvider implements IElementEditServiceProvider {
/**
* <pre>
- *
+ *
* This method try to retrieve the correct edit service for an object.
*
- * It relies on GMF {@link ElementTypeRegistry} which provides the {@link IElementType} registered
+ * It relies on GMF {@link ElementTypeRegistry} which provides the {@link IElementType} registered
* in the Extensible type framework for the object passed in parameter. The found element type is returned
* wrapped as an {@link IElementEditService}.
*
* The {@link IElementType} are registered in separate plug-ins (e.g. oep.uml.service.types for all types
- * related to UML metaclasses).
+ * related to UML metaclasses).
*
* @see org.eclipse.papyrus.infra.services.edit.service.IElementEditServiceProvider#getEditService(java.lang.Object)
*
* @param objectToEdit the object for which this method tries to retrieve an edit service
* @return the {@link IElementEditService} for the passed object
* @throws ServiceException
- *
+ *
* </pre>
*/
+ @Override
public IElementEditService getEditService(Object objectToEdit) throws ServiceException {
- if(!(objectToEdit instanceof EObject) && !(objectToEdit instanceof EClass) && !(objectToEdit instanceof IElementType)) {
+ if (!(objectToEdit instanceof EObject) && !(objectToEdit instanceof EClass) && !(objectToEdit instanceof IElementType)) {
throw new ServiceException(Messages.ElementEditServiceProvider_UnexpectedParameterType);
}
IElementType elementType = null;
if (objectToEdit instanceof EClass) {
- elementType = ElementTypeRegistry.getInstance().getElementType((EClass)objectToEdit, sharedClientContext);
+ elementType = ElementTypeRegistry.getInstance().getElementType((EClass) objectToEdit, sharedClientContext);
} else if (objectToEdit instanceof EObject) {
EObject eObject = (EObject) objectToEdit;
if (isReadOnly(eObject)) {
@@ -109,8 +110,8 @@ public class ElementEditServiceProvider implements IElementEditServiceProvider {
}
} else if (objectToEdit instanceof IElementType) {
// Make sure the IElementType is in Papyrus shared context
- if(sharedClientContext.includes((IElementType)objectToEdit)) {
- elementType = (IElementType)objectToEdit;
+ if (sharedClientContext.includes((IElementType) objectToEdit)) {
+ elementType = (IElementType) objectToEdit;
}
}
@@ -125,10 +126,10 @@ public class ElementEditServiceProvider implements IElementEditServiceProvider {
EditingDomain domain = EMFHelper.resolveEditingDomain(object);
return EMFHelper.isReadOnly(object, domain) && !EMFHelper.canMakeWritable(object, domain);
}
-
+
/**
* <pre>
- *
+ *
* This method returns the registered {@link IElementType} (wrapped as {@link IElementEditService}) that may be contained by
* the eContainer parameter for the specific reference parameter.
*
@@ -140,10 +141,11 @@ public class ElementEditServiceProvider implements IElementEditServiceProvider {
* @throws ServiceException
* </pre>
*/
+ @Override
public List<IElementEditService> getContainedTypeEditServices(EObject eContainer, EReference reference) throws ServiceException {
List<IElementEditService> services = new ArrayList<IElementEditService>();
- for(IElementType type : ElementTypeRegistry.getInstance().getContainedTypes(eContainer, reference, sharedClientContext)) {
+ for (IElementType type : ElementTypeRegistry.getInstance().getContainedTypes(eContainer, reference, sharedClientContext)) {
services.add(new ElementEditService(type, sharedClientContext));
}
@@ -152,15 +154,16 @@ public class ElementEditServiceProvider implements IElementEditServiceProvider {
/**
* <pre>
- * Tests if the id
+ * Tests if the id
* @param id the element type id to look for in the shared client context
* @return true if the element type is bound to the shared client context
* </pre>
*/
+ @Override
public boolean isKnownElementType(String id) {
boolean isKnown = false;
- if(ElementTypeRegistry.getInstance().getType(id) != null) {
+ if (ElementTypeRegistry.getInstance().getType(id) != null) {
isKnown = sharedClientContext.includes(ElementTypeRegistry.getInstance().getType(id));
}
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditServiceProviderFactory.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditServiceProviderFactory.java
index acaf0cb8f2a..c01f1dfd32a 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditServiceProviderFactory.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/ElementEditServiceProviderFactory.java
@@ -1,14 +1,14 @@
/*****************************************************************************
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
*
*****************************************************************************/
@@ -27,40 +27,44 @@ public class ElementEditServiceProviderFactory implements IServiceFactory {
}
/**
- *
+ *
* @see org.eclipse.papyrus.infra.core.services.IService#init(org.eclipse.papyrus.infra.core.services.ServicesRegistry)
- *
+ *
* @param servicesRegistry
* @throws ServiceException
*/
+ @Override
public void init(ServicesRegistry servicesRegistry) throws ServiceException {
}
/**
- *
+ *
* @see org.eclipse.papyrus.infra.core.services.IService#startService()
- *
+ *
* @throws ServiceException
*/
+ @Override
public void startService() throws ServiceException {
}
/**
- *
+ *
* @see org.eclipse.papyrus.infra.core.services.IService#disposeService()
- *
+ *
* @throws ServiceException
*/
+ @Override
public void disposeService() throws ServiceException {
}
/**
- *
+ *
* @see org.eclipse.papyrus.infra.core.services.IServiceFactory#createServiceInstance()
- *
+ *
* @return the singleton instance of {@link IElementEditServiceProvider}
* @throws ServiceException
*/
+ @Override
public Object createServiceInstance() throws ServiceException {
return ElementEditServiceProvider.getInstance();
}
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/advice/MarkerDeletionAdvice.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/advice/MarkerDeletionAdvice.java
index 21eae8b55ca..3e8cef55dbd 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/advice/MarkerDeletionAdvice.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/advice/MarkerDeletionAdvice.java
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2014 CEA and others.
- *
+ *
* 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
@@ -38,7 +38,7 @@ public class MarkerDeletionAdvice extends AbstractEditHelperAdvice {
// This parameter is set by generated semantic edit policies when delegating to "visual element types" to
// decorate the semantic element command with advice targeting the visual element type, which is a hinted
// element type specializing the semantic element type to suggest the way in which it should be presented
- // in the diagram. Because our advice is already included in the semantic command, it isn't needed in
+ // in the diagram. Because our advice is already included in the semantic command, it isn't needed in
// this additional decoration and, therefore, it won't cause problems when the visual element type is
// a specialization (dubiously) of the null element type
// (see https://www.eclipse.org/forums/index.php/t/781825/ for discussion of that problem)
@@ -52,19 +52,19 @@ public class MarkerDeletionAdvice extends AbstractEditHelperAdvice {
protected ICommand getBeforeDestroyElementCommand(DestroyElementRequest request) {
ICommand result = null;
- if(request.getParameter(EDIT_POLICY_COMMAND) == null) {
+ if (request.getParameter(EDIT_POLICY_COMMAND) == null) {
final EObject object = request.getElementToDestroy();
final Resource context = object.eResource();
// Don't determine up-front exactly which markers to delete, because that can be quite expensive
- // and will make menu enablement calculations etc. perform badly. This should be reasonably
+ // and will make menu enablement calculations etc. perform badly. This should be reasonably
// efficient.
// There can't be markers for this object if it's not in a resource, because markers would
// be attached to its resource, but there is no resource
- if(context != null) {
- for(IMarkerProvider provider : MarkerProviderRegistry.INSTANCE.getMarkerProviders(context)) {
- if(IMarkerProvider2.Adapter.getExtendedProvider(provider).hasMarkers(context, object)) {
+ if (context != null) {
+ for (IMarkerProvider provider : MarkerProviderRegistry.INSTANCE.getMarkerProviders(context)) {
+ if (IMarkerProvider2.Adapter.getExtendedProvider(provider).hasMarkers(context, object)) {
result = new DeleteMarkersCommand(object);
break;
}
@@ -107,7 +107,7 @@ public class MarkerDeletionAdvice extends AbstractEditHelperAdvice {
}
void disposeDelegate() {
- if(delegate != null) {
+ if (delegate != null) {
delegate.dispose();
delegate = null;
}
@@ -120,11 +120,11 @@ public class MarkerDeletionAdvice extends AbstractEditHelperAdvice {
// Initialize our delegate
ICommand command = null;
- for(IMarkerProvider provider : MarkerProviderRegistry.INSTANCE.getMarkerProviders(context)) {
+ for (IMarkerProvider provider : MarkerProviderRegistry.INSTANCE.getMarkerProviders(context)) {
ICommand nextCommand = IMarkerProvider2.Adapter.getExtendedProvider(provider).getMarkerDeletionCommand(context, object);
- if(command == null) {
+ if (command == null) {
command = nextCommand;
- } else if(nextCommand != null) {
+ } else if (nextCommand != null) {
command = command.compose(nextCommand);
}
}
@@ -156,10 +156,10 @@ public class MarkerDeletionAdvice extends AbstractEditHelperAdvice {
}
CommandResult convertResult(IStatus status) {
- if(status == null) {
+ if (status == null) {
return CommandResult.newOKCommandResult();
} else {
- switch(status.getSeverity()) {
+ switch (status.getSeverity()) {
case IStatus.OK:
case IStatus.INFO:
return CommandResult.newOKCommandResult();
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/context/TypeContext.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/context/TypeContext.java
index bd881347c12..9022f4e05a8 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/context/TypeContext.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/context/TypeContext.java
@@ -1,14 +1,14 @@
/*****************************************************************************
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
*
@@ -24,10 +24,10 @@ import org.eclipse.papyrus.infra.services.edit.messages.Messages;
/**
* <pre>
* The centralized model type edit service relies on GMF Runtime extensible
- * type framework, used via a single common {@link IClientContext} on which
- * the various {@link IElementType} used by Papyrus are registered.
+ * type framework, used via a single common {@link IClientContext} on which
+ * the various {@link IElementType} used by Papyrus are registered.
*
- * This class stores this context ID and provides a convenient API to
+ * This class stores this context ID and provides a convenient API to
* get the {@link IClientContext} from the {@link ClientContextManager}.
* </pre>
*/
@@ -38,15 +38,15 @@ public class TypeContext {
/**
* Retrieve Papyrus {@link IClientContext} from its ID.
- *
+ *
* @return the tool context
* @throws Exception
- * if the context is not found
+ * if the context is not found
*/
public static IClientContext getContext() throws ServiceException {
IClientContext context = ClientContextManager.getInstance().getClientContext(ID);
- if(context == null) {
+ if (context == null) {
throw new ServiceException(NLS.bind(Messages.TypeContext_ContextNotFound, ID));
}
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/matcher/NoContextEnablementMatcher.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/matcher/NoContextEnablementMatcher.java
index 6eed7120d0f..e098b65b050 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/matcher/NoContextEnablementMatcher.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/internal/matcher/NoContextEnablementMatcher.java
@@ -1,14 +1,14 @@
/*****************************************************************************
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
*
*****************************************************************************/
@@ -22,7 +22,7 @@ import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher;
* creation service are defined.
* This means the the creation service requires to be called which explicit
* context specification.
- *
+ *
* This is a temporary matcher implementation used in order to avoid undesired
* side effects from the centralized edit service and any possible use of
* GMF extensible type framework made by diagram (either Papyrus or not) GMF tooling
@@ -30,6 +30,7 @@ import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher;
*/
public class NoContextEnablementMatcher implements IElementMatcher {
+ @Override
public boolean matches(EObject eObject) {
return false;
}
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/messages/Messages.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/messages/Messages.java
index 001c7af2596..19183497ab5 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/messages/Messages.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/messages/Messages.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
@@ -23,15 +23,15 @@ public class Messages extends NLS {
public static String ElementTypeValidator_NoSelection;
public static String ElementTypeValidator_ValidSelection;
public static String ElementTypeValidator_InvalidSelection;
-
+
public static String TypeContext_ContextNotFound;
-
+
public static String ElementEditServiceProvider_UnexpectedParameterType;
public static String ElementEditServiceProvider_NoIElementTypeFound;
-
+
public static String ElementEditServiceUtils_UnableToFindElementType;
public static String ElementEditServiceUtils_UnableToFindServiceProvider;
-
+
static {
NLS.initializeMessages("messages", Messages.class); //$NON-NLS-1$
}
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/ElementEditServiceUtils.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/ElementEditServiceUtils.java
index 30d4cf3969f..c04d30260f2 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/ElementEditServiceUtils.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/ElementEditServiceUtils.java
@@ -1,14 +1,14 @@
/*****************************************************************************
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
*
*****************************************************************************/
@@ -22,9 +22,9 @@ import org.eclipse.papyrus.infra.services.edit.messages.Messages;
/**
* <pre>
- *
+ *
* Utility class for a convenient access to edit services.
- *
+ *
* </pre>
*/
public class ElementEditServiceUtils {
@@ -54,14 +54,14 @@ public class ElementEditServiceUtils {
return null;
- //ServicesRegistry serviceRegistry = EditorUtils.getServiceRegistry();
- // try {
- // IElementEditServiceProvider serviceProvider = serviceRegistry.getService(IElementEditServiceProvider.class);
- // IElementEditService service = serviceProvider.getEditService(objectToEdit);
- // return serviceRegistry == null ? null : service;
- // } catch (ServiceException e) {
- // return null;
- // }
+ // ServicesRegistry serviceRegistry = EditorUtils.getServiceRegistry();
+ // try {
+ // IElementEditServiceProvider serviceProvider = serviceRegistry.getService(IElementEditServiceProvider.class);
+ // IElementEditService service = serviceProvider.getEditService(objectToEdit);
+ // return serviceRegistry == null ? null : service;
+ // } catch (ServiceException e) {
+ // return null;
+ // }
}
/**
@@ -83,18 +83,18 @@ public class ElementEditServiceUtils {
return null;
- // ServicesRegistry serviceRegistry = EditorUtils.getServiceRegistry();
- // try {
- // IElementEditServiceProvider serviceProvider = serviceRegistry.getService(IElementEditServiceProvider.class);
- // return serviceRegistry == null ? null : serviceProvider;
- // } catch (ServiceException e) {
- // return null;
- // }
+ // ServicesRegistry serviceRegistry = EditorUtils.getServiceRegistry();
+ // try {
+ // IElementEditServiceProvider serviceProvider = serviceRegistry.getService(IElementEditServiceProvider.class);
+ // return serviceRegistry == null ? null : serviceProvider;
+ // } catch (ServiceException e) {
+ // return null;
+ // }
}
/**
* Get the element edit service provider from the {@link ElementTypeRegistry}.
- *
+ *
* @return the element edit service
* @throws ServiceException
*/
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/IElementEditService.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/IElementEditService.java
index 7236f67b590..421b2321c11 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/IElementEditService.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/IElementEditService.java
@@ -1,14 +1,14 @@
/*****************************************************************************
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
*
*****************************************************************************/
@@ -20,56 +20,56 @@ import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
/**
* <pre>
- *
+ *
* This interface provide the public API for edit service in Papyrus.
*
* Currently the implementation mostly rely on GMF extensible type framework,
- * which was used as the basis to identify methods in this interface (also, it is
+ * which was used as the basis to identify methods in this interface (also, it is
* currently the only proposed implementation of the edit service for Papyrus.
*
* @see org.eclipse.gmf.runtime.emf.type.core.IElementType
- *
+ *
* </pre>
*/
public interface IElementEditService extends IAdaptable {
/**
* <pre>
- *
+ *
* Test if the service can fulfill the request in parameter.
*
* @see {@link IElementType#canEdit(IEditCommandRequest)}
*
* @param req the edit request
* @return true if the service can fulfill the request in parameter
- *
+ *
* </pre>
*/
public boolean canEdit(IEditCommandRequest req);
/**
* <pre>
- *
- * Get the edit command that fulfills the edit request
+ *
+ * Get the edit command that fulfills the edit request
*
* @see {@link IElementType#getEditCommand(IEditCommandRequest)}
*
- * @param request the edit request
+ * @param request the edit request
* @return the edit command
- *
+ *
* </pre>
*/
public ICommand getEditCommand(IEditCommandRequest request);
/**
* <pre>
- *
+ *
* Get the display name associated to the element related to the edit service.
*
* @see {@link IElementType#getDisplayName()}
*
* @return the display name
- *
+ *
* </pre>
*/
public String getDisplayName();
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/IElementEditServiceProvider.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/IElementEditServiceProvider.java
index 31fa834ec12..3ee2abab61a 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/IElementEditServiceProvider.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/service/IElementEditServiceProvider.java
@@ -1,14 +1,14 @@
/*****************************************************************************
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
*
*****************************************************************************/
@@ -22,19 +22,19 @@ import org.eclipse.papyrus.infra.core.services.ServiceException;
/**
* <pre>
- *
+ *
* This interface shows a public API for accessing edit service related to model elements.
*
- * Class implementing this interface:
+ * Class implementing this interface:
* @see ElementEditServiceProvider
- *
+ *
* </pre>
*/
public interface IElementEditServiceProvider {
/**
* <pre>
- *
+ *
* Get the registered edit service for the object in parameter
*
* @param objectToEdit the object to edit (an EObject, EClass or {@link IElementType})
@@ -46,7 +46,7 @@ public interface IElementEditServiceProvider {
/**
* <pre>
- *
+ *
* Get the edit services for any element registered that are possibly contained by the owner under
* the desired containment reference.
*
@@ -60,7 +60,7 @@ public interface IElementEditServiceProvider {
/**
* <pre>
- * Tests if the id
+ * Tests if the id
* @param id the element type id to look for in the shared client context
* @return true if the element type is bound to the shared client context
* </pre>
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/ElementTypeUtils.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/ElementTypeUtils.java
index d0373640aa3..11292422226 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/ElementTypeUtils.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/ElementTypeUtils.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2013 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
@@ -26,19 +26,19 @@ import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext;
/**
* Utils class for elements types
- *
+ *
* @author VL222926
- *
+ *
*/
public class ElementTypeUtils {
private ElementTypeUtils() {
- //to prevent instanciation
+ // to prevent instanciation
}
/**
- *
+ *
* @return
* all existing elements types
*/
@@ -59,7 +59,7 @@ public class ElementTypeUtils {
*/
public static final Collection<String> getAllExistingElementTypesIds() {
final Collection<String> ids = new TreeSet<String>();
- for(final IElementType iElementType : getAllExistingElementTypes()) {
+ for (final IElementType iElementType : getAllExistingElementTypes()) {
ids.add(iElementType.getId());
}
return ids;
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/ElementTypeValidator.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/ElementTypeValidator.java
index 5e6f9a7b79e..005f5a8d7f5 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/ElementTypeValidator.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/ElementTypeValidator.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
@@ -45,23 +45,24 @@ public class ElementTypeValidator implements ISelectionStatusValidator {
* {@inheritDoc}
* </pre>
*/
+ @Override
public IStatus validate(Object[] selection) {
IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, Messages.ElementTypeValidator_NoSelection);
- if((selection.length == 1) && (selection[0] instanceof EObject)) {
+ if ((selection.length == 1) && (selection[0] instanceof EObject)) {
// Default status : invalid
status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, NLS.bind(Messages.ElementTypeValidator_InvalidSelection, elementType.getDisplayName()));
- EObject selected = (EObject)selection[0];
- if(elementType instanceof ISpecializationType) {
- if(((ISpecializationType)elementType).getMatcher().matches(selected)) {
+ EObject selected = (EObject) selection[0];
+ if (elementType instanceof ISpecializationType) {
+ if (((ISpecializationType) elementType).getMatcher().matches(selected)) {
status = new Status(IStatus.OK, Activator.PLUGIN_ID, Messages.ElementTypeValidator_ValidSelection);
}
} else {
- if(elementType.getEClass().isInstance(selected)) {
+ if (elementType.getEClass().isInstance(selected)) {
status = new Status(IStatus.OK, Activator.PLUGIN_ID, Messages.ElementTypeValidator_ValidSelection);
}
}
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/GMFCommandUtils.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/GMFCommandUtils.java
index 6b04b51d655..e2594af27ae 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/GMFCommandUtils.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/GMFCommandUtils.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
@@ -25,7 +25,7 @@ public class GMFCommandUtils {
/**
* <pre>
- * This method return the EObject returned by a command (the first item if the result is a
+ * This method return the EObject returned by a command (the first item if the result is a
* Collection), or null if the result contains no value or if the value is not an EObject
* @param command the command.
* @return the EObject result or null.
@@ -35,14 +35,14 @@ public class GMFCommandUtils {
Object returnValue = command.getCommandResult().getReturnValue();
- if(returnValue instanceof EObject) {
- return (EObject)returnValue;
+ if (returnValue instanceof EObject) {
+ return (EObject) returnValue;
}
- if(returnValue instanceof ArrayList<?>) {
- ArrayList<?> returnValues = (ArrayList<?>)returnValue;
- if(!returnValues.isEmpty() && (returnValues.get(0) instanceof EObject)) {
- return (EObject)returnValues.get(0);
+ if (returnValue instanceof ArrayList<?>) {
+ ArrayList<?> returnValues = (ArrayList<?>) returnValue;
+ if (!returnValues.isEmpty() && (returnValues.get(0) instanceof EObject)) {
+ return (EObject) returnValues.get(0);
}
}
return null;
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/RequestParameterConstants.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/RequestParameterConstants.java
index f591cf4ca83..e85a0bb2a2e 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/RequestParameterConstants.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.edit/src/org/eclipse/papyrus/infra/services/edit/utils/RequestParameterConstants.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
@@ -22,7 +22,7 @@ public interface RequestParameterConstants {
/**
* The ID for the additional parameter SOURCE_PARENT possibly required in link creation request
- *
+ *
* @deprecated
*/
@Deprecated
@@ -30,7 +30,7 @@ public interface RequestParameterConstants {
/**
* The ID for the additional parameter TARGET_PARENT possibly required in link creation request
- *
+ *
* @deprecated
*/
@Deprecated
@@ -38,7 +38,7 @@ public interface RequestParameterConstants {
/**
* The ID for the additional parameter RECONNECT_PARENT possibly required in link reconnect request
- *
+ *
* @deprecated
*/
@Deprecated
@@ -83,7 +83,7 @@ public interface RequestParameterConstants {
* The ID to store the target figure for an edge creation
*/
public static final String EDGE_TARGET_FIGURE = "EDGE_TARGET_FIGURE"; //$NON-NLS-1$
-
+
/**
* the ID to store the source point for an edge creation
*/
@@ -93,5 +93,5 @@ public interface RequestParameterConstants {
* the ID to store the target point for an edge creation
*/
public static final String EDGE_TARGET_POINT = "EDGE_TARGET_POINT"; //$NON-NLS-1$
-
+
}

Back to the top