Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Eclipse Foundation » Customization of Programming Environment.
Customization of Programming Environment. [message #51526] Sun, 27 January 2008 11:12 Go to next message
Eclipse UserFriend
Originally posted by: peterkwan00.netvigator.com

This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C86118.83F5C2D0
Content-Type: text/plain;
charset="big5"
Content-Transfer-Encoding: quoted-printable

Dear sir,

Would you mind to tell me how to customize editor environment so =
that I don't need to type the codes such as, import java.util.*, import =
javax.swing.*, . . .etc again whenever I start to write a new Java =
program by opening a new editor.

--=20
Thanks for your help in advance.

Regards,

Peter L. M. Kwan
------=_NextPart_000_000A_01C86118.83F5C2D0
Content-Type: text/html;
charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 6.00.2900.3243" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Dear sir,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; Would you mind to tell me how to customize =
editor=20
environment so that I don't need to&nbsp;type&nbsp;the codes such as, =
<FONT=20
color=3D#800000><STRONG><EM>import java.util.*</EM></STRONG></FONT><FONT =

color=3D#000000>, </FONT><FONT color=3D#800000><STRONG><EM>import=20
javax.swing.*</EM></STRONG></FONT><FONT color=3D#000000>, . . .etc again =
whenever=20
I start to write a new Java&nbsp;program by opening a new =
editor.</FONT></DIV>
<DIV><BR>-- <BR>Thanks for your help in advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Peter L. M. Kwan</DIV></BODY></HTML>

------=_NextPart_000_000A_01C86118.83F5C2D0--
Re: Customization of Programming Environment. [message #51551 is a reply to message #51526] Sun, 27 January 2008 13:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------060507010904050208050501
Content-Type: text/plain; charset=Big5
Content-Transfer-Encoding: 7bit

Peter,

This is not an appropriate newsgroup for technical questions. It's
intended only for discussing issues related to the operations of the
foundation itself and for making announcements of general interest to
the whole Eclipse community. Please use
news://news.eclipse.org/eclipse.newcomer for newbie questions.

I'm not sure there is a customization to do what you want nor do I think
what you want makes all that much sense since wildcard imports are not
generally good practice because changes to the contents of a package can
result in this type of import ambiguously referring to a type that's
defined in more than one package. JDT have a very nice "Source->Organize
Imports" action that you'll grow to love. Also, as you are typing a
name, you can hit Ctrl-O and JDT will offer names as suggestions. When
typing a class name, this will give you a choice of which class to
import, if there is more than one possible choice, and will insert the
import for you, with imports all nicely grouped and sorted
alphabetically This same action does name completion on method calls. So
I can't imagine why you would want to pollute your new files with
wildcard imports and I'm quite sure you will soon agree with me.

Note that configurable things are generally available view the
Properties... popup on a resource or from Windows->Preferences... so
when looking for cool feature, hunt through those...


Peter L. M. Kwan wrote:
> Dear sir,
> Would you mind to tell me how to customize editor environment so that
> I don't need totypethe codes such as, */import java.util.*/*, */import
> javax.swing.*/*, . . .etc again whenever I start to write a new
> Javaprogram by opening a new editor.
>
> --
> Thanks for your help in advance.
> Regards,
> Peter L. M. Kwan


--------------060507010904050208050501
Content-Type: text/html; charset=Big5
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=Big5" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Peter,<br>
<br>
This is not an appropriate newsgroup for technical questions.&nbsp; It's
intended only for discussing issues related to the operations of the
foundation itself and for making announcements of general interest to
the whole Eclipse community.&nbsp; Please use <a
href="news://news.eclipse.org/eclipse.newcomer">news://news.eclipse.org/eclipse.newcomer</a>
for newbie questions.<br>
<br>
I'm not sure there is a customization to do what you want nor do I
think what you want makes all that much sense since wildcard imports
are not generally good practice because changes to the contents of a
package can result in this type of import ambiguously referring to a
type that's defined in more than one package.&nbsp; JDT have a very nice
"Source-&gt;Organize Imports" action that you'll grow to love.&nbsp; Also,
as you are typing a name, you can hit Ctrl-O and JDT will offer names
as suggestions.&nbsp; When typing a class name, this will give you a choice
of which class to import, if there is more than one possible choice,
and will insert the import for you, with imports all nicely grouped and
sorted alphabetically&nbsp; This same action does name completion on method
calls.&nbsp; So I can't imagine why you would want to pollute your new files
with wildcard imports and I'm quite sure you will soon agree with me.<br>
<br>
Note that configurable things are generally available view the
Properties... popup on a resource or from Windows-&gt;Preferences... so
when looking for cool feature, hunt through those...<br>
<br>
<br>
Peter L. M. Kwan wrote:
<blockquote cite="mid:fnhou8$lcb$1@build.eclipse.org" type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.3243" name="GENERATOR">
<style></style>
<div>Dear sir,</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; Would you mind to tell me how to customize editor
environment so that I don't need to&nbsp;type&nbsp;the codes such as, <font
color="#800000"><strong><em>import java.util.*</em></strong></font><font
color="#000000">, </font><font color="#800000"><strong><em>import
javax.swing.*</em></strong></font><font color="#000000">, . . .etc
again whenever I start to write a new Java&nbsp;program by opening a new
editor.</font></div>
<div><br>
-- <br>
Thanks for your help in advance.</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>&nbsp;</div>
<div>Peter L. M. Kwan</div>
</blockquote>
<br>
</body>
</html>

--------------060507010904050208050501--
Re: Customization of Programming Environment. [message #51601 is a reply to message #51551] Tue, 29 January 2008 14:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Ed Merks wrote:
> Peter,
>
> This is not an appropriate newsgroup for technical questions. It's
> intended only for discussing issues related to the operations of the
> foundation itself and for making announcements of general interest to
> the whole Eclipse community. Please use
> news://news.eclipse.org/eclipse.newcomer for newbie questions.
>
> I'm not sure there is a customization to do what you want nor do I think
> what you want makes all that much sense since wildcard imports are not
> generally good practice because changes to the contents of a package can
> result in this type of import ambiguously referring to a type that's
> defined in more than one package. JDT have a very nice
> "Source->Organize Imports" action that you'll grow to love. Also, as
> you are typing a name, you can hit Ctrl-O and JDT will offer names as
> suggestions. When typing a class name, this will give you a choice of
> which class to import, if there is more than one possible choice, and
> will insert the import for you, with imports all nicely grouped and
> sorted alphabetically This same action does name completion on method
> calls.

I think Ed meant to say Ctrl+Space, which invokes the feature called
Content Assist (some people call it "code completion" or
"auto-complete"). Content Assist is available all over the place in
Eclipse and I agree with Ed, it is one of the most lovable features.

Eric
Re: Customization of Programming Environment. [message #51690 is a reply to message #51601] Tue, 29 January 2008 14:51 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------020701040603090709080300
Content-Type: text/plain; charset=Big5
Content-Transfer-Encoding: 7bit

Eric,

I did indeed! Although I love Ctrl-O too, but for a different reason
(including Ctrl-O twice). And I love that you can even use Ctrl-space in
class body to create an override. It's so nice that all these keys don't
conflict with my vi key bindings too so I get the best of both worlds!


Eric Rizzo wrote:
> Ed Merks wrote:
>
>> Peter,
>>
>> This is not an appropriate newsgroup for technical questions. It's
>> intended only for discussing issues related to the operations of the
>> foundation itself and for making announcements of general interest to
>> the whole Eclipse community. Please use
>> news://news.eclipse.org/eclipse.newcomer for newbie questions.
>>
>> I'm not sure there is a customization to do what you want nor do I think
>> what you want makes all that much sense since wildcard imports are not
>> generally good practice because changes to the contents of a package can
>> result in this type of import ambiguously referring to a type that's
>> defined in more than one package. JDT have a very nice
>> "Source->Organize Imports" action that you'll grow to love. Also, as
>> you are typing a name, you can hit Ctrl-O and JDT will offer names as
>> suggestions. When typing a class name, this will give you a choice of
>> which class to import, if there is more than one possible choice, and
>> will insert the import for you, with imports all nicely grouped and
>> sorted alphabetically This same action does name completion on method
>> calls.
>>
>
> I think Ed meant to say Ctrl+Space, which invokes the feature called
> Content Assist (some people call it "code completion" or
> "auto-complete"). Content Assist is available all over the place in
> Eclipse and I agree with Ed, it is one of the most lovable features.
>
> Eric
>


--------------020701040603090709080300
Content-Type: text/html; charset=Big5
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=Big5" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Eric,<br>
<br>
I did indeed!&nbsp; Although I love Ctrl-O too, but for a different reason
(including Ctrl-O twice).&nbsp; And I love that you can even use Ctrl-space
in class body to create an override.&nbsp; It's so nice that all these keys
don't conflict with my vi key bindings too so I get the best of both
worlds!<br>
<br>
<br>
Eric Rizzo wrote:
<blockquote cite="mid:fnnea2$vrp$1@build.eclipse.org" type="cite">
<pre wrap="">Ed Merks wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Peter,

This is not an appropriate newsgroup for technical questions. It's
intended only for discussing issues related to the operations of the
foundation itself and for making announcements of general interest to
the whole Eclipse community. Please use
<a class="moz-txt-link-freetext" href="news://news.eclipse.org/eclipse.newcomer">news://news.eclipse.org/eclipse.newcomer</a> for newbie questions.

I'm not sure there is a customization to do what you want nor do I think
what you want makes all that much sense since wildcard imports are not
generally good practice because changes to the contents of a package can
result in this type of import ambiguously referring to a type that's
defined in more than one package. JDT have a very nice
"Source-&gt;Organize Imports" action that you'll grow to love. Also, as
you are typing a name, you can hit Ctrl-O and JDT will offer names as
suggestions. When typing a class name, this will give you a choice of
which class to import, if there is more than one possible choice, and
will insert the import for you, with imports all nicely grouped and
sorted alphabetically This same action does name completion on method
calls.
</pre>
</blockquote>
<pre wrap=""><!---->
I think Ed meant to say Ctrl+Space, which invokes the feature called
Content Assist (some people call it "code completion" or
"auto-complete"). Content Assist is available all over the place in
Eclipse and I agree with Ed, it is one of the most lovable features.

Eric
</pre>
</blockquote>
<br>
</body>
</html>

--------------020701040603090709080300--
Previous Topic:Looking for strategic partner for networking event @ EclipseCon - Santa Clara
Next Topic:Voting is Open for the Individual Eclipse Community Awards
Goto Forum:
  


Current Time: Sat Dec 21 16:57:01 GMT 2024

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

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

Back to the top