Bug 258215

Summary: [jdt-weaving] Index aspects without requiring changes
Product: [Tools] AJDT Reporter: Ramnivas Laddad <ramnivas>
Component: UIAssignee: AJDT-inbox <AJDT-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: andrew.eisenberg
Version: DEVELOPMENT   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Ramnivas Laddad CLA 2008-12-09 20:01:25 EST
This is for the weaving-based AJDT.

Currently, AJDT requires a change in an aspect to be indexed (and thus be available with Cttl+Shift+T). For the use cases such as opening a new project (say after a fresh checkout from a version control system), this can be a problem i.e. user may think that the aspect doesn't exist, when in fact it just hasn't been indexed.
Comment 1 Andrew Eisenberg CLA 2008-12-10 11:25:04 EST
Seems that this would be more of a one-time thing, that you may want your aspects (re-)indexed when the weaving plugin is firs installed, and thereafter indexing can be handled by JDT.  

Perhaps a better solution would be to prompt the user on install if they would like aspects re-indexed, and then also provide a button for this in the preferences page.
Comment 2 Andrew Eisenberg CLA 2008-12-10 12:17:31 EST
I committed a small change that puts a button on the preferences page to reindex the whole workspace.  This is not ideal since it is a hidden feature, but is perhaps sufficient for now.  In later versions, I would like to add a prompt on install to reindex.
Comment 3 Andrew Eisenberg CLA 2008-12-10 12:17:34 EST
Created attachment 120075 [details]
mylyn/context/zip
Comment 4 Andrew Eisenberg CLA 2009-10-06 23:50:19 EDT
Fixed.  Now, user is prompted on the first startup after weaving is enabled to reindex all aspects.