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 11911 Details for
Bug 63911
ExtensionsParser should use serviceTracker
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch for tests.runtime
org.eclipse.core.tests.runtime-63911.diff (text/plain), 1.94 KB, created by
Rafael Chaves
on 2004-06-10 17:38:13 EDT
(
hide
)
Description:
patch for tests.runtime
Filename:
MIME Type:
Creator:
Rafael Chaves
Created:
2004-06-10 17:38:13 EDT
Size:
1.94 KB
patch
obsolete
>Index: src/org/eclipse/core/tests/internal/registrycache/RegistryCacheTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/internal/registrycache/RegistryCacheTest.java,v >retrieving revision 1.15 >diff -u -r1.15 RegistryCacheTest.java >--- src/org/eclipse/core/tests/internal/registrycache/RegistryCacheTest.java 10 Jun 2004 21:05:06 -0000 1.15 >+++ src/org/eclipse/core/tests/internal/registrycache/RegistryCacheTest.java 10 Jun 2004 21:34:41 -0000 >@@ -12,11 +12,14 @@ > > import java.io.*; > import javax.xml.parsers.ParserConfigurationException; >+import javax.xml.parsers.SAXParserFactory; > import junit.framework.Test; > import junit.framework.TestSuite; > import org.eclipse.core.internal.registry.*; >+import org.eclipse.core.internal.runtime.InternalPlatform; > import org.eclipse.core.runtime.*; > import org.eclipse.core.tests.harness.EclipseWorkspaceTest; >+import org.osgi.util.tracker.ServiceTracker; > import org.xml.sax.InputSource; > import org.xml.sax.SAXException; > >@@ -78,9 +81,10 @@ > } > > private Namespace parseManifest(String symbolicName, Reader input) throws IOException, SAXException, ParserConfigurationException { >- ExtensionsParser parser = new ExtensionsParser(); >- MultiStatus problems = new MultiStatus(Platform.PI_RUNTIME, 0, "", null); >- Namespace result = parser.parseManifest(problems, new InputSource(input), ExtensionsParser.PLUGIN, "plugin.xml", null); >+ ExtensionsParser parser = new ExtensionsParser(new MultiStatus(Platform.PI_RUNTIME, 0, "", null)); >+ ServiceTracker xmlTracker = new ServiceTracker(InternalPlatform.getDefault().getBundleContext(), SAXParserFactory.class.getName(), null); >+ xmlTracker.open(); >+ Namespace result = parser.parseManifest(xmlTracker, new InputSource(input), ExtensionsParser.PLUGIN, "plugin.xml", null); > result.setUniqueIdentifier(symbolicName); > return result; > }
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
Actions:
View
|
Diff
Attachments on
bug 63911
:
11883
|
11909
|
11910
| 11911