From 7a4c142e57cde5338bc51903467576efa4803219 Mon Sep 17 00:00:00 2001 From: Laurent Wouters Date: Fri, 4 Apr 2014 16:20:04 +0200 Subject: [clean] Retiring org.eclipse.papyrus.infra.table.efacet.properties Signed-off-by: Laurent Wouters --- .../.classpath | 7 -- .../.project | 28 ----- .../META-INF/MANIFEST.MF | 23 ---- .../about.html | 28 ----- .../build.properties | 10 -- .../plugin.xml | 9 -- .../propertyView/environment.xmi | 9 -- .../propertyView/papyrustable/papyrustable.ctx | 73 ------------ .../papyrustable/ui/MultiplePapyrusTable.xwt | 16 --- .../papyrustable/ui/SinglePapyrusTable.xwt | 93 --------------- .../infra/table/efacet/properties/Activator.java | 69 ----------- .../properties/modelelement/TableModelElement.java | 47 -------- .../modelelement/TableModelElementFactory.java | 37 ------ .../properties/providers/ClassLabelProvider.java | 51 -------- .../providers/ContextFeatureContentProvider.java | 129 --------------------- 15 files changed, 629 deletions(-) delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.classpath delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.project delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/META-INF/MANIFEST.MF delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/about.html delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/build.properties delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/plugin.xml delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/environment.xmi delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/papyrustable.ctx delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/MultiplePapyrusTable.xwt delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/SinglePapyrusTable.xwt delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/Activator.java delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/modelelement/TableModelElement.java delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/modelelement/TableModelElementFactory.java delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/providers/ClassLabelProvider.java delete mode 100644 deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/providers/ContextFeatureContentProvider.java diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.classpath b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.classpath deleted file mode 100644 index 2d1a4302f04..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.project b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.project deleted file mode 100644 index ca50e039e01..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.infra.table.efacet.properties - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/META-INF/MANIFEST.MF b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/META-INF/MANIFEST.MF deleted file mode 100644 index ae402f169d3..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/META-INF/MANIFEST.MF +++ /dev/null @@ -1,23 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.ui, - org.eclipse.core.runtime, - org.eclipse.papyrus.views.properties;bundle-version="0.10.1", - org.eclipse.core.databinding;bundle-version="1.4.1", - org.eclipse.papyrus.views.properties.model;bundle-version="0.10.1", - org.eclipse.papyrus.infra.widgets;bundle-version="0.10.1", - org.eclipse.papyrus.infra.emf;bundle-version="0.10.1", - org.eclipse.emf.edit;bundle-version="2.8.0", - org.eclipse.papyrus.infra.core.log;bundle-version="0.10.1", - org.eclipse.papyrus.infra.table.efacet.metamodel;bundle-version="0.10.1", - org.eclipse.emf.facet.widgets.table.metamodel;bundle-version="0.2.0" -Bundle-Vendor: Eclipse Modeling Project -Bundle-ActivationPolicy: lazy -Bundle-Version: 0.10.1.qualifier -Bundle-Name: Table EFacet Properties (Incubation) -Bundle-Activator: org.eclipse.papyrus.infra.table.efacet.properties.Ac - tivator -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.papyrus.infra.table.efacet.properties - ;singleton:=true -Bundle-RequiredExecutionEnvironment: J2SE-1.5 - diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/about.html b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/about.html deleted file mode 100644 index 82d49bf5f81..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

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.

- - - diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/build.properties b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/build.properties deleted file mode 100644 index 644a6b94e93..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/build.properties +++ /dev/null @@ -1,10 +0,0 @@ -# -#Fri Aug 03 16:42:22 CEST 2012 -bin.includes = META-INF/,\ - .,\ - propertyView/,\ - plugin.xml,\ - about.html -output..=bin/ -source..=src/ -src.includes = about.html diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/plugin.xml b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/plugin.xml deleted file mode 100644 index ab9f41f3298..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/plugin.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/environment.xmi b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/environment.xmi deleted file mode 100644 index 9217016ca3b..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/environment.xmi +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/papyrustable.ctx b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/papyrustable.ctx deleted file mode 100644 index 5591b65f7ab..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/papyrustable.ctx +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/MultiplePapyrusTable.xwt b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/MultiplePapyrusTable.xwt deleted file mode 100644 index 5d4ed0e8937..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/MultiplePapyrusTable.xwt +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/SinglePapyrusTable.xwt b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/SinglePapyrusTable.xwt deleted file mode 100644 index 0ec0a430e5b..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/SinglePapyrusTable.xwt +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/Activator.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/Activator.java deleted file mode 100644 index 756795fb4d4..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/Activator.java +++ /dev/null @@ -1,69 +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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - *****************************************************************************/ -package org.eclipse.papyrus.infra.table.efacet.properties; - -import org.eclipse.papyrus.infra.core.log.LogHelper; -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * The activator class controls the plug-in life cycle - */ -public class Activator extends AbstractUIPlugin { - - // The plug-in ID - public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.table.efacet.properties"; //$NON-NLS-1$ - - // The shared instance - private static Activator plugin; - - public static LogHelper log; - - /** - * The constructor - */ - public Activator() { - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) - */ - @Override - public void start(BundleContext context) throws Exception { - super.start(context); - plugin = this; - log = new LogHelper(this); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) - */ - @Override - public void stop(BundleContext context) throws Exception { - plugin = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return plugin; - } - -} diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/modelelement/TableModelElement.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/modelelement/TableModelElement.java deleted file mode 100644 index a80ac8fd72c..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/modelelement/TableModelElement.java +++ /dev/null @@ -1,47 +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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - *****************************************************************************/ -package org.eclipse.papyrus.infra.table.efacet.properties.modelelement; - -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.jface.viewers.ILabelProvider; -import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrusTable; -import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrustablePackage; -import org.eclipse.papyrus.infra.table.efacet.properties.providers.ContextFeatureContentProvider; -import org.eclipse.papyrus.infra.widgets.providers.IStaticContentProvider; -import org.eclipse.papyrus.views.properties.modelelement.EMFModelElement; - - -public class TableModelElement extends EMFModelElement { - - private final PapyrusTable sourceTable; - - public TableModelElement(final PapyrusTable source, final EditingDomain domain) { - super(source, domain); - this.sourceTable = source; - } - - @Override - public IStaticContentProvider getContentProvider(final String propertyPath) { - if(PapyrustablePackage.eINSTANCE.getPapyrusTable_ContextFeature().getName().equals(propertyPath)) {//TODO change this string by the string owned by the table model if it exists - return new ContextFeatureContentProvider(this.sourceTable); - } - return super.getContentProvider(propertyPath); - } - - @Override - public ILabelProvider getLabelProvider(final String propertyPath) { - if("table.context".equals(propertyPath)) { //$NON-NLS-1$ - //TODO when the label provider service will exisit ()warning to stereotyped element! (SysML != UML!!) - } - return super.getLabelProvider(propertyPath); - } -} diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/modelelement/TableModelElementFactory.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/modelelement/TableModelElementFactory.java deleted file mode 100644 index d641ab63635..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/modelelement/TableModelElementFactory.java +++ /dev/null @@ -1,37 +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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - *****************************************************************************/ -package org.eclipse.papyrus.infra.table.efacet.properties.modelelement; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.papyrus.infra.emf.utils.EMFHelper; -import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrusTable; -import org.eclipse.papyrus.views.properties.Activator; -import org.eclipse.papyrus.views.properties.contexts.DataContextElement; -import org.eclipse.papyrus.views.properties.modelelement.ModelElement; -import org.eclipse.papyrus.views.properties.modelelement.ModelElementFactory; - - -public class TableModelElementFactory implements ModelElementFactory { - - public ModelElement createFromSource(Object sourceElement, DataContextElement context) { - EObject source = EMFHelper.getEObject(sourceElement); - if(source == null || !(source instanceof PapyrusTable)) { - Activator.log.warn("Unable to resolve the selected element to a Papyrus Table"); //$NON-NLS-1$ - return null; - } - - EditingDomain domain = EMFHelper.resolveEditingDomain(source); - return new TableModelElement((PapyrusTable)source, domain); - } - -} diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/providers/ClassLabelProvider.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/providers/ClassLabelProvider.java deleted file mode 100644 index 430f02601fe..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/providers/ClassLabelProvider.java +++ /dev/null @@ -1,51 +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: - * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation - */ -package org.eclipse.papyrus.infra.table.efacet.properties.providers; - -import org.eclipse.jface.viewers.ILabelProvider; -import org.eclipse.jface.viewers.ILabelProviderListener; -import org.eclipse.swt.graphics.Image; - - -public class ClassLabelProvider implements ILabelProvider { - - public void addListener(final ILabelProviderListener listener) { - //nothing to do - - } - - public void dispose() { - //nothing to do - } - - public boolean isLabelProperty(final Object element, final String property) { - //nothing to do - return false; - } - - public void removeListener(final ILabelProviderListener listener) { - //nothing to do - - } - - public Image getImage(final Object element) { - //nothing to do - return null; - } - - public String getText(final Object element) { - //nothing to do - return ""; - } - -} diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/providers/ContextFeatureContentProvider.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/providers/ContextFeatureContentProvider.java deleted file mode 100644 index 4ff01a0a8b6..00000000000 --- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/providers/ContextFeatureContentProvider.java +++ /dev/null @@ -1,129 +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: - * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation - */ -package org.eclipse.papyrus.infra.table.efacet.properties.providers; - -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrusTable; -import org.eclipse.papyrus.infra.widgets.providers.IHierarchicContentProvider; -import org.eclipse.papyrus.infra.widgets.providers.IStaticContentProvider; - -/** - * - * Context provider for the table edition - * - */ -public class ContextFeatureContentProvider implements IHierarchicContentProvider, IStaticContentProvider { - - /** - * the edited table - */ - private final PapyrusTable table; - - /** - * - * Constructor. - * - * @param table - * the edited table - */ - public ContextFeatureContentProvider(final PapyrusTable table) { - this.table = table; - } - - /** - * - * @see org.eclipse.papyrus.infra.widgets.providers.IStaticContentProvider#getElements() - * - * @return - */ - public Object[] getElements() { - return new Object[0]; - } - - /** - * - * @see org.eclipse.jface.viewers.ITreeContentProvider#getElements(java.lang.Object) - * - * @param inputElement - * @return - */ - public Object[] getElements(final Object inputElement) { - return this.table.getTable().getContext().eClass().getEAllReferences().toArray(); - } - - /** - * - * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object) - * - * @param parentElement - * @return - */ - public Object[] getChildren(final Object parentElement) { - return new Object[0]; - } - - /** - * - * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object) - * - * @param element - * @return - */ - public Object getParent(final Object element) { - return null; - } - - /** - * - * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object) - * - * @param element - * @return - */ - public boolean hasChildren(final Object element) { - return getChildren(element).length != 0; - } - - /** - * - * @see org.eclipse.jface.viewers.IContentProvider#dispose() - * - */ - public void dispose() { - //nothing to do - } - - /** - * - * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) - * - * @param viewer - * @param oldInput - * @param newInput - */ - public void inputChanged(final Viewer viewer, final Object oldInput, final Object newInput) { - //nothing to do - } - - /** - * - * @see org.eclipse.papyrus.infra.widgets.providers.IHierarchicContentProvider#isValidValue(java.lang.Object) - * - * @param element - * @return - */ - public boolean isValidValue(final Object element) { - return true; - } - -} -- cgit v1.2.3