Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/emf')
-rw-r--r--examples/emf/org.eclipse.papyrus.outline.emftree/.classpath14
-rw-r--r--examples/emf/org.eclipse.papyrus.outline.emftree/about.html56
-rw-r--r--examples/emf/org.eclipse.papyrus.outline.emftree/build.properties12
-rw-r--r--examples/emf/org.eclipse.papyrus.outline.emftree/plugin.properties24
-rw-r--r--examples/emf/org.eclipse.papyrus.outline.emftree/src/org/eclipse/papyrus/outline/emftree/Activator.java130
-rw-r--r--examples/emf/org.eclipse.papyrus.outline.emftree/src/org/eclipse/papyrus/outline/emftree/MultiPageAdapterSite.java520
6 files changed, 378 insertions, 378 deletions
diff --git a/examples/emf/org.eclipse.papyrus.outline.emftree/.classpath b/examples/emf/org.eclipse.papyrus.outline.emftree/.classpath
index 6e16b23d695..16d067f284a 100644
--- a/examples/emf/org.eclipse.papyrus.outline.emftree/.classpath
+++ b/examples/emf/org.eclipse.papyrus.outline.emftree/.classpath
@@ -1,7 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/examples/emf/org.eclipse.papyrus.outline.emftree/about.html b/examples/emf/org.eclipse.papyrus.outline.emftree/about.html
index 82d49bf5f81..d35d5aed64c 100644
--- a/examples/emf/org.eclipse.papyrus.outline.emftree/about.html
+++ b/examples/emf/org.eclipse.papyrus.outline.emftree/about.html
@@ -1,28 +1,28 @@
-<!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>June 5, 2007</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>
+<!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>June 5, 2007</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>
diff --git a/examples/emf/org.eclipse.papyrus.outline.emftree/build.properties b/examples/emf/org.eclipse.papyrus.outline.emftree/build.properties
index 26f13552e94..e1756978070 100644
--- a/examples/emf/org.eclipse.papyrus.outline.emftree/build.properties
+++ b/examples/emf/org.eclipse.papyrus.outline.emftree/build.properties
@@ -1,6 +1,6 @@
-#
-#Mon Sep 12 09:30:00 CEST 2011
-bin.includes=META-INF/,.,plugin.xml,about.html,plugin.properties
-output.. = bin/
-src.includes = about.html
-source.. = src/
+#
+#Mon Sep 12 09:30:00 CEST 2011
+bin.includes=META-INF/,.,plugin.xml,about.html,plugin.properties
+output.. = bin/
+src.includes = about.html
+source.. = src/
diff --git a/examples/emf/org.eclipse.papyrus.outline.emftree/plugin.properties b/examples/emf/org.eclipse.papyrus.outline.emftree/plugin.properties
index 2da2ec05f23..cb3f34c3656 100644
--- a/examples/emf/org.eclipse.papyrus.outline.emftree/plugin.properties
+++ b/examples/emf/org.eclipse.papyrus.outline.emftree/plugin.properties
@@ -1,12 +1,12 @@
-###############################################################################
-# * 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:
-# * CEA LIST - initial API and implementation
-###############################################################################
-pluginName=Papyrus Outline Example (Incubation)
-providerName=Eclipse Modeling Project
+###############################################################################
+# * 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:
+# * CEA LIST - initial API and implementation
+###############################################################################
+pluginName=Papyrus Outline Example (Incubation)
+providerName=Eclipse Modeling Project
diff --git a/examples/emf/org.eclipse.papyrus.outline.emftree/src/org/eclipse/papyrus/outline/emftree/Activator.java b/examples/emf/org.eclipse.papyrus.outline.emftree/src/org/eclipse/papyrus/outline/emftree/Activator.java
index bf4b2708f87..7457dcac458 100644
--- a/examples/emf/org.eclipse.papyrus.outline.emftree/src/org/eclipse/papyrus/outline/emftree/Activator.java
+++ b/examples/emf/org.eclipse.papyrus.outline.emftree/src/org/eclipse/papyrus/outline/emftree/Activator.java
@@ -1,65 +1,65 @@
-/*****************************************************************************
- * 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:
- * Cedric Dumoulin Cedric.Dumoulin@lifl.fr- Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.outline.emftree;
-
-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.outline.emftree";
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- 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;
- }
-
-}
+/*****************************************************************************
+ * 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:
+ * Cedric Dumoulin Cedric.Dumoulin@lifl.fr- Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.outline.emftree;
+
+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.outline.emftree";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ 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/examples/emf/org.eclipse.papyrus.outline.emftree/src/org/eclipse/papyrus/outline/emftree/MultiPageAdapterSite.java b/examples/emf/org.eclipse.papyrus.outline.emftree/src/org/eclipse/papyrus/outline/emftree/MultiPageAdapterSite.java
index 175fb22796b..780c13531e2 100644
--- a/examples/emf/org.eclipse.papyrus.outline.emftree/src/org/eclipse/papyrus/outline/emftree/MultiPageAdapterSite.java
+++ b/examples/emf/org.eclipse.papyrus.outline.emftree/src/org/eclipse/papyrus/outline/emftree/MultiPageAdapterSite.java
@@ -1,260 +1,260 @@
-/**
- *
- */
-package org.eclipse.papyrus.outline.emftree;
-
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.viewers.ISelectionProvider;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IActionBars;
-import org.eclipse.ui.IEditorActionBarContributor;
-import org.eclipse.ui.IEditorSite;
-import org.eclipse.ui.IKeyBindingService;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.internal.services.INestable;
-import org.eclipse.ui.part.EditorActionBarContributor;
-
-/**
- * A site made of a main site and another ActionarContributor.
- *
- * @author dumoulin
- *
- */
-public class MultiPageAdapterSite implements IEditorSite, INestable {
-
- /**
- * The actionBarContributor to use instead of the one in the site.
- */
- private EditorActionBarContributor actionBarContributor;
-
- /**
- * The site to which methods delegate.
- */
- private IEditorSite site;
-
- /**
- * Constructor.
- *
- * @param workbenchPartSite
- * @param actionBarContributor
- */
- public MultiPageAdapterSite(IEditorSite site, EditorActionBarContributor actionBarContributor) {
- super();
- this.site = site;
- this.actionBarContributor = actionBarContributor;
- }
-
- /**
- * @see org.eclipse.ui.IEditorSite#getActionBarContributor()
- * @return
- *
- */
- public IEditorActionBarContributor getActionBarContributor() {
-
- return actionBarContributor;
- }
-
- /**
- * @see org.eclipse.ui.IEditorSite#getActionBars()
- * @return
- *
- */
- public IActionBars getActionBars() {
- return site.getActionBars();
- }
-
- /**
- * @see org.eclipse.ui.IEditorSite#registerContextMenu(org.eclipse.jface.action.MenuManager, org.eclipse.jface.viewers.ISelectionProvider,
- * boolean)
- * @param menuManager
- * @param selectionProvider
- * @param includeEditorInput
- *
- */
- public void registerContextMenu(MenuManager menuManager, ISelectionProvider selectionProvider, boolean includeEditorInput) {
- site.registerContextMenu(menuManager, selectionProvider, includeEditorInput);
- }
-
- /**
- * @see org.eclipse.ui.IEditorSite#registerContextMenu(java.lang.String, org.eclipse.jface.action.MenuManager,
- * org.eclipse.jface.viewers.ISelectionProvider, boolean)
- * @param menuId
- * @param menuManager
- * @param selectionProvider
- * @param includeEditorInput
- *
- */
- public void registerContextMenu(String menuId, MenuManager menuManager, ISelectionProvider selectionProvider, boolean includeEditorInput) {
- site.registerContextMenu(menuId, menuManager, selectionProvider, includeEditorInput);
-
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchPartSite#getId()
- * @return
- *
- */
- public String getId() {
- return site.getId();
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchPartSite#getKeyBindingService()
- * @return
- * @deprecated
- *
- */
- public IKeyBindingService getKeyBindingService() {
- return site.getKeyBindingService();
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchPartSite#getPart()
- * @return
- *
- */
- public IWorkbenchPart getPart() {
- return site.getPart();
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchPartSite#getPluginId()
- * @return
- *
- */
- public String getPluginId() {
- return site.getPluginId();
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchPartSite#getRegisteredName()
- * @return
- *
- */
- public String getRegisteredName() {
- return site.getRegisteredName();
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchPartSite#registerContextMenu(org.eclipse.jface.action.MenuManager, org.eclipse.jface.viewers.ISelectionProvider)
- * @param menuManager
- * @param selectionProvider
- *
- */
- public void registerContextMenu(MenuManager menuManager, ISelectionProvider selectionProvider) {
- site.registerContextMenu(menuManager, selectionProvider);
-
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchPartSite#registerContextMenu(java.lang.String, org.eclipse.jface.action.MenuManager,
- * org.eclipse.jface.viewers.ISelectionProvider)
- * @param menuId
- * @param menuManager
- * @param selectionProvider
- *
- */
- public void registerContextMenu(String menuId, MenuManager menuManager, ISelectionProvider selectionProvider) {
- site.registerContextMenu(menuId, menuManager, selectionProvider);
-
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchSite#getPage()
- * @return
- *
- */
- public IWorkbenchPage getPage() {
- return site.getPage();
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchSite#getSelectionProvider()
- * @return
- *
- */
- public ISelectionProvider getSelectionProvider() {
- return site.getSelectionProvider();
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchSite#getShell()
- * @return
- *
- */
- public Shell getShell() {
- return site.getShell();
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchSite#getWorkbenchWindow()
- * @return
- *
- */
- public IWorkbenchWindow getWorkbenchWindow() {
- return site.getWorkbenchWindow();
- }
-
- /**
- * @see org.eclipse.ui.IWorkbenchSite#setSelectionProvider(org.eclipse.jface.viewers.ISelectionProvider)
- * @param provider
- *
- */
- public void setSelectionProvider(ISelectionProvider provider) {
- site.setSelectionProvider(provider);
-
- }
-
- /**
- * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
- * @param adapter
- * @return
- *
- */
- public Object getAdapter(Class adapter) {
- return site.getAdapter(adapter);
- }
-
- /**
- * @see org.eclipse.ui.services.IServiceLocator#getService(java.lang.Class)
- * @param api
- * @return
- *
- */
- public Object getService(Class api) {
- return site.getService(api);
- }
-
- /**
- * @see org.eclipse.ui.services.IServiceLocator#hasService(java.lang.Class)
- * @param api
- * @return
- *
- */
- public boolean hasService(Class api) {
- return site.hasService(api);
- }
-
- /**
- *
- * @see org.eclipse.ui.internal.services.INestable#activate()
- *
- */
- public void activate() {
- if(site instanceof INestable)
- ((INestable)site).activate();
- }
-
- /**
- *
- * @see org.eclipse.ui.internal.services.INestable#deactivate()
- *
- */
- public void deactivate() {
- if(site instanceof INestable)
- ((INestable)site).deactivate();
- }
-
-}
+/**
+ *
+ */
+package org.eclipse.papyrus.outline.emftree;
+
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.viewers.ISelectionProvider;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IActionBars;
+import org.eclipse.ui.IEditorActionBarContributor;
+import org.eclipse.ui.IEditorSite;
+import org.eclipse.ui.IKeyBindingService;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.internal.services.INestable;
+import org.eclipse.ui.part.EditorActionBarContributor;
+
+/**
+ * A site made of a main site and another ActionarContributor.
+ *
+ * @author dumoulin
+ *
+ */
+public class MultiPageAdapterSite implements IEditorSite, INestable {
+
+ /**
+ * The actionBarContributor to use instead of the one in the site.
+ */
+ private EditorActionBarContributor actionBarContributor;
+
+ /**
+ * The site to which methods delegate.
+ */
+ private IEditorSite site;
+
+ /**
+ * Constructor.
+ *
+ * @param workbenchPartSite
+ * @param actionBarContributor
+ */
+ public MultiPageAdapterSite(IEditorSite site, EditorActionBarContributor actionBarContributor) {
+ super();
+ this.site = site;
+ this.actionBarContributor = actionBarContributor;
+ }
+
+ /**
+ * @see org.eclipse.ui.IEditorSite#getActionBarContributor()
+ * @return
+ *
+ */
+ public IEditorActionBarContributor getActionBarContributor() {
+
+ return actionBarContributor;
+ }
+
+ /**
+ * @see org.eclipse.ui.IEditorSite#getActionBars()
+ * @return
+ *
+ */
+ public IActionBars getActionBars() {
+ return site.getActionBars();
+ }
+
+ /**
+ * @see org.eclipse.ui.IEditorSite#registerContextMenu(org.eclipse.jface.action.MenuManager, org.eclipse.jface.viewers.ISelectionProvider,
+ * boolean)
+ * @param menuManager
+ * @param selectionProvider
+ * @param includeEditorInput
+ *
+ */
+ public void registerContextMenu(MenuManager menuManager, ISelectionProvider selectionProvider, boolean includeEditorInput) {
+ site.registerContextMenu(menuManager, selectionProvider, includeEditorInput);
+ }
+
+ /**
+ * @see org.eclipse.ui.IEditorSite#registerContextMenu(java.lang.String, org.eclipse.jface.action.MenuManager,
+ * org.eclipse.jface.viewers.ISelectionProvider, boolean)
+ * @param menuId
+ * @param menuManager
+ * @param selectionProvider
+ * @param includeEditorInput
+ *
+ */
+ public void registerContextMenu(String menuId, MenuManager menuManager, ISelectionProvider selectionProvider, boolean includeEditorInput) {
+ site.registerContextMenu(menuId, menuManager, selectionProvider, includeEditorInput);
+
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchPartSite#getId()
+ * @return
+ *
+ */
+ public String getId() {
+ return site.getId();
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchPartSite#getKeyBindingService()
+ * @return
+ * @deprecated
+ *
+ */
+ public IKeyBindingService getKeyBindingService() {
+ return site.getKeyBindingService();
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchPartSite#getPart()
+ * @return
+ *
+ */
+ public IWorkbenchPart getPart() {
+ return site.getPart();
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchPartSite#getPluginId()
+ * @return
+ *
+ */
+ public String getPluginId() {
+ return site.getPluginId();
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchPartSite#getRegisteredName()
+ * @return
+ *
+ */
+ public String getRegisteredName() {
+ return site.getRegisteredName();
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchPartSite#registerContextMenu(org.eclipse.jface.action.MenuManager, org.eclipse.jface.viewers.ISelectionProvider)
+ * @param menuManager
+ * @param selectionProvider
+ *
+ */
+ public void registerContextMenu(MenuManager menuManager, ISelectionProvider selectionProvider) {
+ site.registerContextMenu(menuManager, selectionProvider);
+
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchPartSite#registerContextMenu(java.lang.String, org.eclipse.jface.action.MenuManager,
+ * org.eclipse.jface.viewers.ISelectionProvider)
+ * @param menuId
+ * @param menuManager
+ * @param selectionProvider
+ *
+ */
+ public void registerContextMenu(String menuId, MenuManager menuManager, ISelectionProvider selectionProvider) {
+ site.registerContextMenu(menuId, menuManager, selectionProvider);
+
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchSite#getPage()
+ * @return
+ *
+ */
+ public IWorkbenchPage getPage() {
+ return site.getPage();
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchSite#getSelectionProvider()
+ * @return
+ *
+ */
+ public ISelectionProvider getSelectionProvider() {
+ return site.getSelectionProvider();
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchSite#getShell()
+ * @return
+ *
+ */
+ public Shell getShell() {
+ return site.getShell();
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchSite#getWorkbenchWindow()
+ * @return
+ *
+ */
+ public IWorkbenchWindow getWorkbenchWindow() {
+ return site.getWorkbenchWindow();
+ }
+
+ /**
+ * @see org.eclipse.ui.IWorkbenchSite#setSelectionProvider(org.eclipse.jface.viewers.ISelectionProvider)
+ * @param provider
+ *
+ */
+ public void setSelectionProvider(ISelectionProvider provider) {
+ site.setSelectionProvider(provider);
+
+ }
+
+ /**
+ * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
+ * @param adapter
+ * @return
+ *
+ */
+ public Object getAdapter(Class adapter) {
+ return site.getAdapter(adapter);
+ }
+
+ /**
+ * @see org.eclipse.ui.services.IServiceLocator#getService(java.lang.Class)
+ * @param api
+ * @return
+ *
+ */
+ public Object getService(Class api) {
+ return site.getService(api);
+ }
+
+ /**
+ * @see org.eclipse.ui.services.IServiceLocator#hasService(java.lang.Class)
+ * @param api
+ * @return
+ *
+ */
+ public boolean hasService(Class api) {
+ return site.hasService(api);
+ }
+
+ /**
+ *
+ * @see org.eclipse.ui.internal.services.INestable#activate()
+ *
+ */
+ public void activate() {
+ if(site instanceof INestable)
+ ((INestable)site).activate();
+ }
+
+ /**
+ *
+ * @see org.eclipse.ui.internal.services.INestable#deactivate()
+ *
+ */
+ public void deactivate() {
+ if(site instanceof INestable)
+ ((INestable)site).deactivate();
+ }
+
+}

Back to the top