forked from sebastianbenz/Jnario
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sebastianbenz#136 from SebastianPoetzsch/jump_from…
…_junitview Jump to test from JUnit view for Feature steps and facts.
- Loading branch information
Showing
17 changed files
with
582 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,95 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<feature | ||
id="org.jnario.ui" | ||
label="%featureName" | ||
version="1.1.0.qualifier" | ||
provider-name="%providerName"> | ||
|
||
<description> | ||
%description | ||
</description> | ||
|
||
<copyright> | ||
Copyright (c) 2012 BMW Car IT (http://www.bmw-carit.de) and others. | ||
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 Description here. | ||
</copyright> | ||
|
||
<license url="http://www.eclipse.org/legal/epl-v10.html"> | ||
%license | ||
</license> | ||
|
||
<requires> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<feature | ||
id="org.jnario.ui" | ||
label="%featureName" | ||
version="1.1.0.qualifier" | ||
provider-name="%providerName"> | ||
|
||
<description> | ||
%description | ||
</description> | ||
|
||
<copyright> | ||
Copyright (c) 2012 BMW Car IT (http://www.bmw-carit.de) and others. | ||
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 Description here. | ||
</copyright> | ||
|
||
<license url="http://www.eclipse.org/legal/epl-v10.html"> | ||
%license | ||
</license> | ||
|
||
<requires> | ||
<import plugin="org.eclipse.xtext.ui" version="2.6.2" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.ui.editors"/> | ||
<import plugin="org.eclipse.ui.ide"/> | ||
<import plugin="org.eclipse.xtext.ui.shared"/> | ||
<import plugin="org.eclipse.ui"/> | ||
<import plugin="org.eclipse.ui.editors"/> | ||
<import plugin="org.eclipse.ui.ide"/> | ||
<import plugin="org.eclipse.xtext.ui.shared"/> | ||
<import plugin="org.eclipse.ui"/> | ||
<import plugin="org.eclipse.xtext.builder" version="2.6.2" match="greaterOrEqual"/> | ||
<import plugin="org.antlr.runtime"/> | ||
<import plugin="org.antlr.runtime"/> | ||
<import plugin="org.eclipse.xtext.common.types.ui" version="2.6.2" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.xtext.ui.codetemplates.ui"/> | ||
<import plugin="org.eclipse.compare"/> | ||
<import plugin="org.eclipse.xtext.ui.codetemplates.ui"/> | ||
<import plugin="org.eclipse.compare"/> | ||
<import plugin="org.eclipse.xtext.xbase.ui" version="2.6.2" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.jdt.junit"/> | ||
<import plugin="org.eclipse.pde.ui"/> | ||
<import plugin="org.jnario" version="1.0.0" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.debug.core" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.debug.ui" match="greaterOrEqual"/> | ||
<import plugin="org.jnario.feature" version="1.0.0" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.jdt.junit"/> | ||
<import plugin="org.eclipse.pde.ui"/> | ||
<import plugin="org.jnario" version="1.0.0" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.debug.core" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.debug.ui" match="greaterOrEqual"/> | ||
<import plugin="org.jnario.feature" version="1.0.0" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.xtext.xbase.lib" version="2.6.2" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.jdt.ui"/> | ||
<import plugin="org.eclipse.jdt.core"/> | ||
<import plugin="org.apache.commons.logging"/> | ||
<import plugin="org.apache.log4j" version="1.2.15" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.xtend.core"/> | ||
<import plugin="org.jnario.spec"/> | ||
<import plugin="org.eclipse.ui.editors" version="3.5.0" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.ui.ide" version="3.5.0" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.jdt.ui"/> | ||
<import plugin="org.eclipse.jdt.core"/> | ||
<import plugin="org.apache.commons.logging"/> | ||
<import plugin="org.apache.log4j" version="1.2.15" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.xtend.core"/> | ||
<import plugin="org.jnario.spec"/> | ||
<import plugin="org.eclipse.ui.editors" version="3.5.0" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.ui.ide" version="3.5.0" match="greaterOrEqual"/> | ||
<import plugin="org.eclipse.xtend.ide" version="2.6.2" match="greaterOrEqual"/> | ||
<import plugin="com.ibm.icu"/> | ||
<import plugin="org.eclipse.core.resources"/> | ||
<import plugin="org.eclipse.core.runtime"/> | ||
<import plugin="org.jnario.lib" version="1.0.0" match="greaterOrEqual"/> | ||
<import plugin="org.jnario.suite"/> | ||
<import plugin="com.google.guava"/> | ||
</requires> | ||
|
||
<plugin | ||
id="org.jnario.feature.ui" | ||
download-size="0" | ||
install-size="0" | ||
version="0.0.0" | ||
unpack="false"/> | ||
|
||
<plugin | ||
id="org.jnario.spec.ui" | ||
download-size="0" | ||
install-size="0" | ||
version="0.0.0" | ||
unpack="false"/> | ||
|
||
<plugin | ||
id="org.jnario.ui" | ||
download-size="0" | ||
install-size="0" | ||
version="0.0.0" | ||
unpack="false"/> | ||
|
||
<plugin | ||
id="org.jnario.suite.ui" | ||
download-size="0" | ||
install-size="0" | ||
version="0.0.0" | ||
unpack="false"/> | ||
|
||
</feature> | ||
<import plugin="com.ibm.icu"/> | ||
<import plugin="org.eclipse.core.resources"/> | ||
<import plugin="org.eclipse.core.runtime"/> | ||
<import plugin="org.jnario.lib" version="1.0.0" match="greaterOrEqual"/> | ||
<import plugin="org.jnario.suite"/> | ||
<import plugin="com.google.guava"/> | ||
</requires> | ||
|
||
<plugin | ||
id="org.jnario.feature.ui" | ||
download-size="0" | ||
install-size="0" | ||
version="0.0.0" | ||
unpack="false"/> | ||
|
||
<plugin | ||
id="org.jnario.spec.ui" | ||
download-size="0" | ||
install-size="0" | ||
version="0.0.0" | ||
unpack="false"/> | ||
|
||
<plugin | ||
id="org.jnario.ui" | ||
download-size="0" | ||
install-size="0" | ||
version="0.0.0" | ||
unpack="false"/> | ||
|
||
<plugin | ||
id="org.jnario.suite.ui" | ||
download-size="0" | ||
install-size="0" | ||
version="0.0.0" | ||
unpack="false"/> | ||
|
||
<plugin | ||
id="org.eclipse.jdt.junit.runners" | ||
download-size="0" | ||
install-size="0" | ||
version="0.0.0" | ||
unpack="false"/> | ||
|
||
</feature> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
plugins/org.jnario.feature.ui/src/org/jnario/feature/ui/handler/FeatureRunnerUIHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.jnario.feature.ui.handler; | ||
|
||
import org.eclipse.jdt.internal.junit.model.TestCaseElement; | ||
import org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart; | ||
import org.eclipse.jdt.junit.model.ITestElement; | ||
import org.eclipse.jface.action.Action; | ||
import org.eclipse.ui.part.ViewPart; | ||
import org.jnario.ui.handler.AbstractJnarioRunnerUIHandler; | ||
|
||
public class FeatureRunnerUIHandler extends AbstractJnarioRunnerUIHandler { | ||
|
||
protected Action getAction(ViewPart part, ITestElement element) { | ||
return new OpenTestFeatureAction((TestRunnerViewPart) part, (TestCaseElement) element); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
plugins/org.jnario.feature.ui/src/org/jnario/feature/ui/handler/OpenTestFeatureAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.jnario.feature.ui.handler; | ||
|
||
import org.eclipse.jdt.internal.junit.model.TestCaseElement; | ||
import org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart; | ||
import org.jnario.ui.handler.AbstractJnarioOpenTestAction; | ||
|
||
public class OpenTestFeatureAction extends AbstractJnarioOpenTestAction { | ||
|
||
public OpenTestFeatureAction(TestRunnerViewPart testRunnerPart, TestCaseElement testCase) { | ||
super(testRunnerPart, testCase); | ||
setText("Go to Feature"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
plugins/org.jnario.spec.ui/src/org/jnario/spec/ui/handler/ExampleGroupRunnerUIHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.jnario.spec.ui.handler; | ||
|
||
import org.eclipse.jdt.internal.junit.model.TestCaseElement; | ||
import org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart; | ||
import org.eclipse.jdt.junit.model.ITestElement; | ||
import org.eclipse.jface.action.Action; | ||
import org.eclipse.ui.part.ViewPart; | ||
import org.jnario.ui.handler.AbstractJnarioRunnerUIHandler; | ||
|
||
@SuppressWarnings("restriction") | ||
public class ExampleGroupRunnerUIHandler extends AbstractJnarioRunnerUIHandler { | ||
|
||
protected Action getAction(ViewPart part, ITestElement element) { | ||
return new OpenTestExampleGroupAction((TestRunnerViewPart) part, (TestCaseElement) element); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
plugins/org.jnario.spec.ui/src/org/jnario/spec/ui/handler/OpenTestExampleGroupAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.jnario.spec.ui.handler; | ||
|
||
import org.eclipse.jdt.internal.junit.model.TestCaseElement; | ||
import org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart; | ||
import org.jnario.ui.handler.AbstractJnarioOpenTestAction; | ||
|
||
@SuppressWarnings("restriction") | ||
public class OpenTestExampleGroupAction extends AbstractJnarioOpenTestAction { | ||
|
||
public OpenTestExampleGroupAction(TestRunnerViewPart testRunnerPart, TestCaseElement testCase) { | ||
super(testRunnerPart, testCase); | ||
setText("Go to Spec"); | ||
} | ||
} |
Oops, something went wrong.