Java Parser/Context Assistance/Compiler exposed? [message #313318] |
Mon, 12 March 2007 22:28  |
Eclipse User |
|
|
|
Originally posted by: arkaaito.users.sourceforge.net
Hi,
I'm in the process of writing an Eclipse plug-in to provide IDE support for
a specifications language. Specifications written in this language can be
in-lined with Java programs by being placed within comments with special
tags.
I've created an editor for this, have a partition scanner programmed to pull
it out of the Java code (so I can then do syntax highlighting and content
assist), etc.. However, I'd now like to restore the standard Eclipse Java
support for the regular Java in these documents. I'm confident that this
must be possible, probably through exposure of the built-in classes that
handle Java in the regular editor, but I'm afraid I'm stalled on actually
finding them and help.eclipse.org has failed me since I don't know what to
look for.
So... can anyone give me a pointer to where the standard Java classes for
syntax highlighting, context assistance and incremental compilation are?
-A.s.
|
|
|
|
|
|
|
Re: Java Parser/Context Assistance/Compiler exposed? [message #313922 is a reply to message #313705] |
Wed, 28 March 2007 05:21  |
Eclipse User |
|
|
|
A. Smiley wrote:
>Having found the org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration, I
>think I'm starting to get somewhere... but now I'm caught in the following
>trap:
>
>To get Eclipse to give me a code scanner, a content assistant and a content
>formatter in the "intended" way, I need to instantiate the
>JavaSourceViewerConfiguration class. But I'm not sure this is exactly what
>I want to do - I'd like to be able to just instantiate a code scanner, a
>content assistant and a content formatter within my own config and then sic
>them on the Java code that my partition scanner tags for them.
>
>Even if it is, I need to give it a color manager that implements
>IColorManager, and I can't find anything which purports to implement
>IColorManager for the default Eclipse Java implementation. I'm working on
>deciphering the necessary partitioning string by browsing through the
>source, but I can't figure out where I should be looking for a color
>manager.
>
>
The class 'JavaUI' provides many useful helpers for you. One of them is
getColorManager().
Dani
>Help?
>
>Thanks for everything so far... hopefully this will be the last newbie
>question from me. (Famous last words!)
>
>-A.s.
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05547 seconds