Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322610

Summary: [EditorMgmt] Editor's isSaveAsAllowed not called when clicking nodes in NavigatorViewer
Product: [Eclipse Project] Platform Reporter: Janusz Dalecki <janusz.dalecki>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: prakash, pwebster
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
zip file containing project that demonstrates the problem none

Description Janusz Dalecki CLA 2010-08-12 21:45:59 EDT
Created attachment 176515 [details]
zip file containing project that demonstrates the problem

Editor's isSaveAsAllowed() method is not called when clicking nodes in NavigatorViewer. This is causing problems as the "Save As..." button in toolbar is not enabled/disabled properly.

Steps to reproduce the problem:
1) Create c:\tmp folder and create in it two text files with extension .jd (file1.jd, file2.jd etc - using notepad.exe or something like that - content of the files does not matter, can be empty)

2) Unzip the project and run it ( by default it will show the content of "c:\tmp" folder- you can change it editing ApplicationWorkbenchAdvisor class).

3) Open both files by double clicking them (their editors will be shown as tab views in editor area).

4) Select the button "Link with Editor" (so it is on) in Navigator View toolbar

5) The when you start clicking on the tab views the isSaveAsAllowed() method is called as expected - I have put a call to beep to make audio sound whenever isSaveAsAllowed is called.

6) When you start clicking on the nodes in NavigatorViewer the correct editor tab is activated but the method isSaveAsAllowed() of the editor is not called.

Regards,
Janusz
Comment 1 Remy Suen CLA 2010-11-09 10:11:24 EST
Cannot reproduce the problem with 'Package Explorer' or the 'Navigator'. The problem manifests itself with the 'Project Explorer' though. That is the view you are having problems with, correct?
Comment 2 Eclipse Webmaster CLA 2019-09-06 15:30:13 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 3 Eclipse Genie CLA 2021-11-26 07:45:45 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.