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 250975 Details for
Bug 460464
Have org.eclipse.test.performance usable in non-OSGi runtimes.
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]
Patch
Have-orgeclipsetestperformance-usable-in-stan.patch (text/plain), 1.85 KB, created by
Esteban DUGUEPEROUX
on 2015-02-20 11:53:29 EST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Esteban DUGUEPEROUX
Created:
2015-02-20 11:53:29 EST
Size:
1.85 KB
patch
obsolete
>diff --git a/bundles/org.eclipse.test.performance/src/org/eclipse/test/performance/Performance.java b/bundles/org.eclipse.test.performance/src/org/eclipse/test/performance/Performance.java >index 7b82e57..021b19f 100644 >--- a/bundles/org.eclipse.test.performance/src/org/eclipse/test/performance/Performance.java >+++ b/bundles/org.eclipse.test.performance/src/org/eclipse/test/performance/Performance.java >@@ -212,16 +212,21 @@ > PerformanceMeterFactory instance = null; > if (className != null && className.length() > 0) { > try { >- int separator = className.indexOf(':'); >- Bundle bundle = null; >- if (separator == -1) { >- bundle = PerformanceTestPlugin.getDefault().getBundle(); >+ Class c = null; >+ if (Platform.isRunning()) { >+ int separator = className.indexOf(':'); >+ Bundle bundle = null; >+ if (separator == -1) { >+ bundle = PerformanceTestPlugin.getDefault().getBundle(); >+ } else { >+ String bundleName = className.substring(0, separator); >+ className = className.substring(separator + 1); >+ bundle = Platform.getBundle(bundleName); >+ } >+ c = bundle.loadClass(className); > } else { >- String bundleName = className.substring(0, separator); >- className = className.substring(separator + 1); >- bundle = Platform.getBundle(bundleName); >+ c = Class.forName(className); > } >- Class c = bundle.loadClass(className); > instance = (PerformanceMeterFactory) c.newInstance(); > } > catch (ClassNotFoundException e) {
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:
david_williams
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 460464
: 250975