Hi all,
I need to create a plugin which is able to launch a tool according to a
specific choice on an OptionsPanel

Something like this (I am even not sure if the sintax is correct)

*******************************************
Private  class *ThisPlugIn* extends AbstractPlugIn

 public boolean execute(PlugInContext context)   throws Exception
       {
         reportNothingToUndoYet(context);
         if  (*FileOptionsPanel* = AA) {
        context.getLayerViewPanel().setCurrentCursorTool(new* AAtTool()*);
      }
      else {
         context.getLayerViewPanel().setCurrentCursorTool(new *BBTool()*);
      }
        return true;
       }
********************************************

As you can see the options are only two  AA (AATool) and else (BBTool)
My main problem is that I don't know  to build that FileOptionPanel and I
am not able to find a similar File into OJ source (SnapOptionPanels, etc)
I will really appreciate ant suggestions or help

The aim of this work is a further development of my measure plugin, I want
to add the possibility to user to choose if they have to calculate
area/distance under projected coordinates (and use tools which use JTS as
in OpenJUMP) or they are working with a map under geographic coordinates
(and so they switch to tools which use other formulas for area/lenght under
lat/lon coordinates AA option will be Metrics coordinates Map, BB (else)
geographics

Thanks a lot for any answer

 Peppe  [not an automatic machine, Stefan ;-)]
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to