Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » if i want to cancel all java.awt......
if i want to cancel all java.awt...... [message #1287192] Mon, 07 April 2014 14:06 Go to next message
Mak Matthew is currently offline Mak MatthewFriend
Messages: 1
Registered: April 2014
Junior Member
hi, im new to java eclipse
for example, if my code is like this
jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {

i want to import java.awt.event and cancel all the java.awt.event above and in the whole source code
how can i do that please?
thank you!
Re: if i want to cancel all java.awt...... [message #1287372 is a reply to message #1287192] Mon, 07 April 2014 18:23 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
Try the Organize Imports menu item on the Source menu. I know it will add missing imports if you don't have them. I don't know if it will convert explicit package references to imports which seems to be what you want.
Re: if i want to cancel all java.awt...... [message #1369840 is a reply to message #1287372] Tue, 20 May 2014 19:21 Go to previous message
Noopur Gupta is currently offline Noopur GuptaFriend
Messages: 58
Registered: December 2012
Member
You can do that individually at each fully qualified name by placing the caret at the type name (eg: at 'MouseEvent' in 'java.awt.event.MouseEvent') and pressing Ctrl+Shift+M.
It is also available in the context-menu:
Source (Alt+Shift+S) > Add Import.
Previous Topic:How do you disable Java Update on Mac OS X Mavericks 10.9.2?
Next Topic:How to manage multiple modifications on the same AST
Goto Forum:
  


Current Time: Thu Apr 18 00:36:21 GMT 2024

Powered by FUDForum. Page generated in 0.01756 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top