Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2012-02-28 05:27:03 -0500
committerMarkus Tiede2012-02-28 05:27:03 -0500
commitdae27fbc7cd9a1c212d0cc36be7c493ac0dfcbb9 (patch)
tree166b65b5aa0fde2f92341b9fb0fb4189b8539df9 /org.eclipse.jubula.client.analyze.impl.standard
parent963b9bfdec69291312f43593ab7e98ea85445b84 (diff)
downloadorg.eclipse.jubula.core-dae27fbc7cd9a1c212d0cc36be7c493ac0dfcbb9.tar.gz
org.eclipse.jubula.core-dae27fbc7cd9a1c212d0cc36be7c493ac0dfcbb9.tar.xz
org.eclipse.jubula.core-dae27fbc7cd9a1c212d0cc36be7c493ac0dfcbb9.zip
Initial source check-in for CQ 6190 and enhancement 370427.
Diffstat (limited to 'org.eclipse.jubula.client.analyze.impl.standard')
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/.checkstyle10
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/.classpath7
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/.gitignore2
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/.project34
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/META-INF/MANIFEST.MF14
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/build.properties13
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/plugin.properties9
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/plugin.xml92
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/pom.xml22
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/Activator.java60
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/analyze/NumericalProjectElementCounter.java176
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/analyze/helper/AnalyzeInputHelper.java43
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/CapCX.java34
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/CategoryCX.java34
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ComponentNameCX.java23
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ExecObjContCX.java35
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ExecTestCaseCX.java35
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ProjectCX.java34
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ProjectLoadedCX.java35
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/RefTestSuiteCX.java24
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SimpleCount.java32
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SpecObjContCX.java35
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SpecTestCaseCX.java34
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/TestJobCX.java35
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/TestSuiteCX.java35
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/i18n/Messages.java35
-rw-r--r--org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/i18n/messages.properties2
29 files changed, 959 insertions, 0 deletions
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/.checkstyle b/org.eclipse.jubula.client.analyze.impl.standard/.checkstyle
new file mode 100644
index 000000000..98fa5399c
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/.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/impl/standard/i18n"/>
+ </filter>
+</fileset-config>
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/.classpath b/org.eclipse.jubula.client.analyze.impl.standard/.classpath
new file mode 100644
index 000000000..64c5e31b7
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/.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/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/org.eclipse.jubula.client.analyze.impl.standard/.gitignore b/org.eclipse.jubula.client.analyze.impl.standard/.gitignore
new file mode 100644
index 000000000..934e0e06f
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/.gitignore
@@ -0,0 +1,2 @@
+/bin
+/target
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/.project b/org.eclipse.jubula.client.analyze.impl.standard/.project
new file mode 100644
index 000000000..df4a9be78
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.jubula.client.analyze.impl.standard</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.analyze.impl.standard/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.jubula.client.analyze.impl.standard/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 000000000..3949f423e
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,12 @@
+#Tue Jan 03 10:30:09 CET 2012
+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/org.eclipse.jubula.client.analyze.impl.standard/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.jubula.client.analyze.impl.standard/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 000000000..6fbcc194f
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Tue Jan 03 10:30:09 CET 2012
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/META-INF/MANIFEST.MF b/org.eclipse.jubula.client.analyze.impl.standard/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..dec8c5f60
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/META-INF/MANIFEST.MF
@@ -0,0 +1,14 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Jubula Analyze Core
+Bundle-SymbolicName: org.eclipse.jubula.client.analyze.impl.standard;singleton:=true
+Bundle-Version: 1.2.0.qualifier
+Bundle-Activator: org.eclipse.jubula.client.analyze.impl.standard.Activator
+Bundle-Vendor: BREDEX GmbH
+Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.7.0.v20110110,4.0.0)",
+ org.eclipse.jubula.client.analyze;bundle-version="[1.2.0,1.3.0)",
+ org.eclipse.jubula.client.core;bundle-version="[1.2.0,1.3.0)",
+ org.eclipse.jubula.client.ui.rcp;bundle-version="[1.2.0,1.3.0)"
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-ActivationPolicy: lazy
+Bundle-Localization: plugin
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/build.properties b/org.eclipse.jubula.client.analyze.impl.standard/build.properties
new file mode 100644
index 000000000..472a95e21
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/build.properties
@@ -0,0 +1,13 @@
+###############################################################################
+# 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.xml,\
+ plugin.properties
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/plugin.properties b/org.eclipse.jubula.client.analyze.impl.standard/plugin.properties
new file mode 100644
index 000000000..ef5368f36
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/plugin.properties
@@ -0,0 +1,9 @@
+###############################################################################
+# 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
+###############################################################################
+bxSimpleCount=BX Simple Count
+analyzeParam1=AnalyzeParameter 1 \ No newline at end of file
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/plugin.xml b/org.eclipse.jubula.client.analyze.impl.standard/plugin.xml
new file mode 100644
index 000000000..13023a9ca
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/plugin.xml
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<!--
+ 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
+ -->
+<plugin>
+ <extension
+ point="org.eclipse.jubula.client.analyze.definition">
+ <Category
+ id="numMet"
+ name="Numerical Metrics">
+ </Category>
+ <Analyze
+ CategoryID="numMet"
+ ContextType="testsuite, project, exectestcase, spectestcase, execobjcont, testjob, cap ,category, specobjcont, projectLoaded, reftestsuite, componentname"
+ ResultType="tableResultMap"
+ class="org.eclipse.jubula.client.analyze.impl.standard.analyze.NumericalProjectElementCounter"
+ id="countSpecifiedTC"
+ name="Numeric Project Element Counter">
+ </Analyze>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.ProjectCX"
+ id="project"
+ name="Project">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.SimpleCount"
+ id="sc"
+ name="simpleC">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.TestSuiteCX"
+ id="testsuite"
+ name="TestSuite">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.TestJobCX"
+ id="testjob"
+ name="TestJob">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.ExecTestCaseCX"
+ id="exectestcase"
+ name="ExecTestCase">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.SpecTestCaseCX"
+ id="spectestcase"
+ name="SpecTestCase">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.CapCX"
+ id="cap"
+ name="TestStep">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.CategoryCX"
+ id="category"
+ name="Category">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.SpecObjContCX"
+ id="specobjcont"
+ name="SpecObjCont">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.ExecObjContCX"
+ id="execobjcont"
+ name="ExecObjCont">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.ProjectLoadedCX"
+ id="projectloaded"
+ name="Project Loaded">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.RefTestSuiteCX"
+ id="reftestsuite"
+ name="RefTestSuite">
+ </Context>
+ <Context
+ class="org.eclipse.jubula.client.analyze.impl.standard.context.ComponentNameCX"
+ id="componentname"
+ name="ComponentName">
+ </Context>
+ </extension>
+
+</plugin>
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/pom.xml b/org.eclipse.jubula.client.analyze.impl.standard/pom.xml
new file mode 100644
index 000000000..3ff0f8d14
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/pom.xml
@@ -0,0 +1,22 @@
+<?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>com.bredexsw.guidancer.project.configuration</artifactId>
+ <groupId>com.bredexsw.guidancer</groupId>
+ <version>6.0.0-SNAPSHOT</version>
+ <relativePath>../com.bredexsw.guidancer.project.configuration</relativePath>
+ </parent>
+ <groupId>org.eclipse.jubula</groupId>
+ <artifactId>org.eclipse.jubula.client.analyze.impl.standard</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project>
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/Activator.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/Activator.java
new file mode 100644
index 000000000..25326d42b
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/Activator.java
@@ -0,0 +1,60 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+/**
+ *
+ * @author volker
+ *
+ */
+public class Activator implements BundleActivator {
+/**
+ *
+ */
+ private static BundleContext context;
+/**
+ *
+ * @return context
+ */
+ static BundleContext getContext() {
+ return context;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext
+ * )
+ */
+ /**
+ * @param bundleContext bundleContext
+ */
+ public void start(BundleContext bundleContext) throws Exception {
+ Activator.context = bundleContext;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ /**
+ * @param bundleContext bundleContext
+ */
+ public void stop(BundleContext bundleContext) throws Exception {
+ Activator.context = null;
+ }
+
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/analyze/NumericalProjectElementCounter.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/analyze/NumericalProjectElementCounter.java
new file mode 100644
index 000000000..ac7ba57cb
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/analyze/NumericalProjectElementCounter.java
@@ -0,0 +1,176 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.analyze;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.jubula.client.analyze.definition.IAnalyze;
+import org.eclipse.jubula.client.analyze.internal.AnalyzeParameter;
+import org.eclipse.jubula.client.analyze.internal.AnalyzeResult;
+import org.eclipse.jubula.client.core.model.ICapPO;
+import org.eclipse.jubula.client.core.model.ICategoryPO;
+import org.eclipse.jubula.client.core.model.IComponentNamePO;
+import org.eclipse.jubula.client.core.model.IExecTestCasePO;
+import org.eclipse.jubula.client.core.model.INodePO;
+import org.eclipse.jubula.client.core.model.IProjectPO;
+import org.eclipse.jubula.client.core.model.IRefTestSuitePO;
+import org.eclipse.jubula.client.core.model.ISpecTestCasePO;
+import org.eclipse.jubula.client.core.model.ITestJobPO;
+import org.eclipse.jubula.client.core.model.ITestSuitePO;
+import org.eclipse.jubula.client.core.persistence.GeneralStorage;
+import org.eclipse.jubula.client.core.persistence.NodePM;
+import org.eclipse.jubula.client.core.utils.AbstractNonPostOperatingTreeNodeOperation;
+import org.eclipse.jubula.client.core.utils.ITreeTraverserContext;
+import org.eclipse.jubula.client.core.utils.TreeTraverser;
+
+/**
+ * This Analyze counts the different Elements, that are used in a TestProject.
+ * It uses the TreeTraverser to traverse the Tree from the given node top-down.
+ * Every Node is checked relating to his type. These TypeAmounts are counted ad
+ * returned when the TreeTraverser has finished.
+ *
+ * @author volker
+ *
+ */
+public class NumericalProjectElementCounter implements IAnalyze {
+ /**
+ * The CountElementOperation which is given to the TreeTraverser
+ * @author volker
+ */
+ static class CountElementOperation extends
+ AbstractNonPostOperatingTreeNodeOperation<INodePO> {
+ /**
+ * This Map is used to save the amount of the different NodeTypes
+ */
+ private Map<Class<? extends INodePO>, Integer> m_amount =
+ new HashMap<Class<? extends INodePO>, Integer>();
+
+ /** The given ProgressMonitor */
+ private IProgressMonitor m_pm;
+
+ /**
+ * The Constructor of the CountElementOperation
+ * @param monitor
+ * The given ProgressMonitor
+ */
+ public CountElementOperation(IProgressMonitor monitor) {
+ setProgressMonitor(monitor);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean operate(ITreeTraverserContext<INodePO> ctx,
+ INodePO parent, INodePO node, boolean alreadyVisited) {
+
+ Class<? extends INodePO> nodeType = null;
+ if (node instanceof ICategoryPO || node instanceof ISpecTestCasePO
+ || node instanceof ICapPO || node instanceof ITestSuitePO
+ || node instanceof IExecTestCasePO
+ || node instanceof ITestJobPO
+ || node instanceof IRefTestSuitePO
+ || node instanceof IComponentNamePO) {
+ nodeType = node.getClass();
+ }
+ if (nodeType != null) {
+ Integer ccount = getAmount().get(nodeType);
+ if (ccount == null) {
+ ccount = new Integer(0);
+ }
+ Integer nCount = ccount + 1;
+ getAmount().put(nodeType, nCount);
+
+ getProgressMonitor().worked(1);
+ if (getProgressMonitor().isCanceled()) {
+ getProgressMonitor().done();
+ throw new OperationCanceledException();
+ }
+ }
+ return !alreadyVisited;
+ }
+
+ /**
+ * @return The AmountMap containing the amounts of the different NodeTypes
+ */
+ public Map<Class<? extends INodePO>, Integer> getAmount() {
+ return m_amount;
+ }
+
+ /**
+ * @return The ProgressMonitor
+ */
+ public IProgressMonitor getProgressMonitor() {
+ return m_pm;
+ }
+
+ /**
+ * @param monitor
+ * The given ProgressMonitor
+ */
+ public void setProgressMonitor(IProgressMonitor monitor) {
+ this.m_pm = monitor;
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public AnalyzeResult execute(Object obj, IProgressMonitor monitor,
+ String resultType, List<AnalyzeParameter> param,
+ String analyzeName) {
+ int workAmount = 1;
+ // get the number of nodes from the NodePersistenceManager to have a
+ // representative workAmount value for the ProgressMonitor
+ if (obj instanceof IProjectPO) {
+ workAmount = (int) NodePM.getNumNodes(((IProjectPO) obj).getId(),
+ GeneralStorage.getInstance().getMasterSession());
+ } else if (obj instanceof INodePO) {
+ workAmount = (int) NodePM.getNumNodes(((INodePO) obj)
+ .getParentProjectId(), GeneralStorage.getInstance().
+ getMasterSession());
+ }
+ monitor.beginTask("", workAmount);
+ monitor.subTask(analyzeName);
+
+ CountElementOperation c = new CountElementOperation(monitor);
+ traverse(c, obj);
+
+ monitor.worked(1);
+ if (monitor.isCanceled()) {
+ monitor.done();
+ throw new OperationCanceledException();
+ }
+ return new AnalyzeResult(resultType, c.getAmount());
+ }
+
+ /**
+ * Creates a new instance of the TreeTraverser, adds the given Operation and
+ * traverses
+ *
+ * @param count
+ * The instance of CountElementOperation
+ * @param obj
+ * The given selection
+ */
+ private void traverse(CountElementOperation count, Object obj) {
+
+ if (obj instanceof INodePO) {
+ final INodePO root = (INodePO) obj;
+ TreeTraverser tt = new TreeTraverser(root);
+ tt.addOperation(count);
+ tt.traverse();
+ }
+ }
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/analyze/helper/AnalyzeInputHelper.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/analyze/helper/AnalyzeInputHelper.java
new file mode 100644
index 000000000..8b35e59eb
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/analyze/helper/AnalyzeInputHelper.java
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+
+package org.eclipse.jubula.client.analyze.impl.standard.analyze.helper;
+
+import org.eclipse.jubula.client.core.model.INodePO;
+
+/**
+ * A Helperclass to manage the Input for an Analyze
+ * @author volker
+ *
+ */
+public class AnalyzeInputHelper {
+
+ /** The node which is going to be the "RootNode" */
+ private static INodePO root;
+
+ /** Empty Constructor */
+ private AnalyzeInputHelper() {
+ }
+
+ /**
+ * @return The Node which is set as the "RootNode"
+ */
+ public static INodePO getNode() {
+ return root;
+ }
+
+ /**
+ * @param node The Node which is going to be set as the "RootNode"
+ */
+ public static void setNode(INodePO node) {
+ root = node;
+ }
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/CapCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/CapCX.java
new file mode 100644
index 000000000..d38a32db7
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/CapCX.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.ICapPO;
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class CapCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is a TestStep
+ if (obj instanceof ICapPO) {
+ return true;
+ }
+ return false;
+ }
+
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/CategoryCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/CategoryCX.java
new file mode 100644
index 000000000..57dfafa9a
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/CategoryCX.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.ICategoryPO;
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class CategoryCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is a Category
+ if (obj instanceof ICategoryPO) {
+ return true;
+ }
+ return false;
+ }
+
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ComponentNameCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ComponentNameCX.java
new file mode 100644
index 000000000..b58115283
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ComponentNameCX.java
@@ -0,0 +1,23 @@
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.IComponentNamePO;
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class ComponentNameCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is a ComponentName
+ if (obj instanceof IComponentNamePO) {
+ return true;
+ }
+ return false;
+ }
+} \ No newline at end of file
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ExecObjContCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ExecObjContCX.java
new file mode 100644
index 000000000..fa1b64d8b
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ExecObjContCX.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.IExecObjContPO;
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class ExecObjContCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is an instance of an ObjectContainer from
+ // the TestSuiteBrowser
+ if (obj instanceof IExecObjContPO) {
+ return true;
+ }
+ return false;
+ }
+
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ExecTestCaseCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ExecTestCaseCX.java
new file mode 100644
index 000000000..a6d5e146c
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ExecTestCaseCX.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.IExecTestCasePO;
+
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class ExecTestCaseCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is a referenced TestCase
+ if (obj instanceof IExecTestCasePO) {
+ return true;
+ }
+ return false;
+ }
+
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ProjectCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ProjectCX.java
new file mode 100644
index 000000000..ba03806bd
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ProjectCX.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.IProjectPO;
+
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class ProjectCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is a Project
+ if (obj instanceof IProjectPO) {
+ return true;
+ }
+ return false;
+ }
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ProjectLoadedCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ProjectLoadedCX.java
new file mode 100644
index 000000000..24455cd6e
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/ProjectLoadedCX.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.INodePO;
+
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class ProjectLoadedCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is a Node
+ if (obj instanceof INodePO) {
+ return true;
+ }
+ return false;
+ }
+
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/RefTestSuiteCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/RefTestSuiteCX.java
new file mode 100644
index 000000000..52c7e82db
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/RefTestSuiteCX.java
@@ -0,0 +1,24 @@
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.IRefTestSuitePO;
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class RefTestSuiteCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is a referenced TestSuite
+ if (obj instanceof IRefTestSuitePO) {
+ return true;
+ }
+ return false;
+ }
+
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SimpleCount.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SimpleCount.java
new file mode 100644
index 000000000..b3ecf68bd
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SimpleCount.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class SimpleCount implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // returns true, because the SimpleCount metric has to be shown every
+ // time
+ return true;
+ }
+
+} \ No newline at end of file
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SpecObjContCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SpecObjContCX.java
new file mode 100644
index 000000000..b6678cdaa
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SpecObjContCX.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.ISpecObjContPO;
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class SpecObjContCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is an instance of a userspecified
+ // ObjectContainer from the TestCaseBrowser
+ if (obj instanceof ISpecObjContPO) {
+ return true;
+ }
+ return false;
+ }
+
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SpecTestCaseCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SpecTestCaseCX.java
new file mode 100644
index 000000000..4f1c46c15
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/SpecTestCaseCX.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.ISpecTestCasePO;
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class SpecTestCaseCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is a userspecified TestCase
+ if (obj instanceof ISpecTestCasePO) {
+ return true;
+ }
+ return false;
+ }
+
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/TestJobCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/TestJobCX.java
new file mode 100644
index 000000000..f5bd79f3f
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/TestJobCX.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.ITestJobPO;
+
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class TestJobCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is a TestJob
+ if (obj instanceof ITestJobPO) {
+ return true;
+ }
+ return false;
+ }
+
+} \ No newline at end of file
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/TestSuiteCX.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/TestSuiteCX.java
new file mode 100644
index 000000000..11642e498
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/context/TestSuiteCX.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.context;
+
+import org.eclipse.jubula.client.analyze.definition.IContext;
+import org.eclipse.jubula.client.core.model.ITestSuitePO;
+
+
+/**
+ *
+ * @author volker
+ *
+ */
+public class TestSuiteCX implements IContext {
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isActive(Object obj) {
+ // checks if the given Object is a TestSuite
+ if (obj instanceof ITestSuitePO) {
+ return true;
+ }
+ return false;
+ }
+
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/i18n/Messages.java b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/i18n/Messages.java
new file mode 100644
index 000000000..713d513e7
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/i18n/Messages.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.client.analyze.impl.standard.i18n;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * i18n string internationalization
+ */
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.eclipse.jubula.client.analyze.impl.standard.i18n.messages"; //$NON-NLS-1$
+
+ public static String MonitorCanceled;
+ public static String Running;
+
+
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+ /**
+ * Constructor
+ */
+ private Messages() {
+ // hide
+ }
+}
diff --git a/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/i18n/messages.properties b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/i18n/messages.properties
new file mode 100644
index 000000000..eec2fe05f
--- /dev/null
+++ b/org.eclipse.jubula.client.analyze.impl.standard/src/org/eclipse/jubula/client/analyze/impl/standard/i18n/messages.properties
@@ -0,0 +1,2 @@
+MonitorCanceled=Monitor canceled
+Running=Running: \ No newline at end of file

Back to the top