RE: [xml-dev] contradictory loader ordering in 3.5
Petr Kuzel <[email protected]> Thu, 20 Mar 2003 22:26:53 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.xml.devel |
|---|---|
| Organization | CollabNet Hosting |
| Message-ID | <[email protected]> |
Hello Rich, it smells. So I suggest to look at documentation <http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/modules/doc-files/api.html#sec-loader> and fill all discrepancies as bugs. You must justify them accordingly if you want them fixed in NB 35 release. I can see one problem here and it is that your loader produces the same DataObject class as XMLDataLoader. And loaders order is _surprisingly_ keyed by DataObject classes. You may need to introduce artificial DataLodaer and DataObject classes to resolve it. Cc. Richard Unger wrote: > I think one of my assumptions is incorrect. I was under the impression > that the Install-After and Install-Before directives correspond to the > ordering in the "Object Types" options menu. But, in looking at the CSS > manifest: > > Name: org/netbeans/modules/css/CSSLoader.class > OpenIDE-Module-Class: Loader > Install-After: org.netbeans.modules.xml.core.XMLDataObject > Install-After: org.netbeans.modules.xml.core.DTDDataObject > Install-Before: org.netbeans.modules.text.TXTDataObject > > I'm very confused. The "CSS Objects" item in the "Object Types" list does > come before "Textual Objects" and after "DTD Objects", but comes _before_ > "XML Objects". > > What's going on here? Am I just making this whole thing way too > complicated? :-) > > Rich > > >> -----Original Message----- >> From: Richard Unger >> Sent: Thursday, March 20, 2003 10:40 AM >> To: [email protected] >> Subject: RE: [xml-dev] contradictory loader ordering in 3.5 >> >> >> Well, I'm pretty sure that edge gets introduced when I add >> the Install-Before directive. When I take that out, >> everything runs fine (except, of course, that the VoiceXML >> data loader gets loaded after the XML data loader, and my >> loader actions are all wrong). >> >> Rich >> >> > -----Original Message----- >> > From: Petr Kuzel [mailto:[email protected]] >> > Sent: Thursday, March 20, 2003 4:24 AM >> > To: [email protected] >> > Subject: Re: [xml-dev] contradictory loader ordering in 3.5 >> > >> > >> > Hello Rich, >> > >> > while trying to interpret the exception message I see >> > following edge description: >> > >> > com.nuance.tools.voicexml.VoiceXMLDataLoader@1d29a78=[com.nuan >> > ce.tools.voicexml.VoiceXMLDataLoader@1d29a78] >> > >> > It's clean cycle. How does it get into play? Is it generated by >> > loaders system? Do you have all manifest without the dependency? >> > >> > Cc. >> > >> > PS: You can also hack Utilities.topologicalSort() to ignore >> > such "identity edges". >> > >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected]