Skip to main content



      Home
Home » Modeling » UML2 » Auto imports org.eclipse.uml2.uml
Auto imports org.eclipse.uml2.uml [message #1496807] Wed, 03 December 2014 04:32 Go to next message
Eclipse UserFriend
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 04:32] by Moderator

Re: Auto imports org.eclipse.uml2.uml [message #1497027 is a reply to message #1496807] Wed, 03 December 2014 08:31 Go to previous messageGo to next message
Eclipse UserFriend
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 09:21 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 05:07:45 EDT 2025

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

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

Back to the top