Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Editor plugin : Java inside XML file ?
Editor plugin : Java inside XML file ? [message #1009581] Fri, 15 February 2013 10:46
kek corp is currently offline kek corpFriend
Messages: 1
Registered: February 2013
Junior Member

I'm trying to develop a plugin that enables syntax highlighting, content assistance, color formatting, etc. for Java code inside a specific tag in a XML file (LogicSheet for Cocoon).

I managed to extract the tags containing the Java code. I don't want to reimplement a Java Editor from scratch, can I use the eclipse.jdt classes (such as JavaPartitionScanner, JavaColorManager, etc.)? If so, how? With another RuleBasedPartitionScanner? Or a simple RuleBasedScanner?

Or maybe there is an easy way to include the JavaEditor class inside another editor, like extending JavaSourceViewerConfiguration and modify the partitioner to include XML tags, comment, etc.?

Any help? A starting point?


Previous Topic:How can I create a "Source Folder" browser
Next Topic:[PDE build] Headless feature where all bundles are already built fails
Goto Forum:

Current Time: Thu May 24 02:33:31 GMT 2018

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

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

Back to the top