Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » place of import statements
place of import statements [message #690315] Wed, 29 June 2011 11:15 Go to next message
st oehm is currently offline st oehmFriend
Messages: 79
Registered: October 2009
Member
hello to everybody,

i wonder if there is a way in Java to place the import statements at another place then the top of a file. for example is it possible to declare an importstatement only in a code block, in a statement or in a innerClass?
i need this because i´m writing a codegen from uml to java and there it is possible to place imports almost everywhere.
every hint is welcome

best regards
Re: place of import statements [message #690415 is a reply to message #690315] Wed, 29 June 2011 13:33 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

No.

And this isn't an Eclipse question. If you have questions on Java, you
should use a more appropriate forum, JGuru, JavaRanch and stackOverflow
come to mind.


On 29-Jun-11 05:15, stoehm wrote:
> hello to everybody,
>
> i wonder if there is a way in Java to place the import statements at
> another place then the top of a file. for example is it possible to
> declare an importstatement only in a code block, in a statement or in a
> innerClass?
> i need this because i´m writing a codegen from uml to java and there it
> is possible to place imports almost everywhere.
> every hint is welcome
>
> best regards
Re: place of import statements [message #690858 is a reply to message #690415] Thu, 30 June 2011 10:34 Go to previous message
st oehm is currently offline st oehmFriend
Messages: 79
Registered: October 2009
Member
thanks for your reply
i am sorry for posting in the wrong forum, i just read newcomers and thougth that could be rigth there
best regards
Previous Topic:Eclipse source code
Next Topic:Trouble With "Hello World"
Goto Forum:
  


Current Time: Tue Apr 16 16:50:15 GMT 2024

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

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

Back to the top