|
Re: Auto imports org.eclipse.uml2.uml [message #1497027 is a reply to message #1496807] |
Wed, 03 December 2014 13:31 |
|
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 |
Ed Willink Messages: 7655 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?
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02544 seconds