[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: How to cancel Build

Hi,

Can't you use the file modification hook? The file modification hook goes into your checker which prevents the saving of the file which in turn will not trigger the build.

Regards,

Wim

File modification validators
It's also possible that team repository providers will need to prevent or intervene in the editing or saving of a file. The team plug-in accomplishes this by using the extension point org.eclipse.core.resources.fileModificationValidator to register a validator that is called whenever a resource is to be modified.


<extension point="org.eclipse.core.resources.fileModificationValidator" id="FileValidator">
<fileModificationValidator class="org.eclipse.team.internal.core.FileModificationValidatorManager"/>
</extension>
The supplied class must implement IFileModificationValidator, which is called by the platform whenever a resource is saved or opened. The team plug-in installs a file modification manager that can determine which team provider is managing a resource and invoke its specific validator.




--
Best Regards,

Wim Jongman
http://www.remainsoftware.com
http://www.industrial-tsi.com
"encom79 " <encom79@xxxxxxxxxxx> wrote in message news:e1bc34802b26784facb3cf894cdfb434$1@xxxxxxxxxxxxxxxxxx
The aim is to trigger the "run" and "debug" button press :/
There is no PRE_RUN or PRE_DEBUG, PRE_BUILD is the best and simplest way I have found to run my process before the "run/debug".


In this PRE_BUILD process I launch some executable (GUI) in a thread then the regular BUILD start by launching Adobe Flex/Air program.
If my executable in the PRE_BUILD failed I should not let Adobe Flex/Air program to run :/
That's why I need to find a way to kill Adobe Flex/Air program.