Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Batch Validation and "clean" action
Batch Validation and "clean" action [message #207661] Tue, 29 January 2008 16:09
Vincent Zurczak is currently offline Vincent ZurczakFriend
Messages: 149
Registered: July 2009
Senior Member

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
Hi. :)<br>
I have one question about the <i>clean</i> action in the "<i>project</i>"
I have registered my own validator through the extension <i>org.eclipse.wst.validation.validator.
</i>This validator is defined to work with files whose extension is <i>composite</i>.
So, when I choose a composite file in my project explorer and that I
click on the <i>validate</i> action, the validation works and I can
add my markers. <br>
I also noticed that when I validate a project or a folder, the included
composite files are validated with my validator, even if I didn't do
anything to get this behaviour. Now, my question is about the <i>project
-&gt; clean</i> sub-menu. When I call it, the method helper.getURIs()
returns an empty list. <br>
So... How can I detect in my validator that the user has chosen <i>project
-&gt; clean</i> ? Is there any method to complete or implement ? Or
said differently...<br>
<div align="center">helper.getURIs() returns empty &lt;== equivalent to
==&gt; the user has chosen <i>project -&gt; clean</i>&nbsp; ???<br>
.... in which case I can remove all my markers as soon as I get an empty
This is just to understand and avoid upcoming bugs. ;)<br>
Best Regards,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Vincent Zurczak.<br>
<pre class="moz-signature" cols="72">--
Vincent Zurczak
EBM WebSourcing
+ 33 (0) 4 76 61 52 62
Previous Topic:WTP newbie question
Next Topic:Adding Project Metainfo to Folders
Goto Forum:

Current Time: Wed Apr 25 07:15:44 GMT 2018

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

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