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 203300 - Hotkey for 'Save All' command invokes context of modified file
Summary: Hotkey for 'Save All' command invokes context of modified file
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: UI
: 203339 206421 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-07 12:52 UTC by leprosus
Modified: 2012-03-22 14:22 UTC (History)
4 users (show)

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 leprosus 2011-10-07 12:52:24 UTC
Product Version = NetBeans IDE 7.1 Beta (Build 201109252201)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) Client VM 21.0-b17

If press Ctrl + Shift + S then
on the first press it saves only actual document
on the second press saves others documents.

IMHO Will be better if that command saves all documents at once.
Comment 1 Marian Mirilovic 2011-10-10 07:09:39 UTC
*** Bug 203339 has been marked as a duplicate of this bug. ***
Comment 2 Miloslav Metelka 2011-10-12 13:23:15 UTC
SaveAllAction managed by platform/actions.
Comment 3 280Z28 2011-10-13 14:37:27 UTC
When I press Ctrl+Shift+S (bound to Save All Files) while the currently active file is modified, only the current file is saved. If the current file is not modified, all other files do get saved properly.

This behavior only occurs when pressing the Ctrl+Shift+S binding. The Save All buttons on the toolbar and File menu work properly.
Comment 4 Jaroslav Tulach 2011-10-25 05:56:10 UTC
Caused by TopComponent using createContextAware(...) to create the right action to use. Then the context switches from the global one, to context of the single file.

The best would be to convince SaveAllAction to not implement ContextAwareAction interface, as it is clearly not working on local context anyway.
Comment 5 Jaroslav Tulach 2011-11-03 20:40:54 UTC
ergonomics#056349dead3d
Comment 6 Quality Engineering 2011-11-09 16:13:34 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/056349dead3d
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #203300: Actions bound to specific context cannot be context aware
Comment 7 Jaroslav Tulach 2012-03-22 14:22:58 UTC
*** Bug 206421 has been marked as a duplicate of this bug. ***