| IncrementalProjectBuilder [message #455576] |
Fri, 29 September 2006 18:24 |
Eclipse User |
|
|
|
I've got an RPC application that allows users to create text of a
specific (technical) language and store these elements in a database
(vs. a project or file).
I have a resource viewer attached to the database that allows users to
create/edit/delete/update these text elements (as they are read and
saved in the database).
The editor for these elements is a basic TextEditor. The 'doSave()'
method saves the contents of the editor to the database.
I have a compiler that can build/compile these elements and I would like
to run the compiler during the save operation. I can implement a way of
calling the compiler via a brute force method but I would like to take
advantage of the IncrementalProjectBuilder class and Problems/Markers
facilities, as well.
However, my application really doesn't have 'projects' and I can't quite
figure out how to wire up the class I've created to control the
compile/build so that it is called from something like
IWorkspace.build().... here's the plugin.xml snippet that defines the
builder:
<extension
id="myBuilder"
name="My Builder"
point="org.eclipse.core.resources.builders">
<builder hasNature="false" >
<run class="com.xxx.builders.MyBuilder"/>
</builder>
</extension>
In my TextEditor.doSave() method I call IWorkspace.build() but my
builder never gets control....
Ideas?
|
|
|
Powered by
FUDForum. Page generated in 0.13171 seconds