Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 109722 Details for
Bug 213786
[JUnit] Add context menu action to import junit test results from package explorer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
JUnit view editor launcher
213786.patch (text/plain), 2.68 KB, created by
Brock Janiczak
on 2008-08-11 20:08:43 EDT
(
hide
)
Description:
JUnit view editor launcher
Filename:
MIME Type:
Creator:
Brock Janiczak
Created:
2008-08-11 20:08:43 EDT
Size:
2.68 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.junit >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.junit/plugin.xml,v >retrieving revision 1.125 >diff -u -r1.125 plugin.xml >--- plugin.xml 12 Sep 2007 14:10:54 -0000 1.125 >+++ plugin.xml 11 Aug 2008 23:59:49 -0000 >@@ -487,5 +487,38 @@ > <!-- END : do we need these? --> > </kind> > </extension> >- >+ >+ <extension >+ point="org.eclipse.ui.editors"> >+ <editor >+ default="false" >+ id="org.eclipse.jdt.junit.JUnitResultEditor" >+ launcher="org.eclipse.jdt.internal.junit.ui.JUnitViewEditorLauncher" >+ name="JUnit View"> >+ <contentTypeBinding >+ contentTypeId="org.eclipse.jdt.junit.JUnitResult"> >+ </contentTypeBinding> >+ </editor> >+ </extension> >+ <extension >+ point="org.eclipse.core.runtime.contentTypes"> >+ <content-type >+ base-type="org.eclipse.core.runtime.xml" >+ file-extensions="xml" >+ id="JUnitResult" >+ name="JUnit Test Result" >+ priority="high"> >+ <describer >+ class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber2"> >+ <parameter >+ name="element" >+ value="testrun"> >+ </parameter> >+ <parameter >+ name="element" >+ value="testsuite"> >+ </parameter> >+ </describer> >+ </content-type> >+ </extension> > </plugin> >Index: src/org/eclipse/jdt/internal/junit/ui/JUnitViewEditorLauncher.java >=================================================================== >RCS file: src/org/eclipse/jdt/internal/junit/ui/JUnitViewEditorLauncher.java >diff -N src/org/eclipse/jdt/internal/junit/ui/JUnitViewEditorLauncher.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/jdt/internal/junit/ui/JUnitViewEditorLauncher.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,22 @@ >+package org.eclipse.jdt.internal.junit.ui; >+ >+import org.eclipse.core.runtime.CoreException; >+import org.eclipse.core.runtime.IPath; >+ >+import org.eclipse.ui.IEditorLauncher; >+import org.eclipse.ui.PlatformUI; >+ >+import org.eclipse.jdt.internal.junit.model.JUnitModel; >+ >+public class JUnitViewEditorLauncher implements IEditorLauncher { >+ >+ public void open(IPath file) { >+ try { >+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(TestRunnerViewPart.NAME); >+ JUnitModel.importTestRunSession(file.toFile()); >+ } catch (CoreException e) { >+ JUnitPlugin.log(e.getStatus()); >+ } >+ } >+ >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
markus.kell.r
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 213786
:
85761
| 109722