Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » DocumentTraversal in eclipse plugin
DocumentTraversal in eclipse plugin [message #232633] Wed, 12 July 2006 13:25
Eclipse UserFriend
Originally posted by: r.pires.da-desk.com

Hi, i'm building a plugin for eclipse and i'm using the DocumentTraversal
class to cast from a Document object:

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document modifDoc = null;
modifDoc = builder.parse(f);

TreeParent root = new TreeParent("Modifications");
DocumentTraversal traversable = (DocumentTraversal) modifDoc;

The parsing is ok but i'm not able to cast. And, while developing the
plugin, i can test it in the plugin environment and the cast works fine.
But if I build the jar and copy it to the eclipse plugins directory and
try to see the plugin (it's a view) i get a class cast exception.
Any idea what the problem is or any suggestions?

Thanks in advance

Raul
Previous Topic:compiling generated code with JDT
Next Topic:CVS Socket Error
Goto Forum:
  


Current Time: Tue Apr 16 05:17:02 GMT 2024

Powered by FUDForum. Page generated in 0.48051 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top