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

Bug 364654

Summary: [Xtend] Add quick fix for importing classes
Product: [Modeling] TMF Reporter: Steve Ash <stevemash>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Steve Ash CLA 2011-11-23 16:11:57 EST
Build Identifier: M20110909-1335

In the Java editor if I get an error due to a missing import, I can execute the ctrl+1 quick fix and be presented with the "Add import" option.  This is not yet implemented in xtend it appears. 

Note that I do get auto-completion syntax so there is an easy workaround, but clearly my muscle memory is used to the Java quick fix.  One small note regarding this: if I am inside a function and I type:

Collections::

and then hit ctrl+space then I get no auto-completion assistance to add the import- I just get nothing.  If instead I hit ctrl+space _before_ the :: operator, then I get import auto-completion suggestions of java.util.Collections, etc. as expected.  Seems reasonable to offer them in both places, no?



Reproducible: Always

Steps to Reproduce:
1.Open the xtend distribution tutorial project, then Xtend01_HelloWord.xtend
2. In the testHelloWorld method on a new line type Collections::
Comment 1 Jan Koehnlein CLA 2011-11-24 03:51:56 EST
Already fixed on MASTER.
Comment 2 Karsten Thoms CLA 2017-09-19 18:04:05 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 18:14:09 EDT
Closing all bugs that were set to RESOLVED before Neon.0