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

Bug 336197

Summary: Code Completion or Type resolution does not happen for newly added import packages
Product: [Modeling] EMF Reporter: Ashwani Kr Sharma <ashw.kumar>
Component: Query2Assignee: Project Inbox <emf.query2-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: manasa.priya.c, saurav.sarkar1
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch for org.eclipse.emf.query2.stringsyntax plugin containing fix for refresh of import scope on change of import statements wayne.beaton: iplog+

Description Ashwani Kr Sharma CLA 2011-02-03 03:51:11 EST
Build Identifier: 

Code Completion or Type resolution does not happen for newly added import packages in the Query Editor.
It works after restart of Editor

Reproducible: Always

Steps to Reproduce:
Put an import run code completion. Add new import statement. A restart is required to get new items in code completion.
Comment 1 manasa CLA 2011-03-08 01:36:21 EST
Created attachment 190615 [details]
Patch for org.eclipse.emf.query2.stringsyntax plugin containing fix for refresh of import scope on change of import statements
Comment 2 manasa CLA 2011-03-08 01:39:10 EST
This is a reproducible issue and the fix for the same has been provided.

Import scope was only getting intialized when the query editor is opened.Even though there is a change in import statement,new scope was assigned to import scope only on re-opening the editor.

This is now fixed to refresh the import scope on changing the import statements.
Please find the fix attached as a patch above.

Thanks & Regards,
Manasa
Comment 3 saurav sarkar CLA 2011-03-08 02:15:33 EST
Closing the issue as the fix has been submitted