From d668cabc2926a5560c9ba80b83504c8f95c47b3d Mon Sep 17 00:00:00 2001 From: ptessier Date: Fri, 14 Feb 2014 15:12:23 +0100 Subject: 386118: [EMF Facet] Papyrus should progressively support EMF Facet 0.2 https://bugs.eclipse.org/bugs/show_bug.cgi?id=386118 --- .../.svn/entries | 1 - .../.svn/format | 1 - ...e1f1bc150986effc780aa7408f83a5747113fd.svn-base | 7 -- ...193c1e7357387965ed1eb2cd9c9eaf493aa4cc.svn-base | 11 -- ...c6c886ddbccaf52e6be6d42080cbbfc25e56ca.svn-base | 21 ---- ...6b5d4fe5dfc6332ebe62073c7418854c7fa0ff.svn-base | 69 ------------ ...d844ef78323af52ceb766e9c887d44a383b8ef.svn-base | 116 --------------------- ...2e29032d5d32ddd4d3df340a9685cc744a1a8d.svn-base | 39 ------- ...4ceb77ed16eeaeb7ad57328580051968f30e51.svn-base | 18 ---- ...3446449cbc59bcf2c40b0b050b6ab71c81c0d0.svn-base | 93 ----------------- ...cb9b63b696c3d4af061065582f3976480164ca.svn-base | 23 ---- ...ab3b7f5164a23ba1042b4eea522e5d593eb7e7.svn-base | 3 - ...1683df846d17be338ee87444446487dea61404.svn-base | 3 - ...2901b1bee1a5f825ada4d4f239e0e78c89c957.svn-base | 18 ---- ...e246f193041a380f86ac4208a456b2d7589e3a.svn-base | 20 ---- ...586d440ea4a0a9488f6c44d3d50355ae5c8853.svn-base | 61 ----------- ...94d7694ab93517178dd5b45cbaa22be6ecdc63.svn-base | 26 ----- ...4d1387a693257bf25043385748483d45b9a4b7.svn-base | 49 --------- ...269fbbc3eb5e1d7de39487cc983a4d780d918a.svn-base | 7 -- ...c6c9d89432316d7b672fb8a7258985a4bb4b0b.svn-base | 28 ----- ...820d90fb6cd944710b7b23474fc1aab411ac21.svn-base | 40 ------- ...d8a1615c1e74ebb1c847ac7b3b05fc412bfb22.svn-base | 57 ---------- ...17d834635368097dc4069f64744a7d63619461.svn-base | 44 -------- ...2a75534b5f3b04a4ea05f281826dcaae448cfb.svn-base | 54 ---------- .../.svn/wc.db | Bin 67584 -> 0 bytes 25 files changed, 809 deletions(-) delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/entries delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/format delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/00/00e1f1bc150986effc780aa7408f83a5747113fd.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/05/05193c1e7357387965ed1eb2cd9c9eaf493aa4cc.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/0c/0cc6c886ddbccaf52e6be6d42080cbbfc25e56ca.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/11/116b5d4fe5dfc6332ebe62073c7418854c7fa0ff.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/2d/2dd844ef78323af52ceb766e9c887d44a383b8ef.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/30/302e29032d5d32ddd4d3df340a9685cc744a1a8d.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/30/304ceb77ed16eeaeb7ad57328580051968f30e51.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/32/323446449cbc59bcf2c40b0b050b6ab71c81c0d0.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/44/44cb9b63b696c3d4af061065582f3976480164ca.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/4d/4dab3b7f5164a23ba1042b4eea522e5d593eb7e7.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/59/591683df846d17be338ee87444446487dea61404.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/69/692901b1bee1a5f825ada4d4f239e0e78c89c957.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/79/79e246f193041a380f86ac4208a456b2d7589e3a.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/91/91586d440ea4a0a9488f6c44d3d50355ae5c8853.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/9a/9a94d7694ab93517178dd5b45cbaa22be6ecdc63.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/a7/a74d1387a693257bf25043385748483d45b9a4b7.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/b3/b3269fbbc3eb5e1d7de39487cc983a4d780d918a.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/b9/b9c6c9d89432316d7b672fb8a7258985a4bb4b0b.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/bb/bb820d90fb6cd944710b7b23474fc1aab411ac21.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/c6/c6d8a1615c1e74ebb1c847ac7b3b05fc412bfb22.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/cf/cf17d834635368097dc4069f64744a7d63619461.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/da/da2a75534b5f3b04a4ea05f281826dcaae448cfb.svn-base delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/wc.db (limited to 'plugins/facet') diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/entries b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/entries deleted file mode 100644 index 3cacc0b93c9..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/entries +++ /dev/null @@ -1 +0,0 @@ -12 \ No newline at end of file diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/format b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/format deleted file mode 100644 index 3cacc0b93c9..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/format +++ /dev/null @@ -1 +0,0 @@ -12 \ No newline at end of file diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/00/00e1f1bc150986effc780aa7408f83a5747113fd.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/00/00e1f1bc150986effc780aa7408f83a5747113fd.svn-base deleted file mode 100644 index 2d1a4302f04..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/00/00e1f1bc150986effc780aa7408f83a5747113fd.svn-base +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/05/05193c1e7357387965ed1eb2cd9c9eaf493aa4cc.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/05/05193c1e7357387965ed1eb2cd9c9eaf493aa4cc.svn-base deleted file mode 100644 index 060c5ee3d2e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/05/05193c1e7357387965ed1eb2cd9c9eaf493aa4cc.svn-base +++ /dev/null @@ -1,11 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.5 diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/0c/0cc6c886ddbccaf52e6be6d42080cbbfc25e56ca.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/0c/0cc6c886ddbccaf52e6be6d42080cbbfc25e56ca.svn-base deleted file mode 100644 index 77df09483b5..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/0c/0cc6c886ddbccaf52e6be6d42080cbbfc25e56ca.svn-base +++ /dev/null @@ -1,21 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %Bundle-Name -Bundle-SymbolicName: org.eclipse.emf.facet.custom.sdk.core;singleton:=true -Bundle-Version: 0.4.0.qualifier -Bundle-Activator: org.eclipse.emf.facet.custom.sdk.core.internal.Activator -Bundle-Vendor: %Bundle-Vendor -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.emf.validation;bundle-version="1.4.0", - org.eclipse.emf.facet.efacet.metamodel;bundle-version="0.2.0", - org.eclipse.emf.facet.custom.metamodel;bundle-version="0.2.0", - org.eclipse.emf.facet.custom.core;bundle-version="0.2.0", - org.eclipse.emf.facet.common.sdk.core;bundle-version="0.2.0", - org.eclipse.emf.facet.util.core;bundle-version="0.2.1", - org.eclipse.emf.facet.util.pde.core;bundle-version="0.4.0" -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Bundle-ActivationPolicy: lazy -Export-Package: org.eclipse.emf.facet.custom.sdk.core, - org.eclipse.emf.facet.custom.sdk.core.internal.validation;x-internal:=true -Import-Package: org.eclipse.emf.edit.command, - org.eclipse.emf.edit.domain diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/11/116b5d4fe5dfc6332ebe62073c7418854c7fa0ff.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/11/116b5d4fe5dfc6332ebe62073c7418854c7fa0ff.svn-base deleted file mode 100644 index e8efe00ed91..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/11/116b5d4fe5dfc6332ebe62073c7418854c7fa0ff.svn-base +++ /dev/null @@ -1,69 +0,0 @@ -/** - * Copyright (c) 2012 Mia-Software. - * - * 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: - * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors - */ -package org.eclipse.emf.facet.custom.sdk.core.internal; - -import java.io.IOException; - -import org.eclipse.core.resources.IFile; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.emf.facet.custom.metamodel.v0_2_0.custom.Customization; -import org.eclipse.emf.facet.custom.sdk.core.ICustomizationActions; -import org.eclipse.emf.facet.util.core.Logger; -import org.eclipse.emf.facet.util.emf.core.ICatalogSetManager2; -import org.eclipse.emf.facet.util.emf.core.ICatalogSetManagerFactory; -import org.eclipse.emf.facet.util.emf.core.exception.InvalidFacetSetException; -import org.eclipse.emf.facet.util.pde.core.internal.exported.BuildPropertiesUtils; - -/** - * Concrete implementation of {@link ICustomizationActions}. - */ -public class CustomizationActionsImpl implements ICustomizationActions { - - public void saveCustomization(final Customization customization, - final IFile file) throws IOException, InvalidFacetSetException { - - if (customization == null) { - throw new IllegalArgumentException( - "The given customization cannot be null"); //$NON-NLS-1$ - } - if (file == null) { - throw new IllegalArgumentException("The given file cannot be null"); //$NON-NLS-1$ - } - if (file.exists()) { - throw new IllegalArgumentException("The given file already exists"); //$NON-NLS-1$ - } - // Create a resource set - final ResourceSet resourceSet = new ResourceSetImpl(); - // Get the URI of the model file. - final URI fileURI = URI.createPlatformResourceURI(file.getFullPath() - .toString(), true); - // Create a resource for this file. - final Resource resource = resourceSet.createResource(fileURI); - // Add the facetSet the resource contents. - resource.getContents().add(customization); - // Save the contents of the resource to the file system. - resource.save(null); - try { - BuildPropertiesUtils.addToBuild(file); - } catch (final Exception e) { - Logger.logError(e, "Error adding file " + file.getFullPath() //$NON-NLS-1$ - + " to the build.properties", Activator.getDefault()); //$NON-NLS-1$ - } - final ICatalogSetManager2 catalogSetManager = ICatalogSetManagerFactory.DEFAULT - .createICatalogSetManager(resourceSet); - catalogSetManager.registerModelDeclaration(file); - } - -} diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/2d/2dd844ef78323af52ceb766e9c887d44a383b8ef.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/2d/2dd844ef78323af52ceb766e9c887d44a383b8ef.svn-base deleted file mode 100644 index 666d02d586b..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/2d/2dd844ef78323af52ceb766e9c887d44a383b8ef.svn-base +++ /dev/null @@ -1,116 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 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: - * Nicolas Bros (Mia-Software) - Bug 375054 - Add validation warning for overlay on EClass - *******************************************************************************/ -package org.eclipse.emf.facet.custom.sdk.core.internal.validation; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.resources.IResourceDeltaVisitor; -import org.eclipse.core.resources.IResourceVisitor; -import org.eclipse.core.resources.IncrementalProjectBuilder; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.emf.common.util.TreeIterator; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.facet.common.sdk.core.internal.exported.IEmfFacetProjectBuilder; -import org.eclipse.emf.facet.custom.core.internal.exported.Constants; -import org.eclipse.emf.validation.marker.MarkerUtil; -import org.eclipse.emf.validation.model.EvaluationMode; -import org.eclipse.emf.validation.service.IBatchValidator; -import org.eclipse.emf.validation.service.ModelValidationService; - -/** A builder that validates customization model files. */ -public class CustomizationValidationBuilder implements IEmfFacetProjectBuilder, IResourceDeltaVisitor, IResourceVisitor { - - public IProject[] build(final IncrementalProjectBuilder builder, final int kind, final Map args, final IProgressMonitor monitor) throws CoreException { - if (kind == IncrementalProjectBuilder.FULL_BUILD) { - fullBuild(builder); - } else { - final IResourceDelta delta = builder.getDelta(builder.getProject()); - if (delta == null) { - fullBuild(builder); - } else { - incrementalBuild(delta); - } - } - return new IProject[0]; - } - - public void clean(final IncrementalProjectBuilder builder, final IProgressMonitor monitor) throws CoreException { - builder.getProject().accept(new IResourceVisitor() { - public boolean visit(final IResource resource) throws CoreException { - if (isCustomizationFile(resource)) { - resource.deleteMarkers(MarkerUtil.VALIDATION_MARKER_TYPE, true, IResource.DEPTH_INFINITE); - } - return true; - } - }); - } - - private void incrementalBuild(final IResourceDelta delta) throws CoreException { - delta.accept(this); - } - - private void fullBuild(final IncrementalProjectBuilder builder) throws CoreException { - builder.getProject().accept(this); - } - - protected static boolean isCustomizationFile(final IResource resource) { - return resource.getType() == IResource.FILE - && Constants.CUSTOM_FILE_EXT - .equals(resource.getFileExtension()); - } - - public boolean visit(final IResourceDelta delta) throws CoreException { - if (isCustomizationFile(delta.getResource())) { - validate(delta.getResource()); - } - return true; - } - - public boolean visit(final IResource resource) throws CoreException { - if (Constants.CUSTOM_FILE_EXT.equals(resource.getFileExtension())) { - validate(resource); - } - return true; - } - - protected static void validate(final IResource resource) throws CoreException { - if (resource.exists()) { - final IBatchValidator validator = (IBatchValidator) ModelValidationService.getInstance() - .newValidator(EvaluationMode.BATCH); - validator.setOption(IBatchValidator.OPTION_TRACK_RESOURCES, Boolean.TRUE); - final IStatus multiStatus = validator.validate(getAllContents(resource)); - MarkerUtil.updateMarkers(multiStatus); - } - } - - /** @return all the model elements contained in the given platform resource. */ - public static List getAllContents(final IResource resource) { - final List result = new ArrayList(); - final ResourceSetImpl resourceSet = new ResourceSetImpl(); - final Resource modelResource = resourceSet.getResource(URI.createPlatformResourceURI(resource.getFullPath().toString(), true), true); - final TreeIterator allContents = EcoreUtil.getAllContents(modelResource, true); - while (allContents.hasNext()) { - result.add(allContents.next()); - } - return result; - } -} diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/30/302e29032d5d32ddd4d3df340a9685cc744a1a8d.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/30/302e29032d5d32ddd4d3df340a9685cc744a1a8d.svn-base deleted file mode 100644 index 3e038315588..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/30/302e29032d5d32ddd4d3df340a9685cc744a1a8d.svn-base +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Copyright (c) 2012 Mia-Software. - * - * 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: - * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors - */ -package org.eclipse.emf.facet.custom.sdk.core; - -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.facet.custom.sdk.core.internal.CustomizationCommandFactoryFactory; -import org.eclipse.emf.facet.custom.sdk.core.internal.CustomizationCommandFactory; - -/** - * This interface provide a command factory. A command modify the editingDomain. - * - * @since 0.3 - * @see CustomizationCommandFactory - * @noextend This interface is not intended to be extended by clients. - * @noimplement This interface is not intended to be implemented by clients. - */ -public interface ICustomizationCommandFactoryFactory { - - ICustomizationCommandFactoryFactory DEFAULT = new CustomizationCommandFactoryFactory(); - - /** - * Set the editingDomain. - * - * @param editingDomain - * the current editing domain. - */ - ICustomizationCommandFactory createICustomizationCommandFactory( - EditingDomain editingDomain); - -} diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/30/304ceb77ed16eeaeb7ad57328580051968f30e51.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/30/304ceb77ed16eeaeb7ad57328580051968f30e51.svn-base deleted file mode 100644 index a04987648b2..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/30/304ceb77ed16eeaeb7ad57328580051968f30e51.svn-base +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2012 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: -# Nicolas Bros (Mia-Software) - Bug 375054 - Add validation warning for overlay on EClass -############################################################################### -#Properties file for org.eclipse.emf.facet.custom.sdk.core -Bundle-Vendor = Eclipse Modeling Project -Bundle-Name = EMF Facet Custom SDK Core (Incubation) -modelValidation.category = EMF Facet Custom Model Validation -avoidEClassOverlay.constraint.name = Avoid EClass Overlay -avoidEClassOverlay.constraint.message = Avoid overlay customizations on EClass. Define an overlay on a Facet instead. -avoidEClassOverlay.constraint.description = Overlay customizations on EClass should be avoided, and replaced by an overlay on a Facet. -validation.builder.name = EMF Facet Customization Validation Builder diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/32/323446449cbc59bcf2c40b0b050b6ab71c81c0d0.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/32/323446449cbc59bcf2c40b0b050b6ab71c81c0d0.svn-base deleted file mode 100644 index 98454ba3191..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/32/323446449cbc59bcf2c40b0b050b6ab71c81c0d0.svn-base +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Copyright (c) 2012 Mia-Software. - * - * 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: - * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors - * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors - */ -package org.eclipse.emf.facet.custom.sdk.core.internal; - -import org.eclipse.emf.common.command.Command; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.edit.command.AddCommand; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.facet.custom.metamodel.v0_2_0.custom.Customization; -import org.eclipse.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization; -import org.eclipse.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase; -import org.eclipse.emf.facet.custom.metamodel.v0_2_0.custom.FacetCustomization; -import org.eclipse.emf.facet.custom.sdk.core.ICustomizationCommandFactory; -import org.eclipse.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * Concrete implementation of {@link ICustomizationCommandFactory}. - */ -public class CustomizationCommandFactory implements - ICustomizationCommandFactory { - - private final EditingDomain editingDomain; - - public CustomizationCommandFactory(final EditingDomain editingDomain) { - if (editingDomain == null) { - throw new IllegalArgumentException( - "The given EditingDomain cannot be null"); //$NON-NLS-1$ - } - this.editingDomain = editingDomain; - } - - /** - * Create an {@link AddCommand} to add the element to the owner. - * - * @param owner - * the owner. - * @param element - * the element to add. - * @return the command. - */ - private Command createAddCommand(final Object owner, final Object element) { - if (owner == null) { - throw new IllegalArgumentException("The given owner cannot be null"); //$NON-NLS-1$ - } - if (element == null) { - throw new IllegalArgumentException( - "The given element cannot be null"); //$NON-NLS-1$ - } - return AddCommand.create(this.editingDomain, owner, - getEStructuralFeature(element), element); - } - - /** - * Return the {@link EStructuralFeature} for a given element. - * - * @param element - * the element. - * @return the eStructuralFeature for the element. - */ - private static EStructuralFeature getEStructuralFeature(final Object element) { - EStructuralFeature result = null; - if (element instanceof EClassCustomization) { - result = EcorePackage.eINSTANCE.getEPackage_EClassifiers(); - } - return result; - } - - public Command createEClassCustomization(final Customization parent, - final EClassCustomization eClassCustom) { - return createAddCommand(parent, eClassCustom); - } - - public Command createFacetCustomization(final Customization parent, - final FacetCustomization facetCustom) { - return createAddCommand(parent, facetCustom); - } - - public Command addValueInCase(final ETypedElementCase elementCase, - final Query value) { - return createAddCommand(elementCase, value); - } -} diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/44/44cb9b63b696c3d4af061065582f3976480164ca.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/44/44cb9b63b696c3d4af061065582f3976480164ca.svn-base deleted file mode 100644 index cc56ae119af..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/44/44cb9b63b696c3d4af061065582f3976480164ca.svn-base +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 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: - * Nicolas Bros (Mia-Software) - Bug 375054 - Add validation warning for overlay on EClass - *******************************************************************************/ -package org.eclipse.emf.facet.custom.sdk.core.internal.validation; - -import org.eclipse.emf.validation.model.IClientSelector; - -/** Enables validation depending on a client context. */ -public class ValidationDelegateClientSelector implements IClientSelector { - - public boolean selects(final Object object) { - // always enabled - return true; - } - -} diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/4d/4dab3b7f5164a23ba1042b4eea522e5d593eb7e7.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/4d/4dab3b7f5164a23ba1042b4eea522e5d593eb7e7.svn-base deleted file mode 100644 index 4b8505e6d1e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/4d/4dab3b7f5164a23ba1042b4eea522e5d593eb7e7.svn-base +++ /dev/null @@ -1,3 +0,0 @@ -#Wed Sep 14 13:39:57 CEST 2011 -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/59/591683df846d17be338ee87444446487dea61404.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/59/591683df846d17be338ee87444446487dea61404.svn-base deleted file mode 100644 index dea8d10ff97..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/59/591683df846d17be338ee87444446487dea61404.svn-base +++ /dev/null @@ -1,3 +0,0 @@ -#Tue Dec 13 09:46:07 CET 2011 -eclipse.preferences.version=1 -line.separator=\n diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/69/692901b1bee1a5f825ada4d4f239e0e78c89c957.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/69/692901b1bee1a5f825ada4d4f239e0e78c89c957.svn-base deleted file mode 100644 index cc4564edfe6..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/69/692901b1bee1a5f825ada4d4f239e0e78c89c957.svn-base +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/79/79e246f193041a380f86ac4208a456b2d7589e3a.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/79/79e246f193041a380f86ac4208a456b2d7589e3a.svn-base deleted file mode 100644 index 2196632f9a2..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/79/79e246f193041a380f86ac4208a456b2d7589e3a.svn-base +++ /dev/null @@ -1,20 +0,0 @@ -############################################################################### -# Copyright (c) 2012 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: -# Nicolas Bros (Mia-Software) - Bug 375054 - Add validation warning for overlay on EClass -# Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors -############################################################################### -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - about.html,\ - OSGI-INF/,\ - plugin.xml -src.includes = about.html -javacDefaultEncoding.. = UTF-8 diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/91/91586d440ea4a0a9488f6c44d3d50355ae5c8853.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/91/91586d440ea4a0a9488f6c44d3d50355ae5c8853.svn-base deleted file mode 100644 index b25fd22378e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/91/91586d440ea4a0a9488f6c44d3d50355ae5c8853.svn-base +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Copyright (c) 2012 Mia-Software. - * - * 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: - * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors - * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors - */ -package org.eclipse.emf.facet.custom.sdk.core; - -import org.eclipse.emf.common.command.Command; -import org.eclipse.emf.facet.custom.metamodel.v0_2_0.custom.Customization; -import org.eclipse.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization; -import org.eclipse.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase; -import org.eclipse.emf.facet.custom.metamodel.v0_2_0.custom.FacetCustomization; -import org.eclipse.emf.facet.custom.sdk.core.internal.CustomizationCommandFactory; -import org.eclipse.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * This interface provide a command factory. A command modify the editingDomain. - * - * @since 0.3 - * @see CustomizationCommandFactory - * @noextend This interface is not intended to be extended by clients. - * @noimplement This interface is not intended to be implemented by clients. - */ -public interface ICustomizationCommandFactory { - - /** - * Create the command to add a eClassCustomization to an existing - * customization (parent). - * - * @param Customization - * the parent of the eClassCustomization to add. - * @param eClassCustom - * the eClassCustomization to add. - * @return the command. - */ - Command createEClassCustomization(Customization parent, - EClassCustomization eClassCustom); - - /** - * Create the command to add a facetCustomization to an existing - * customization (parent). - * - * @param parent - * the parent of the facetCustomization to add. - * @param facetCustom - * the facetCustomization to add. - * @return the command. - */ - Command createFacetCustomization(Customization parent, - FacetCustomization facetCustom); - - Command addValueInCase(final ETypedElementCase elementCase, - final Query value); -} diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/9a/9a94d7694ab93517178dd5b45cbaa22be6ecdc63.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/9a/9a94d7694ab93517178dd5b45cbaa22be6ecdc63.svn-base deleted file mode 100644 index b96f8240d28..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/9a/9a94d7694ab93517178dd5b45cbaa22be6ecdc63.svn-base +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Copyright (c) 2012 Mia-Software. - * - * 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: - * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors - */ -package org.eclipse.emf.facet.custom.sdk.core.internal; - -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.facet.custom.sdk.core.ICustomizationCommandFactory; -import org.eclipse.emf.facet.custom.sdk.core.ICustomizationCommandFactoryFactory; - -public class CustomizationCommandFactoryFactory implements - ICustomizationCommandFactoryFactory { - - public ICustomizationCommandFactory createICustomizationCommandFactory( - final EditingDomain editingDomain) { - return new CustomizationCommandFactory(editingDomain); - } - -} diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/a7/a74d1387a693257bf25043385748483d45b9a4b7.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/a7/a74d1387a693257bf25043385748483d45b9a4b7.svn-base deleted file mode 100644 index f7f989630e0..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/a7/a74d1387a693257bf25043385748483d45b9a4b7.svn-base +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - %avoidEClassOverlay.constraint.message - - - %avoidEClassOverlay.constraint.description - - - - - - - - - - - - - - - - - diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/b3/b3269fbbc3eb5e1d7de39487cc983a4d780d918a.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/b3/b3269fbbc3eb5e1d7de39487cc983a4d780d918a.svn-base deleted file mode 100644 index a64878bfdf6..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/b3/b3269fbbc3eb5e1d7de39487cc983a4d780d918a.svn-base +++ /dev/null @@ -1,7 +0,0 @@ - - - true - ../org.eclipse.emf.facet.archi.tech.rules/pmd/ruleset.xml - false - true - diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/b9/b9c6c9d89432316d7b672fb8a7258985a4bb4b0b.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/b9/b9c6c9d89432316d7b672fb8a7258985a4bb4b0b.svn-base deleted file mode 100644 index 3019b95b9cf..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/b9/b9c6c9d89432316d7b672fb8a7258985a4bb4b0b.svn-base +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

