<HTML>
<HEAD>
<TITLE>Re: [Paraview] Reader plugin have same extension</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Also don’t forget about the CanReadFile option. Implementing CanReadFile is by far the best option of them all because it will allow ParaView to always pick the right file without pestering the user with a chooser dialog box, which can be quite annoying.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 9/17/09 2:12 PM, "David E DeMarle" <<a href="dave.demarle@kitware.com">dave.demarle@kitware.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Sure you have a choice. File a feature request. If you can't wait, change the code. If you do, please submit a patch so everyone can benefit from your effort.<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I say that when PV encounter two reader that claim same extension then best let user decide which he want to be use. that will be my choice... maybe I don't have a choice!<BR>
<BR>
<BR>
<BR>
On Thu, Sep 17, 2009 at 10:55 AM, David E DeMarle <<a href="dave.demarle@kitware.com">dave.demarle@kitware.com</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Precedence is based on order in the XML, last XML entry parsed gets priority so that plugins override the provided readers easily. In addition, readers can have a bool CanReadFile(); method, which gets called before the decision is finalized.<BR>
<BR>
David E DeMarle<BR>
Kitware, Inc.<BR>
R&D Engineer<BR>
28 Corporate Drive<BR>
Clifton Park, NY 12065-8662<BR>
Phone: 518-371-3971 x109<BR>
<BR>
<BR>
On Thu, Sep 17, 2009 at 1:04 PM, Bam Ting <<a href="bampingting@gmail.com">bampingting@gmail.com</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I have problem with ParaView! Two reader read file - same extension! how can ParaView choose mine instead of this other? He crash because his expect the other file not mine :)<BR>
<BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com <<a href="http://www.kitware.com">http://www.kitware.com</a>> <BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>