Hi Larry,
my 2 cents:
Regarding open View/Edit Attributes, I think it works fine as it is (cursor on 
selection mode, select item, left click to open View/Edit Attributes (or usage 
of the toolbar). 
There is also a short-cut (CTRL+Alt]left click} which works fine. So I agree 
with you that it doesn-t need useful to have a double/click that does the same
On the other hand, double/click opens new paths to explore. As user double 
click seems more useful on editing mode. For instance, it can be used either 
for rotate or for move tool plugins, similar to many drawing softwares.
Maybe used with the keyboard (R+double-click=rotate; M+double-click=move, etc) 
would be more interesting.

Thanks again for your work.

Regards

Peppe



--- Lun 30/3/09, Larry Becker <becker.la...@gmail.com> ha scritto:

> Da: Larry Becker <becker.la...@gmail.com>
> Oggetto: [JPP-Devel] Select tool double-click
> A: "OpenJump develop and use" <jump-pilot-devel@lists.sourceforge.net>
> Data: Lunedì 30 marzo 2009, 15:36
> I made a local experimental addition to the Select
> Tool's double-click.  It
> opens View/Edit Attributes for the item double-clicked. 
> One of our users
> asked for it, but to me it doesn't seem very useful.  I
> thought I would post
> it here to see if anyone has any other ideas for
> double-click.  It is also a
> nice example of how you execute a PlugIn and create the
> context for it.  The
> UndoableEditReceiver was the tricky part.
> 
> To see it work, make the change to
> SelectTool#mouseclicked():
> 
>     public void mouseClicked(MouseEvent e) {
>         try {
>             super.mouseClicked(e);
>             setViewSource(e.getPoint());
>             setViewDestination(e.getPoint());
>             if (e.getClickCount() > 1) {
>                 UndoableEditReceiver undoableEditReceiver =
> null;
>                 try {
>                     WorkbenchContext    workbenchContext =
> getWorkbench().getContext();
>                     undoableEditReceiver = workbenchContext
>                     .getLayerManager() != null ?
> workbenchContext
>                            
> .getLayerManager().getUndoableEditReceiver() :
> null;
>                             if (undoableEditReceiver !=
> null) {
>                                
> undoableEditReceiver.startReceiving();
>                             }
>                             new
> FeatureInfoPlugIn().execute(getWorkbench().getContext().createPlugInContext());
>                 } finally {
>                     if (undoableEditReceiver != null) {
>                        
> undoableEditReceiver.stopReceiving();
>                     }
>                 }
>                 return;
>             }
> 
>             fireGestureFinished();
>         } catch (Throwable t) {
>             getPanel().getContext().handleThrowable(t);
>         }
>     }
> 
> regards,
> Larry
> 
> -- 
> http://amusingprogrammer.blogspot.com/
> ------------------------------------------------------------------------------
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


      

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

Reply via email to