Community
Participate
Working Groups
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.
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.
This was reproducible with the Tracing Example, but I have fixed it.
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.