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 48262 - LookupSensitiveActions returns out of date values.
Summary: LookupSensitiveActions returns out of date values.
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-08-31 17:04 UTC by Petr Hrebejk
Modified: 2006-03-24 09:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Hrebejk 2004-08-31 17:04:55 UTC
As a result of a preformance tuning the 
LookupSensitiveAction does not refresh when
nothing listens on it. 
This is bad because the calls to getValue may
return out of date values. It needs to override
the getValue and call refresh in case the lookup
changed.
Comment 1 Petr Hrebejk 2004-09-29 16:53:02 UTC
Should be fixed now. Test for the case of getValue() without listeners
attached to the action was added.

Checking in
projectui/src/org/netbeans/modules/project/ui/actions/FileCommandAction.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/FileCommandAction.java,v
 <--  FileCommandAction.java
new revision: 1.7; previous revision: 1.6
done
Checking in
projectui/src/org/netbeans/modules/project/ui/actions/LookupSensitiveAction.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/LookupSensitiveAction.java,v
 <--  LookupSensitiveAction.java
new revision: 1.6; previous revision: 1.5
done
Checking in
projectui/src/org/netbeans/modules/project/ui/actions/ProjectAction.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/ProjectAction.java,v
 <--  ProjectAction.java
new revision: 1.4; previous revision: 1.3
done
Processing log script arguments...
More commits to come...
Checking in
projectui/test/unit/src/org/netbeans/modules/project/ui/actions/LookupSensitiveActionTest.java;
/cvs/projects/projectui/test/unit/src/org/netbeans/modules/project/ui/actions/LookupSensitiveActionTest.java,v
 <--  LookupSensitiveActionTest.java
new revision: 1.2; previous revision: 1.1
done
Checking in
projectui/test/unit/src/org/netbeans/modules/project/ui/actions/ProjectActionTest.java;
/cvs/projects/projectui/test/unit/src/org/netbeans/modules/project/ui/actions/ProjectActionTest.java,v
 <--  ProjectActionTest.java
new revision: 1.2; previous revision: 1.1
done
Processing log script arguments...
More commits to come...
Checking in
projectuiapi/src/org/netbeans/spi/project/ui/support/ProjectSensitiveActions.java;
/cvs/projects/projectuiapi/src/org/netbeans/spi/project/ui/support/ProjectSensitiveActions.java,v
 <--  ProjectSensitiveActions.java
new revision: 1.8; previous revision: 1.7
done
Comment 2 Jaromir Uhrik 2005-07-14 16:18:02 UTC
Verified.