Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Auto imports org.eclipse.uml2.uml
Auto imports org.eclipse.uml2.uml [message #1496807] Wed, 03 December 2014 09:32 Go to next message
Hiroki Kondo is currently offline Hiroki KondoFriend
Messages: 47
Registered: July 2009
Member
Hi all,

UML2, in some classes are same name of "java.lang".

ex. Class, Package ...

How to import these classes directly?

When I write the code using these class,
now I have to import by hand.

Is there are good way to configure my workspace?

[Updated on: Wed, 03 December 2014 09:32]

Report message to a moderator

Re: Auto imports org.eclipse.uml2.uml [message #1497027 is a reply to message #1496807] Wed, 03 December 2014 13:31 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 1168
Registered: July 2009
Location: Canada
Senior Member

Hi,

Unless something clever can be configured in the Java -> Editor ->
Content Assist preference pages, I don't know of anything automatic to
help with these imports. Perhaps if you add the org.eclipse.uml2.uml
package as a favorite in the Favorites page that will help.

What I always do is type, for example, Class then hit Cmd+Space to
complete it to org.eclipse.uml2.uml.Class, then Cmd+Shift+M to add the
import.

Cheers,

Christian


On 2014-12-03 09:32:21 +0000, Hiroki Kondo said:

> Hi all,
>
> In some classes are same name of "java.lang".
>
> ex. Class, Package ...
>
> How to import these classes directly?
>
> When I write the code using these class,
> now I have to import by hand.
>
> Is there are good way to configure my workspace?
Re: Auto imports org.eclipse.uml2.uml [message #1497077 is a reply to message #1497027] Wed, 03 December 2014 14:21 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5843
Registered: July 2009
Senior Member
Hi

You can choose to import a non java.lang.Class/Package allowing
shortform use of Class/Package, provided that you do not also want
java.lang.Class/Package.

Unfortunately completion assist seems to have degraded in Luna and so
sometimes you are offered nothing. It has always been the case that you
get no completion assist for XXX in List<XXX> until you have corrected
imported java.util.List.

Regards

Ed Willink

On 03/12/2014 13:31, Christian W. Damus wrote:
> Hi,
>
> Unless something clever can be configured in the Java -> Editor ->
> Content Assist preference pages, I don't know of anything automatic to
> help with these imports. Perhaps if you add the org.eclipse.uml2.uml
> package as a favorite in the Favorites page that will help.
>
> What I always do is type, for example, Class then hit Cmd+Space to
> complete it to org.eclipse.uml2.uml.Class, then Cmd+Shift+M to add the
> import.
>
> Cheers,
>
> Christian
>
>
> On 2014-12-03 09:32:21 +0000, Hiroki Kondo said:
>
>> Hi all,
>>
>> In some classes are same name of "java.lang".
>>
>> ex. Class, Package ...
>>
>> How to import these classes directly?
>>
>> When I write the code using these class,
>> now I have to import by hand.
>>
>> Is there are good way to configure my workspace?
>
>
Previous Topic:How to specify unspecified navigability?
Next Topic:Inconsistent end-of-line with UML model editor on windows xp/windows 7
Goto Forum:
  


Current Time: Thu Apr 26 18:48:57 GMT 2018

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

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