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:Can't get a simple popup menu to work
Next Topic:Problem with Bundle-Localization
Goto Forum:

Current Time: Sun Feb 25 10:04:33 GMT 2018

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

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