Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Wouters2014-04-04 14:05:11 +0000
committerLaurent Wouters2014-04-04 14:05:11 +0000
commit7c09eba374e3fc95b8e869cccbcf6ef3a0aab45d (patch)
tree46dcf4af5afa9514feaf8136c333696642c030d8
parente7f2ea4f124c280535ff1ac820c4058b9e77e502 (diff)
downloadorg.eclipse.papyrus-7c09eba374e3fc95b8e869cccbcf6ef3a0aab45d.tar.gz
org.eclipse.papyrus-7c09eba374e3fc95b8e869cccbcf6ef3a0aab45d.tar.xz
org.eclipse.papyrus-7c09eba374e3fc95b8e869cccbcf6ef3a0aab45d.zip
[clean] Retiring org.eclipse.papyrus.views.properties.tabbedproperties.corelast/org.eclipse.papyrus.views.properties.tabbedproperties.core
Signed-off-by: Laurent Wouters <laurent.wouters@cea.fr>
-rw-r--r--deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/.classpath7
-rw-r--r--deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/.project28
-rw-r--r--deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/META-INF/MANIFEST.MF16
-rw-r--r--deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/about.html28
-rw-r--r--deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/build.properties7
-rw-r--r--deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/plugin.properties12
-rw-r--r--deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/plugin.xml16
-rw-r--r--deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/src/org/eclipse/papyrus/views/properties/tabbedproperties/core/Activator.java95
-rw-r--r--deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/src/org/eclipse/papyrus/views/properties/tabbedproperties/core/providers/EMFObjectLabelProvider.java160
9 files changed, 0 insertions, 369 deletions
diff --git a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/.classpath b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/.classpath
deleted file mode 100644
index 2d1a4302f04..00000000000
--- a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/.project b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/.project
deleted file mode 100644
index 657890eb11c..00000000000
--- a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.views.properties.tabbedproperties.core</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/META-INF/MANIFEST.MF b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/META-INF/MANIFEST.MF
deleted file mode 100644
index 9a75a9a211d..00000000000
--- a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,16 +0,0 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.emf.edit.ui;bundle-version="2.4.0",
- org.eclipse.papyrus.infra.core;bundle-version="0.9.0",
- org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.5.0"
-Export-Package: org.eclipse.papyrus.views.properties.tabbedproperties.core,
- org.eclipse.papyrus.views.properties.tabbedproperties.core.providers
-Bundle-Vendor: %providerName
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 0.9.0.qualifier
-Bundle-Localization: plugin
-Bundle-Name: %pluginName
-Bundle-ManifestVersion: 2
-Bundle-Activator: org.eclipse.papyrus.views.properties.tabbedproperties.core.Activator
-Bundle-SymbolicName: org.eclipse.papyrus.views.properties.tabbedproperties.core;singleton:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-
diff --git a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/about.html b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/about.html
deleted file mode 100644
index 209103075a7..00000000000
--- a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>November 14, 2008</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) 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 <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
-
-</body>
-</html> \ No newline at end of file
diff --git a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/build.properties b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/build.properties
deleted file mode 100644
index 282fed47ea1..00000000000
--- a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/build.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-#
-#Mon Sep 12 09:30:18 CEST 2011
-bin.includes=META-INF/,.,plugin.properties,about.html,plugin.xml,build.properties
-output..=bin/
-src.includes=about.html,META-INF/,.,plugin.properties,plugin.xml,build.properties
-source..=src/
-bin..=bin/
diff --git a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/plugin.properties b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/plugin.properties
deleted file mode 100644
index 26bfbb06fd2..00000000000
--- a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/plugin.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-#################################################################################
-# Copyright (c) 2008 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:
-# Remi Schnekenburger - CEA LIST (remi.schnekenburger@cea.fr) - Initial API and implementation
-##################################################################################
-pluginName=Papyrus Core Tabbed Properties (Incubation)
-providerName=Eclipse Modeling Project
diff --git a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/plugin.xml b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/plugin.xml
deleted file mode 100644
index 5e4319bc4fe..00000000000
--- a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/plugin.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
-
- <extension point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
- <propertyTabs contributorId="TreeOutlinePage">
- <propertyTab id="Base" label="General" category="org.eclipse.papyrus" afterTab=""/>
- <propertyTab id="org.eclipse.papyrus.tabbedproperties.profile" label="Profile" category="org.eclipse.papyrus" afterTab="Base" />
- <propertyTab id="Comments" label="Comments" category="org.eclipse.papyrus" afterTab="org.eclipse.papyrus.tabbedproperties.profile"/>
- <propertyTab id="org.eclipse.papyrus.tabbedproperties.appearance.appearancetab" label="Appearance" category="org.eclipse.papyrus" afterTab="Comments"/>
- <propertyTab id="advanced" label="Advanced" category="org.eclipse.papyrus" afterTab="org.eclipse.papyrus.tabbedproperties.appearance.appearancetab"/>
- </propertyTabs>
- </extension>
-
-
-</plugin>
diff --git a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/src/org/eclipse/papyrus/views/properties/tabbedproperties/core/Activator.java b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/src/org/eclipse/papyrus/views/properties/tabbedproperties/core/Activator.java
deleted file mode 100644
index c8480cc2c99..00000000000
--- a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/src/org/eclipse/papyrus/views/properties/tabbedproperties/core/Activator.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Remi Schnekenburger (CEA LIST) Remi.Schnekenburger@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.views.properties.tabbedproperties.core;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-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 {
-
- /** Plugin id */
- public static final String PLUGIN_ID = "org.eclipse.papyrus.views.properties.tabbedproperties.core"; //$NON-NLS-1$
-
- /**
- * singleton instance of this plugin.
- */
- private static Activator plugin;
-
- /**
- * Creates a new Activator.
- */
- public Activator() {
- plugin = this;
- }
-
- /**
- * {@inheritDoc}
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- }
-
- /**
- * {@inheritDoc}
- */
- 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;
- }
-
- /**
- * Logs an error into the plugin's log
- *
- * @param string
- * the message of the error
- */
- public static void logWarning(String string) {
- getDefault().getLog().log(new Status(IStatus.WARNING, PLUGIN_ID, string));
- }
-
- /**
- * Logs an error into the plugin's log
- *
- * @param string
- * the message of the error
- */
- public static void logError(String string) {
- getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, string));
- }
-
- /**
- * Logs an exception into the plugin's log
- *
- * @param exception
- * the exception to log
- */
- public static void logException(Exception exception) {
- getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, exception.getLocalizedMessage(), exception));
- }
-
-}
diff --git a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/src/org/eclipse/papyrus/views/properties/tabbedproperties/core/providers/EMFObjectLabelProvider.java b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/src/org/eclipse/papyrus/views/properties/tabbedproperties/core/providers/EMFObjectLabelProvider.java
deleted file mode 100644
index e13f0c096f9..00000000000
--- a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.tabbedproperties.core/src/org/eclipse/papyrus/views/properties/tabbedproperties/core/providers/EMFObjectLabelProvider.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.papyrus.views.properties.tabbedproperties.core.providers;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory;
-import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * This class handles title label for tabbed properties.
- *
- * @author Jerome Benois
- */
-public class EMFObjectLabelProvider extends AdapterFactoryLabelProvider implements ILabelProvider {
-
- private static final Class<?> IItemLabelProviderClass = IItemLabelProvider.class;
-
- private static Map<String, AdapterFactory> factories = new HashMap<String, AdapterFactory>();
-
- private static final String EXT_FACTORIES = "org.eclipse.emf.edit.itemProviderAdapterFactories"; //$NON-NLS-1$
-
- public EMFObjectLabelProvider() {
- super(new ReflectiveItemProviderAdapterFactory());
- }
-
- @Override
- public String getText(Object element) {
- String title = ""; //$NON-NLS-1$
- EObject eObject = getModel(element);
- IItemLabelProvider itemLabelProvider = getItemLabelProvider(eObject);
- if(itemLabelProvider != null) {
- title = itemLabelProvider.getText(eObject);
- }
-
- if("".equals(title)) { //$NON-NLS-1$
- title = super.getText(eObject);
- }
-
- return title;
- }
-
- @Override
- public Image getImage(Object element) {
- Image result = null;
- EObject eObject = getModel(element);
- IItemLabelProvider itemLabelProvider = getItemLabelProvider(eObject);
- if(itemLabelProvider != null) {
- result = getImageFromObject(itemLabelProvider.getImage(eObject));
- }
-
- return result;
- }
-
- private EObject getModel(Object element) {
- EObject eObject = null;
- if(element != null && element instanceof StructuredSelection) {
- StructuredSelection selection = (StructuredSelection)element;
- Object o = selection.getFirstElement();
- eObject = resolveSemanticObject(o);
- if(o instanceof IGraphicalEditPart) {
- IGraphicalEditPart editPart = (IGraphicalEditPart)o;
- eObject = editPart.resolveSemanticElement();
- }
- }
- return eObject;
- }
-
- /**
- * Resolve semantic element
- *
- * @param object
- * the object to resolve
- * @return <code>null</code> or the semantic element associated to the specified object
- */
- private EObject resolveSemanticObject(Object object) {
- if(object instanceof EObject) {
- return (EObject)object;
- } else if(object instanceof IAdaptable) {
- IAdaptable adaptable = (IAdaptable)object;
- if(adaptable.getAdapter(EObject.class) != null) {
- return (EObject)adaptable.getAdapter(EObject.class);
- }
- }
- return null;
- }
-
- private IItemLabelProvider getItemLabelProvider(EObject eObject) {
- IItemLabelProvider itemLabelProvider = null;
- if(eObject != null) {
- AdapterFactory adapterFactory = getEditFactory(eObject);
- if(adapterFactory != null) {
- return (IItemLabelProvider)adapterFactory.adapt(eObject, IItemLabelProviderClass);
- }
- }
- return itemLabelProvider;
- }
-
- /**
- * Gets the edit factory.
- *
- * @param eobject
- * the eobject
- *
- * @return the edits the factory
- */
- public static AdapterFactory getEditFactory(EObject eobject) {
- String uri = eobject.eClass().getEPackage().getNsURI();
- return getFactory(uri);
- }
-
- /**
- * Gets the factory from uri.
- *
- * @param uri
- * the uri
- *
- * @return the factory
- */
- public static AdapterFactory getFactory(String uri) {
- AdapterFactory factory = factories.get(uri);
- if(factory == null) {
- IConfigurationElement[] extensions = Platform.getExtensionRegistry().getConfigurationElementsFor(EXT_FACTORIES);
- for(IConfigurationElement e : extensions) {
- if(uri.equals(e.getAttribute("uri"))) { //$NON-NLS-1$
- try {
- factory = (AdapterFactory)e.createExecutableExtension("class"); //$NON-NLS-1$
- if(factory != null) {
- factories.put(uri, factory);
- }
- } catch (CoreException e1) {
- // do nothing
- }
- }
- }
- }
- return factory;
- }
-
-}

Back to the top