Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339992 - more than one dirty editor: "save and launch" pops up when saving
Summary: more than one dirty editor: "save and launch" pops up when saving
Status: CLOSED DUPLICATE of bug 289220
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 06:06 EDT by arne anka CLA
Modified: 2011-04-04 10:00 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arne anka CLA 2011-03-15 06:06:04 EDT
Build Identifier: 20110301-1815

i edit two files and need to save only one.
when hitting "ctrl+s" a dialog pops up
"Save and Launch"
asking to save the other file.
there's a checkbox "always save before launching" -- but i don't launch anything!

it's rather annoying to have such a popup always interrupting my workflow, but i fail to understand 
a) why that happens all of a sudden, with files not launchable at all, no server or application running at all
b) where to disable this behaviour, be it in preferences or by way of "do not ask again"

Reproducible: Always

Steps to Reproduce:
1. open two editors
2. edit in both
3. save one
Comment 1 Dani Megert CLA 2011-03-15 07:50:26 EDT
Are you using 4.1 as indicated in the version field? 

> 1. open two editors
Which kind of editors? Do you open two different files?

> 2. edit in both
> 3. save one
Does the dialog also appear if you use File > Save instead of Ctrl+S?
Comment 2 arne anka CLA 2011-03-20 13:02:53 EDT
just, accidentially, found out, it is triggered by having enabled

project -> build automatically 

which makes "launching" more clear.
a clear information which kind of launch is attempted would tsill help, though.
and i was always thinking

project -> build automatically 

only affects the project in which i enabled that checkbox -- turns out, it affects _all_ projects ... but that's another issue.
Comment 3 Prakash Rangaraj CLA 2011-03-22 05:15:14 EDT
(In reply to comment #1)
> Are you using 4.1 as indicated in the version field? 
> 
> > 1. open two editors
> Which kind of editors? Do you open two different files?
> 
> > 2. edit in both
> > 3. save one
> Does the dialog also appear if you use File > Save instead of Ctrl+S?

      Can you please answer these questions?
Comment 4 arne anka CLA 2011-03-25 19:08:55 EDT
> > Are you using 4.1 as indicated in the version field? 

nope, 3.6.2
 
> > > 1. open two editors
> > Which kind of editors? Do you open two different files

jsp, yes

> > > 2. edit in both
> > > 3. save one
> > Does the dialog also appear if you use File > Save instead of Ctrl+S?

yes
Comment 5 Dani Megert CLA 2011-03-28 09:32:37 EDT
>i was always thinking
>
>project -> build automatically 
>
>only affects the project in which i enabled that checkbox -- turns out, it
>affects _all_ projects ... but that's another issue.
Correct, this is a global setting i.e. 'Build Workspace Automatically'.

The bigger question is who/what is launched on "save".
Comment 6 Prakash Rangaraj CLA 2011-03-29 06:52:58 EDT
(In reply to comment #4)
> > > Which kind of editors? Do you open two different files
> 
> jsp, yes

     Does this happen when you edit .txt or .java files as well? And which JSP editor do you use? Is it from WTP?
Comment 7 arne anka CLA 2011-04-04 04:54:03 EDT
(In reply to comment #5)
> >i was always thinking
> >
> >project -> build automatically 
> >
> >only affects the project in which i enabled that checkbox -- turns out, it
> >affects _all_ projects ... but that's another issue.
> Correct, this is a global setting i.e. 'Build Workspace Automatically'.
> 
> The bigger question is who/what is launched on "save".

well, most likely some custom builder i defined (does nothing but find property files and copy them to WEB-INF/classes/)
Comment 8 Dani Megert CLA 2011-04-04 09:53:57 EDT
(In reply to comment #7)
> (In reply to comment #5)
> > >i was always thinking
> > >
> > >project -> build automatically 
> > >
> > >only affects the project in which i enabled that checkbox -- turns out, it
> > >affects _all_ projects ... but that's another issue.
> > Correct, this is a global setting i.e. 'Build Workspace Automatically'.
> > 
> > The bigger question is who/what is launched on "save".
> 
> well, most likely some custom builder i defined (does nothing but find property
> files and copy them to WEB-INF/classes/)

Adding an additional builder (Ant Builder or Program) should not trigger to save - unless of course the custom builder itself implements this.
Comment 9 Dani Megert CLA 2011-04-04 09:57:40 EDT
> Adding an additional builder (Ant Builder or Program) should not trigger to
> save - unless of course the custom builder itself implements this.

Sorry, this is only true for builders registered as 'Ant Builder'. If one registers a 'Program' then save is triggered.
Comment 10 Dani Megert CLA 2011-04-04 10:00:43 EDT

*** This bug has been marked as a duplicate of bug 289220 ***