This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 26475 - default doubleclick action of RefObjectLook
Summary: default doubleclick action of RefObjectLook
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Other Other
: P3 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-13 14:58 UTC by Felix Schmid
Modified: 2010-09-23 09:13 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
patch to fix doubleclick behaviour of RefObjectLook (1.20 KB, patch)
2002-08-14 09:16 UTC, Felix Schmid
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Schmid 2002-08-13 14:58:33 UTC
This patch changes the default doubleclick behaviour of the 
mdrexplorers RefObjectLook. 
With this patch applied a doubleclick on 
a RefObject node opens the properties-window instead of triggering the 
delete-action. 

I changed the code after accidentially deleting 
nodes from my model.


*** RefObjectLook.java	Tue Aug 13 12:51:25 
2002
--- RefObjectLook.java.my	Tue Aug 13 12:51:08 
2002
*************** public class RefObjectLook extends BaseO
*** 
59,68 ****
              superActions = new javax.swing.Action[0];
          }
          
javax.swing.Action[] actions = new 
javax.swing.Action[superActions.length + 3];
!         actions[0] = 
SystemAction.get( DeleteObjectAction.class);
!         actions[1] = 
SystemAction.get(SaveXMIAction.class);
!         actions[2] = 
SystemAction.get(Map2JavaAction.class);
!         
System.arraycopy(superActions, 0, actions, 3, 
superActions.length);
          return actions;
      }
      
--- 59,69 ----
              
superActions = new javax.swing.Action[0];
          }
          
javax.swing.Action[] actions = new 
javax.swing.Action[superActions.length + 3];
!         
System.arraycopy(superActions, 0, actions, 0, 
superActions.length);
!         actions[superActions.length] = 
SystemAction.get( DeleteObjectAction.class);
!         
actions[superActions.length + 1] = 
SystemAction.get(SaveXMIAction.class);
!         
actions[superActions.length + 2] = 
SystemAction.get(Map2JavaAction.class);
!         
          return actions;
      
}
Comment 1 Felix Schmid 2002-08-14 09:16:31 UTC
Created attachment 7095 [details]
patch to fix doubleclick behaviour of RefObjectLook
Comment 2 David Strupl 2010-09-23 09:13:55 UTC
I am closing all reports in category Java/Unsupported as wontfix. These should
be dead issues --- if the reported cases are against some live part of the
NetBeans IDE please reopen and we can discuss to which category they belong.