Hi Michaël,
my idea was to test that sequence (create new layer, make it editable and open 
schema view). I found this sequenced quite useful on GvSIG and  figure out if 
it was expendable to OpenJUMP,too, at least via beanscript.
Following your help I also had that AssertionFailedException  message. But my 
knowledge of developing arrives there :-)
thanks again

Peppe

 

--- Lun 22/11/10, Michaël Michaud <michael.mich...@free.fr> ha scritto:

Da: Michaël Michaud <michael.mich...@free.fr>
Oggetto: Re: [JPP-Devel] beanshell command
A: "OpenJump develop and use" <jump-pilot-devel@lists.sourceforge.net>
Data: Lunedì 22 novembre 2010, 23:31



  

    
  Hi Peppe

    
      
        
          
            Hi Michael,

              thanks for the answer.

              It would be interesting to launch via beanscript some of
              the tools.

              Right now I was thinking about a script which create a new
              file and open its layer schema.

            
          
        
      
    
    I tried to find how to start ViewSchemaPlugIn from script, but it is
    quite difficult, and I could not instantiate this plugin until now.

    It throws an AssertionFailedException which seems to be related to
    the undoable management which is a tricky part of OpenJUMP.

    

    On the other hand, I wonder what is your use case.

    I tend to make a separate use of UI and of scripts as scripts are
    generally supposed to run without user interaction.

    

    Michaël

    

    
      
        
          
            

              peppe

              

              --- Dom 21/11/10, Michaël Michaud <michael.mich...@free.fr>
              ha scritto:

              

                Da: Michaël Michaud <michael.mich...@free.fr>

                Oggetto: Re: [JPP-Devel] beanshell command

                A: "OpenJump develop and use"
                <jump-pilot-devel@lists.sourceforge.net>

                Data: Domenica 21 novembre 2010, 00:27

                

                
                  
                  Hi,

                  
                    
                      
                        
                          Hi
                            all,

                            just two questions.

                            Which would be the beanshell comand that
                            make a layer editable?

                          
                        
                      
                    
                  
                  wc.layerNamePanel.selectedLayers[0].setEditable(true);

                  
                    
                      
                        
                          Which
                            would be the one  that open Layer schema?

                          
                        
                      
                    
                  
                  This one is more tricky. Anyone an idea ? (I have
                  always had troubles when it came to execute plugins
                  programmatically).

                  classes involved maybe

                  ViewSchemaPlugIn or

                  ViewSchemaPlugIn.EditSchemaFrame

                  

                  Michaël

                  

                  
                    
                      
                        
                           regards

                            Peppe

                          
                        
                      
                    
                    

                    
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
                    
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

                  
                  

                
                

                -----Segue allegato-----

                

                
------------------------------------------------------------------------------

                  Beautiful is writing same markup. Internet Explorer 9
                  supports

                  standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and
                  DOM L2 & L3.

                  Spend less time writing and  rewriting code and more
                  time creating great

                  experiences on the web. Be a part of the beta today

                  http://p.sf.net/sfu/msIE9-sfdev2dev
                

                -----Segue allegato-----

                

                _______________________________________________

                  Jump-pilot-devel mailing list

                  Jump-pilot-devel@lists.sourceforge.net

                  https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

                
              
            
          
        
      
      

      
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
      
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

    
    

  

-----Segue allegato-----

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
-----Segue allegato-----

_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



      
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-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