Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336197 - Code Completion or Type resolution does not happen for newly added import packages
Summary: Code Completion or Type resolution does not happen for newly added import pac...
Status: RESOLVED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Query2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-03 03:51 EST by Ashwani Kr Sharma CLA
Modified: 2011-05-17 18:03 EDT (History)
2 users (show)

See Also:


Attachments
Patch for org.eclipse.emf.query2.stringsyntax plugin containing fix for refresh of import scope on change of import statements (1.25 KB, text/plain)
2011-03-08 01:36 EST, manasa CLA
wayne.beaton: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
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