Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-07-02 13:53:20 +0000
committerMarkus Tiede2014-07-02 13:53:20 +0000
commitb9766f6b3fb071164ff7143fce09c400f3bffb35 (patch)
tree3ca9e3a041828c6a2981ab3fd0d86c8776f7f9c9 /org.eclipse.jubula.client.toolkit.ui
parente6f767a99c9c618996df0c52ed506b4d7fbac3ce (diff)
downloadorg.eclipse.jubula.core-b9766f6b3fb071164ff7143fce09c400f3bffb35.tar.gz
org.eclipse.jubula.core-b9766f6b3fb071164ff7143fce09c400f3bffb35.tar.xz
org.eclipse.jubula.core-b9766f6b3fb071164ff7143fce09c400f3bffb35.zip
Non-sprint task - minor refactoring + POC for toolkit hierarchy viewer added.
Diffstat (limited to 'org.eclipse.jubula.client.toolkit.ui')
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/.checkstyle10
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/.classpath7
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/.gitignore2
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/.project34
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/META-INF/MANIFEST.MF18
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/about.html28
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/build.properties15
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/icons/analyzeToolbarA.pngbin0 -> 3452 bytes
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/plugin.properties12
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/plugin.xml16
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/pom.xml20
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/src/org/eclipse/jubula/client/toolkit/ui/Activator.java41
-rw-r--r--org.eclipse.jubula.client.toolkit.ui/src/org/eclipse/jubula/client/toolkit/ui/view/ToolkitOverView.java222
14 files changed, 433 insertions, 0 deletions
diff --git a/org.eclipse.jubula.client.toolkit.ui/.checkstyle b/org.eclipse.jubula.client.toolkit.ui/.checkstyle
new file mode 100644
index 000000000..4323d7f2b
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/.checkstyle
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<fileset-config file-format-version="1.2.0" simple-config="true">
+ <fileset name="all" enabled="true" check-config-name="Jubula" local="false">
+ <file-match-pattern match-pattern="." include-pattern="true"/>
+ </fileset>
+ <filter name="FilesFromPackage" enabled="true">
+ <filter-data value="src/org/eclipse/jubula/client/analyze/ui/i18n"/>
+ </filter>
+</fileset-config>
diff --git a/org.eclipse.jubula.client.toolkit.ui/.classpath b/org.eclipse.jubula.client.toolkit.ui/.classpath
new file mode 100644
index 000000000..098194ca4
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/.classpath
@@ -0,0 +1,7 @@
+<?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/JavaSE-1.7"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.jubula.client.toolkit.ui/.gitignore b/org.eclipse.jubula.client.toolkit.ui/.gitignore
new file mode 100644
index 000000000..934e0e06f
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/.gitignore
@@ -0,0 +1,2 @@
+/bin
+/target
diff --git a/org.eclipse.jubula.client.toolkit.ui/.project b/org.eclipse.jubula.client.toolkit.ui/.project
new file mode 100644
index 000000000..860391ec0
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.jubula.client.toolkit.ui</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>
+ <buildCommand>
+ <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.jubula.client.toolkit.ui/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.jubula.client.toolkit.ui/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 000000000..5e5224eac
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Tue Dec 06 15:30:01 CET 2011
+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.compliance=1.5
+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/org.eclipse.jubula.client.toolkit.ui/META-INF/MANIFEST.MF b/org.eclipse.jubula.client.toolkit.ui/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..2928699f7
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,18 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Jubula Toolkit UI
+Bundle-SymbolicName: org.eclipse.jubula.client.toolkit.ui;singleton:=true
+Bundle-Version: 2.4.0.qualifier
+Bundle-Activator: org.eclipse.jubula.client.toolkit.ui.Activator
+Bundle-Vendor: Eclipse Jubula
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.7.0,4.0.0)",
+ org.eclipse.ui;bundle-version="[3.7.0,4.0.0)",
+ org.eclipse.jubula.tools;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.toolkit.common;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.client.ui;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.client.ui.rcp;bundle-version="[2.4.0,2.5.0)",
+ org.apache.commons.lang;bundle-version="[2.4.0,3.0.0)",
+ org.eclipse.jubula.client.core;bundle-version="[2.4.0,2.5.0)"
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-ActivationPolicy: lazy
diff --git a/org.eclipse.jubula.client.toolkit.ui/about.html b/org.eclipse.jubula.client.toolkit.ui/about.html
new file mode 100644
index 000000000..f1be81099
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/about.html
@@ -0,0 +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 22, 2011</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/org.eclipse.jubula.client.toolkit.ui/build.properties b/org.eclipse.jubula.client.toolkit.ui/build.properties
new file mode 100644
index 000000000..fbfd9a02d
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/build.properties
@@ -0,0 +1,15 @@
+###############################################################################
+# Copyright (c) 2004, 2012 BREDEX GmbH.
+# 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
+###############################################################################
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.properties,\
+ icons/,\
+ plugin.xml,\
+ about.html
diff --git a/org.eclipse.jubula.client.toolkit.ui/icons/analyzeToolbarA.png b/org.eclipse.jubula.client.toolkit.ui/icons/analyzeToolbarA.png
new file mode 100644
index 000000000..51f9e2cc5
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/icons/analyzeToolbarA.png
Binary files differ
diff --git a/org.eclipse.jubula.client.toolkit.ui/plugin.properties b/org.eclipse.jubula.client.toolkit.ui/plugin.properties
new file mode 100644
index 000000000..971a702e4
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/plugin.properties
@@ -0,0 +1,12 @@
+###############################################################################
+# Copyright (c) 2004, 2012 BREDEX GmbH.
+# 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
+###############################################################################
+complexity=Complexity
+numMet=Numerical Metrics
+analysis=Analysis
+analyze=Analyze
+analyzeView=Analyze View \ No newline at end of file
diff --git a/org.eclipse.jubula.client.toolkit.ui/plugin.xml b/org.eclipse.jubula.client.toolkit.ui/plugin.xml
new file mode 100644
index 000000000..a05aff162
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/plugin.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.views">
+ <view
+ allowMultiple="true"
+ category="org.eclipse.jubula.client.views"
+ class="org.eclipse.jubula.client.toolkit.ui.view.ToolkitOverView"
+ id="org.eclipse.jubula.client.toolkit.ui.overView"
+ name="Toolkit Hierarchy"
+ restorable="true">
+ </view>
+ </extension>
+
+</plugin>
diff --git a/org.eclipse.jubula.client.toolkit.ui/pom.xml b/org.eclipse.jubula.client.toolkit.ui/pom.xml
new file mode 100644
index 000000000..a343e9998
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/pom.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2004, 2012 BREDEX GmbH.
+ 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
+ -->
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>org.eclipse.jubula.releng.client</artifactId>
+ <groupId>org.eclipse.jubula</groupId>
+ <version>2.4.0-SNAPSHOT</version>
+ <relativePath>../org.eclipse.jubula.releng.client</relativePath>
+ </parent>
+ <artifactId>org.eclipse.jubula.client.toolkit.ui</artifactId>
+ <packaging>eclipse-plugin</packaging>
+</project>
diff --git a/org.eclipse.jubula.client.toolkit.ui/src/org/eclipse/jubula/client/toolkit/ui/Activator.java b/org.eclipse.jubula.client.toolkit.ui/src/org/eclipse/jubula/client/toolkit/ui/Activator.java
new file mode 100644
index 000000000..3f8c10d53
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/src/org/eclipse/jubula/client/toolkit/ui/Activator.java
@@ -0,0 +1,41 @@
+/*******************************************************************************
+ * Copyright (c) 2014 BREDEX GmbH.
+ * 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:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.toolkit.ui;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+/**
+ * @author BREDEX GmbH
+ */
+public class Activator implements BundleActivator {
+ /**
+ * the context
+ */
+ private static BundleContext context;
+
+ /**
+ * @return the context
+ */
+ static BundleContext getContext() {
+ return context;
+ }
+
+ /** {@inheritDoc} */
+ public void start(BundleContext bundleContext) throws Exception {
+ Activator.context = bundleContext;
+ }
+
+ /** {@inheritDoc} */
+ public void stop(BundleContext bundleContext) throws Exception {
+ Activator.context = null;
+ }
+} \ No newline at end of file
diff --git a/org.eclipse.jubula.client.toolkit.ui/src/org/eclipse/jubula/client/toolkit/ui/view/ToolkitOverView.java b/org.eclipse.jubula.client.toolkit.ui/src/org/eclipse/jubula/client/toolkit/ui/view/ToolkitOverView.java
new file mode 100644
index 000000000..c03a2c4e7
--- /dev/null
+++ b/org.eclipse.jubula.client.toolkit.ui/src/org/eclipse/jubula/client/toolkit/ui/view/ToolkitOverView.java
@@ -0,0 +1,222 @@
+/*******************************************************************************
+ * Copyright (c) 2014 BREDEX GmbH.
+ * 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:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.toolkit.ui.view;
+
+import java.util.Iterator;
+
+import org.apache.commons.lang.ArrayUtils;
+import org.apache.commons.lang.StringUtils;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.jface.viewers.ViewerSorter;
+import org.eclipse.jubula.client.core.utils.StringHelper;
+import org.eclipse.jubula.client.ui.constants.IconConstants;
+import org.eclipse.jubula.client.ui.filter.JBPatternFilter;
+import org.eclipse.jubula.client.ui.rcp.filter.JBFilteredTree;
+import org.eclipse.jubula.client.ui.rcp.provider.contentprovider.AbstractTreeViewContentProvider;
+import org.eclipse.jubula.client.ui.rcp.provider.labelprovider.GeneralLabelProvider;
+import org.eclipse.jubula.toolkit.common.xml.businessprocess.ComponentBuilder;
+import org.eclipse.jubula.tools.i18n.CompSystemI18n;
+import org.eclipse.jubula.tools.xml.businessmodell.Action;
+import org.eclipse.jubula.tools.xml.businessmodell.CompSystem;
+import org.eclipse.jubula.tools.xml.businessmodell.Component;
+import org.eclipse.jubula.tools.xml.businessmodell.ConcreteComponent;
+import org.eclipse.jubula.tools.xml.businessmodell.Param;
+import org.eclipse.jubula.tools.xml.businessmodell.ParamValueSet;
+import org.eclipse.jubula.tools.xml.businessmodell.ToolkitDescriptor;
+import org.eclipse.jubula.tools.xml.businessmodell.ValueSetElement;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.dialogs.FilteredTree;
+import org.eclipse.ui.part.ViewPart;
+
+/**
+ * @author BREDEX GmbH
+ */
+public class ToolkitOverView extends ViewPart {
+ /**
+ * @author BREDEX GmbH
+ */
+ private final class OverViewLabelProvider extends
+ GeneralLabelProvider {
+ /** {@inheritDoc} */
+ public String getText(Object element) {
+ final StringHelper sh = StringHelper.getInstance();
+
+ if (element instanceof ToolkitDescriptor) {
+ ToolkitDescriptor toolkitDescriptor =
+ (ToolkitDescriptor) element;
+ StringBuilder sb = new StringBuilder(
+ toolkitDescriptor.getName());
+ final String parent = toolkitDescriptor.getIncludes();
+ if (!StringUtils.isBlank(parent)) {
+ final ToolkitDescriptor parentDescriptor = COMP_SYSTEM
+ .getToolkitDescriptor(parent);
+ if (parentDescriptor != null) {
+ sb.append(" --> ");
+ sb.append(parentDescriptor.getName());
+ }
+ }
+ return sb.toString();
+
+ } else if (element instanceof Component) {
+ Component component = (Component) element;
+ StringBuilder sb = new StringBuilder(sh.get(
+ component.getType(), true));
+ if (component instanceof ConcreteComponent) {
+ ConcreteComponent concreteComponent =
+ (ConcreteComponent) component;
+ final String componentClass =
+ concreteComponent.getComponentClass();
+ if (!StringUtils.isBlank(componentClass)) {
+ sb.append(" - ");
+ sb.append(componentClass);
+ }
+ }
+ return sb.toString();
+
+ } else if (element instanceof Action) {
+ Action action = (Action) element;
+ return sh.get(action.getName(), true);
+ } else if (element instanceof Param) {
+ Param param = (Param) element;
+ StringBuilder sb = new StringBuilder();
+ sb.append(CompSystemI18n.getString(param.getType()));
+ sb.append(" : ");
+ sb.append(sh.get(param.getName(), true));
+ if (param.hasValueSet()) {
+ sb.append(" [");
+ ParamValueSet valueSet = param.getValueSet();
+ Iterator<ValueSetElement> iterator = valueSet.iterator();
+ while (iterator.hasNext()) {
+ sb.append(CompSystemI18n.getString(iterator.next()
+ .getValue(), true));
+ if (iterator.hasNext()) {
+ sb.append(", ");
+ }
+ }
+ sb.append("]");
+ }
+ return sb.toString();
+
+ }
+ return super.getText(element);
+ }
+
+ /** {@inheritDoc} */
+ public Image getImage(Object element) {
+ if (element instanceof ToolkitDescriptor) {
+ return IconConstants.CATEGORY_IMAGE;
+ }
+ if (element instanceof Component) {
+ if (element instanceof ConcreteComponent) {
+ ConcreteComponent concreteComponent =
+ (ConcreteComponent) element;
+ final String componentClass =
+ concreteComponent.getComponentClass();
+ if (!StringUtils.isBlank(componentClass)) {
+ return IconConstants.TECHNICAL_NAME_IMAGE;
+ }
+ }
+ return IconConstants.LOGICAL_NAME_IMAGE;
+ }
+ if (element instanceof Action) {
+ return IconConstants.CAP_IMAGE;
+ }
+ if (element instanceof Param) {
+ return IconConstants.UP_ARROW_DIS_IMAGE;
+ }
+ return null;
+ }
+ }
+
+ /**
+ * @author BREDEX GmbH
+ */
+ private final class OverViewContentProvider extends
+ AbstractTreeViewContentProvider {
+ /** {@inheritDoc} */
+ public Object[] getChildren(Object parent) {
+ if (parent instanceof CompSystem) {
+ CompSystem compSystem = (CompSystem) parent;
+ return compSystem.getAllToolkitDescriptors()
+ .toArray();
+ }
+ if (parent instanceof ToolkitDescriptor) {
+ ToolkitDescriptor toolkitDescriptor =
+ (ToolkitDescriptor) parent;
+ return COMP_SYSTEM.getComponents(
+ toolkitDescriptor.getToolkitID(), true).toArray();
+ }
+ if (parent instanceof Component) {
+ Component component = (Component) parent;
+ return component.getActions().toArray();
+ }
+ if (parent instanceof Action) {
+ Action action = (Action) parent;
+ return action.getParams().toArray();
+ }
+ return ArrayUtils.EMPTY_OBJECT_ARRAY;
+ }
+
+ /** {@inheritDoc} */
+ public Object getParent(Object element) {
+ return null;
+ }
+ }
+
+ /** the component system instance */
+ private static final CompSystem COMP_SYSTEM = ComponentBuilder
+ .getInstance().getCompSystem();
+
+ /** the viewer */
+ private TreeViewer m_viewer;
+
+ /** Constructor */
+ public ToolkitOverView() {
+ }
+
+ /** {@inheritDoc} */
+ public void createPartControl(Composite parent) {
+ final FilteredTree ft = new JBFilteredTree(parent, SWT.MULTI
+ | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER, new JBPatternFilter(),
+ true);
+ setTreeViewer(ft.getViewer());
+
+ final TreeViewer treeViewer = getTreeViewer();
+ treeViewer.setContentProvider(new OverViewContentProvider());
+ treeViewer.setLabelProvider(new OverViewLabelProvider());
+ treeViewer.setSorter(new ViewerSorter());
+ treeViewer.setInput(COMP_SYSTEM);
+
+ getSite().setSelectionProvider(treeViewer);
+ }
+
+ /**
+ * @return the tree viewer
+ */
+ private TreeViewer getTreeViewer() {
+ return m_viewer;
+ }
+
+ /**
+ * @param viewer
+ * the tree viewer
+ */
+ private void setTreeViewer(TreeViewer viewer) {
+ m_viewer = viewer;
+ }
+
+ /** {@inheritDoc} */
+ public void setFocus() {
+ getTreeViewer().getTree().setFocus();
+ }
+} \ No newline at end of file

Back to the top