Bug 79376 - Opening a closed AJ project does not reactivate the build button
Summary: Opening a closed AJ project does not reactivate the build button
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 1.2.0 M1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.2.1   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-24 08:41 EST by Helen Beeken CLA
Modified: 2005-08-05 08:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helen Beeken CLA 2004-11-24 08:41:32 EST
When you close an AJ project, the build button is deactivated for that 
project. However, reopening that project does not reactivate the build button.

To recreate:

(1) Create a new empty AJ project (New > Project > AspectJ Project). At this 
    point the build button should be activated.
(2) Close the project (right click and choose "close project"). At this point
    the build button should be deactivated
(3) Open the project (right click and choose "open project"). The build button
    is still deactivated.
Comment 1 Matt Chapman CLA 2005-03-11 10:33:12 EST
In the case of an empty project, this isn't really a problem because there isn't
anything to build anyway - as soon as a source file is added, the button becomes
active.

However there is one case when reopening a (non-empty) project doesn't
reactivate the build button. We don't yet sure of the exact conditions for this,
but it seems to happen with either the ajdt core or ui plugins.
Comment 2 Sian January CLA 2005-08-05 07:54:33 EDT
This was reproducible with the Tracing Example, but I have fixed it.
Comment 3 Sian January CLA 2005-08-05 08:30:15 EDT
Extra Note: The fix was added to the BuildConfigurator class, which is an 
ISelectionListener.  It was previously ignoring selection change events if the 
selected project had not changed, so I added a check to respond to the event 
if the project was the same but had previously been closed and was now open.