Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Closing bracket
Closing bracket [message #47154] Tue, 03 June 2003 09:22 Go to next message
Eclipse UserFriend
Originally posted by: stelian.iancu.gmx.net

Hello!

I am using the latest integration Build (20030528) and, suddenly, Eclipse
doesn't automatically close my opening brackets. This is very annoying,
given that I've got used with it closing those brackets. Is there a setting
somewhere to turn this on?

--
Stelian Iancu
Linux Registered User 287835

Be different. Think.
Re: Closing bracket [message #47231 is a reply to message #47154] Tue, 03 June 2003 12:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.eicher.gmx.ch.nodomain

Automatic brace closing has been changed - the brace will only be closed
when you hit Return after the brace and actually are entering a new block.
-tom

"Stelian Iancu" <stelian.iancu@gmx.net> wrote in message
news:oprp6pnmhx9svh55@news.gmx.net...
> Hello!
>
> I am using the latest integration Build (20030528) and, suddenly, Eclipse
> doesn't automatically close my opening brackets. This is very annoying,
> given that I've got used with it closing those brackets. Is there a
setting
> somewhere to turn this on?
>
> --
> Stelian Iancu
> Linux Registered User 287835
>
> Be different. Think.
Re: Closing bracket [message #48112 is a reply to message #47231] Wed, 04 June 2003 04:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: billy.hotmail.com

Tom Eicher wrote:

> Automatic brace closing has been changed - the brace will only be closed
> when you hit Return after the brace and actually are entering a new block.
> -tom
>

I've tried the latest nightly build too, and this is what happens.
I think I'd prefer having it automatically closed, at least it would be
consistent.

rgds
x
Re: Closing bracket [message #48238 is a reply to message #48112] Wed, 04 June 2003 05:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

blah <billy@hotmail.com> wrote:

>> Automatic brace closing has been changed - the brace will only be closed
>> when you hit Return after the brace and actually are entering a new block.
> I've tried the latest nightly build too, and this is what happens.
> I think I'd prefer having it automatically closed, at least it would be
> consistent.
+1

--
SY, Konstantin.
Re: Closing bracket [message #48330 is a reply to message #48112] Wed, 04 June 2003 06:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.eicher.gmx.ch.nodomain

> I've tried the latest nightly build too, and this is what happens.
> I think I'd prefer having it automatically closed, at least it would be
> consistent.

consistent with?


NB:
The reason for this change was the trouble when someone puts a block on one
line, like so:

if (condition) { return; }

which you cannot detect from the context.

Plus, initializing arrays is better, although this can be inferred from what
a user types

Object[] arr= new Object[] { null, null };
Re: Closing bracket [message #49155 is a reply to message #48238] Wed, 04 June 2003 20:35 Go to previous messageGo to next message
Matthew King is currently offline Matthew KingFriend
Messages: 17
Registered: July 2009
Junior Member
"Konstantin Scheglov" <scheglov_ke@nlmk.ru> wrote in
news:dAVN7klKDHA.3608@fairy.ao.nlmk:

>>> Automatic brace closing has been changed - the brace will only be
>>> closed when you hit Return after the brace and actually are entering
>>> a new block.
>> I've tried the latest nightly build too, and this is what happens.
>> I think I'd prefer having it automatically closed, at least it would
>> be consistent.
> +1

-1; I like the new way better.

--
Matt King
Re: Closing bracket [message #50855 is a reply to message #48330] Thu, 05 June 2003 04:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stelian.iancu.gmx.net

Tom Eicher wrote:

A problem appears when I try to use an anonymous inner class (for event
handling, for example). Let's take, for example:

mTable.addMouseListener(new MouseAdapter())

Now, I want to open the brace. So it should look like this:

mTable.addMouseListener(new MouseAdapter(){)

but instead, it looks like this:

mTable.addMouseListener(new MouseAdapter()){

So I have to delete the last brace:

mTable.addMouseListener(new MouseAdapter()

and then:

mTable.addMouseListener(new MouseAdapter() {
});

So my point is that, for this situation, the old behavior is better.

--
Stelian Iancu
Linux registered user 287835

Be different. Think.
Re: Closing bracket [message #51194 is a reply to message #50855] Fri, 06 June 2003 06:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

This seems like a bug, not a valid changed behavior.

Bob

"Stelian Iancu" <stelian.iancu@gmx.net> wrote in message
news:j0v2r-k82.ln1@paradise.bmfms.ro...
> Tom Eicher wrote:
>
> A problem appears when I try to use an anonymous inner class (for event
> handling, for example). Let's take, for example:
>
> mTable.addMouseListener(new MouseAdapter())
>
> Now, I want to open the brace. So it should look like this:
>
> mTable.addMouseListener(new MouseAdapter(){)
>
> but instead, it looks like this:
>
> mTable.addMouseListener(new MouseAdapter()){
>
> So I have to delete the last brace:
>
> mTable.addMouseListener(new MouseAdapter()
>
> and then:
>
> mTable.addMouseListener(new MouseAdapter() {
> });
>
> So my point is that, for this situation, the old behavior is better.
>
> --
> Stelian Iancu
> Linux registered user 287835
>
> Be different. Think.
Re: Closing bracket [message #51323 is a reply to message #50855] Fri, 06 June 2003 07:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.eicher.gmx.ch.nodomain

I've had this situation myself - not really what's intended... There will
probably be some touch up, but it might not be first priority... Can you
enter (another!) bug report on jdt text for smart brace?

Note that for a quick workaround in the newest release, you can press
"Insert" to toggle the input mode from "Smart Insert" to "Insert" which will
disable any (not so) smart behaviour.

-tom

"Stelian Iancu" <stelian.iancu@gmx.net> wrote in message
news:j0v2r-k82.ln1@paradise.bmfms.ro...
> A problem appears when I try to use an anonymous inner class (for event
> handling, for example). Let's take, for example:
>
> mTable.addMouseListener(new MouseAdapter())
>
> Now, I want to open the brace. So it should look like this:
>
> mTable.addMouseListener(new MouseAdapter(){)
>
> but instead, it looks like this:
>
> mTable.addMouseListener(new MouseAdapter()){
Re: Closing bracket [message #51432 is a reply to message #51323] Fri, 06 June 2003 09:20 Go to previous message
Eclipse UserFriend
Originally posted by: stelian.iancu.gmx.net

On Fri, 6 Jun 2003 09:51:42 +0200, Tom Eicher <tom.eicher@gmx.ch.nodomain>
wrote:

> I've had this situation myself - not really what's intended... There will
> probably be some touch up, but it might not be first priority... Can you
> enter (another!) bug report on jdt text for smart brace?
>

Done. https://bugs.eclipse.org/bugs/show_bug.cgi?id=38565

> Note that for a quick workaround in the newest release, you can press
> "Insert" to toggle the input mode from "Smart Insert" to "Insert" which
> will
> disable any (not so) smart behaviour.
>
> -tom
>

--
Stelian Iancu
Linux Registered User 287835

Be different. Think.
Previous Topic:external jar
Next Topic:Debugger seems to be very slow
Goto Forum:
  


Current Time: Sat Dec 21 15:47:51 GMT 2024

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

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

Back to the top