December 22, 2008

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") and different terms and conditions may -apply to your use of any object code in the Content. Check the Redistributor's license that was -provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise -indicated below, the terms and conditions of the EPL still apply to any source code in the Content -and such source code may be obtained at http://www.eclipse.org.

- - - \ No newline at end of file diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/bb/bb820d90fb6cd944710b7b23474fc1aab411ac21.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/bb/bb820d90fb6cd944710b7b23474fc1aab411ac21.svn-base deleted file mode 100644 index 0bf408ff5ad..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/bb/bb820d90fb6cd944710b7b23474fc1aab411ac21.svn-base +++ /dev/null @@ -1,40 +0,0 @@ - - - org.eclipse.emf.facet.custom.sdk.core - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - net.sf.eclipsecs.core.CheckstyleBuilder - - - - - net.sourceforge.pmd.eclipse.plugin.pmdBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - net.sf.eclipsecs.core.CheckstyleNature - net.sourceforge.pmd.eclipse.plugin.pmdNature - - diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/c6/c6d8a1615c1e74ebb1c847ac7b3b05fc412bfb22.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/c6/c6d8a1615c1e74ebb1c847ac7b3b05fc412bfb22.svn-base deleted file mode 100644 index b8081af3e8d..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/c6/c6d8a1615c1e74ebb1c847ac7b3b05fc412bfb22.svn-base +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 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: - * Nicolas Bros (Mia-Software) - Bug 375054 - Add validation warning for overlay on EClass - *******************************************************************************/ -package org.eclipse.emf.facet.custom.sdk.core.internal.validation; - -import java.util.Arrays; -import java.util.List; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization; -import org.eclipse.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; -import org.eclipse.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; -import org.eclipse.emf.validation.AbstractModelConstraint; -import org.eclipse.emf.validation.IValidationContext; - -/** - * Creates a warning if a {@link FacetOperation} defined in an {@link EClassCustomization} overrides (i.e. customizes) - * an overlay operation. - */ -public class AvoidEClassOverlayConstraint extends AbstractModelConstraint { - - private static final List OVERLAY_OPS = Arrays.asList( - "platform:/plugin/org.eclipse.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/topLeftOverlay", //$NON-NLS-1$ - "platform:/plugin/org.eclipse.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/topMiddleOverlay", //$NON-NLS-1$ - "platform:/plugin/org.eclipse.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/topRightOverlay", //$NON-NLS-1$ - "platform:/plugin/org.eclipse.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/bottomLeftOverlay", //$NON-NLS-1$ - "platform:/plugin/org.eclipse.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/bottomMiddleOverlay", //$NON-NLS-1$ - "platform:/plugin/org.eclipse.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/bottomRightOverlay" //$NON-NLS-1$ - ); - - @Override - public IStatus validate(final IValidationContext ctx) { - IStatus result = ctx.createSuccessStatus(); - final EObject target = ctx.getTarget(); - if (target instanceof FacetOperation) { - final FacetOperation facetOperation = (FacetOperation) target; - final DerivedTypedElement override = facetOperation.getOverride(); - final URI overrideURI = EcoreUtil.getURI(override); - if (facetOperation.eContainer() instanceof EClassCustomization - && AvoidEClassOverlayConstraint.OVERLAY_OPS.contains(overrideURI.toString())) { - result = ctx.createFailureStatus(); - } - } - return result; - } - -} diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/cf/cf17d834635368097dc4069f64744a7d63619461.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/cf/cf17d834635368097dc4069f64744a7d63619461.svn-base deleted file mode 100644 index cbe214e96bf..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/cf/cf17d834635368097dc4069f64744a7d63619461.svn-base +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Copyright (c) 2012 Mia-Software. - * - * 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: - * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors - */ -package org.eclipse.emf.facet.custom.sdk.core; - -import java.io.IOException; - -import org.eclipse.core.resources.IFile; -import org.eclipse.emf.facet.custom.metamodel.v0_2_0.custom.Customization; -import org.eclipse.emf.facet.custom.sdk.core.internal.CustomizationActionsImpl; -import org.eclipse.emf.facet.util.emf.core.exception.InvalidFacetSetException; - -/** - * This interface provides the creation of a new customization model file. - * - * @see CustomizationActionsImpl - * @noextend This interface is not intended to be extended by clients. - * @noimplement This interface is not intended to be implemented by clients. - */ -public interface ICustomizationActions { - - ICustomizationActions INSTANCE = new CustomizationActionsImpl(); - - /** - * Add the given customization to the given customization model file, which - * will be created. - * - * @param customization - * the customization to be created. Cannot be null - * @param file - * the new file in which the customization has to be created. - * Cannot be null, and cannot already exist - */ - void saveCustomization(Customization customization, IFile file) - throws IOException, InvalidFacetSetException; -} diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/da/da2a75534b5f3b04a4ea05f281826dcaae448cfb.svn-base b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/da/da2a75534b5f3b04a4ea05f281826dcaae448cfb.svn-base deleted file mode 100644 index fdf1b570d8c..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/pristine/da/da2a75534b5f3b04a4ea05f281826dcaae448cfb.svn-base +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Copyright (c) 2012 CEA LIST. - * Copyright (c) 2012 Mia-Software. - * - * 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: - * Nicolas Bros (Mia-Software) - Bug 375054 - Add validation warning for overlay on EClass - * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors - */ -package org.eclipse.emf.facet.custom.sdk.core.internal; - -import org.eclipse.core.runtime.Plugin; -import org.osgi.framework.BundleContext; - -@SuppressWarnings("PMD.UseSingleton") -// @SuppressWarnings("PMD.UseSingleton") We cannot conforms to this rule because -// this class is an Eclipse plug-in activator which will be instantiated by the -// Eclipse framework. -public class Activator extends Plugin { - - private static Activator plugin; - - @Override - @SuppressWarnings("PMD.SignatureDeclareThrowsException") - // @SuppressWarnings("PMD.SignatureDeclareThrowsException") We have to use - // this signature because this is an override of an Eclipse framework's - // method. - public void start(final BundleContext bundleContext) throws Exception { - super.start(bundleContext); - Activator.plugin = this; - } - - @Override - @SuppressWarnings({ "PMD.SignatureDeclareThrowsException", - "PMD.NullAssignment" }) - // @SuppressWarnings("PMD.SignatureDeclareThrowsException") We have to use - // this signature because this is an override of an Eclipse framework's - // method. - // @SuppressWarnings("PMD.NullAssignment") - // No choice to right it in another way : this is an Eclipse pattern. - public void stop(final BundleContext bundleContext) throws Exception { - Activator.plugin = null; - super.stop(bundleContext); - } - - public static Plugin getDefault() { - return Activator.plugin; - } - -} diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/wc.db b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/wc.db deleted file mode 100644 index 625eb188239..00000000000 Binary files a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core/.svn/wc.db and /dev/null differ -- cgit v1.2.3