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

Bug 330674

Summary: Organize imports shortcut doesn't work in aspect editor
Product: [Tools] AJDT Reporter: Jon Steinich <jsteinich>
Component: CoreAssignee: AJDT-inbox <AJDT-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: andrew.eisenberg
Version: 2.1.1   
Target Milestone: 2.1.2   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Jon Steinich CLA 2010-11-19 10:43:08 EST
Build Identifier: 20100917-0705

When using the aspect editor (java or aj file), the keyboard shortcut for organizing imports doesn't work.  The menu option does work though.

The issue is worse when connected to https://bugs.eclipse.org/bugs/show_bug.cgi?id=295477

Here is an example:
public class ImportsTest {
	
	private Map<Long, String> val;

}

Reproducible: Always

Steps to Reproduce:
1.Create a new class
2.Open in aspect editor
3.Add a line that requires an import
4.Try the organize imports shortcut
Comment 1 Andrew Eisenberg CLA 2010-11-23 18:44:57 EST
Thanks for the test case.  bug 295477 is not easy to fix, but I was able to fix this one.

Added a few regression tests.  Will be available in next dev build.
Comment 2 Andrew Eisenberg CLA 2010-11-23 19:39:48 EST
Do you have a way to reliably reproduce bug 295477?
Comment 3 Jon Steinich CLA 2010-11-23 21:13:14 EST
(In reply to comment #2)
> Do you have a way to reliably reproduce bug 295477?

I don't know of anything at the moment, but I will try to keep a closer watch of it.
Comment 4 Andrew Eisenberg CLA 2010-11-23 23:07:37 EST
Thanks.  And attach anything you find to that bug.