Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IncrementalProjectBuilder
IncrementalProjectBuilder [message #455576] Fri, 29 September 2006 18:24
Eclipse UserFriend
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?
Previous Topic:What is the correct way to associate a double-click event with an action?
Next Topic:How can I add DecoratedField to Eclipse Forms?
Goto Forum:
  


Current Time: Wed Nov 05 06:29:30 EST 2025

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

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

Back to the top