Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364654 - [Xtend] Add quick fix for importing classes
Summary: [Xtend] Add quick fix for importing classes
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 16:11 EST by Steve Ash CLA
Modified: 2017-09-19 18:14 EDT (History)
1 user (show)

See Also:


Attachments

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