Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), [message #124091] Fri, 28 April 2006 11:22 Go to next message
Darren Hurt is currently offline Darren HurtFriend
Messages: 91
Registered: July 2009
Member
I have a strange/subtle problem with the visual editor.

When it generates code for a titled border:

myTable.setBorder(javax.swing.BorderFactory.createTitledBord er(javax.swing.BorderFactory.createEtchedBorder(),
"Title"));
myTable.setSelectionMode(javax.swing.ListSelectionModel.SING LE_INTERVAL_SELECTION);


Upon closing the visual editor and opening it again, all subsequent code is
ignored (set values don't appear when I reopen my customizer),
but the actual values set by this line are set, and appear in my customizer.

If I then comment out this line, the values for all subsequent lines (e.g.
the selection mode) are recognized and appear in the customizer.

It seems that the expression is being parsed correctly, and yet somehow it
causes the rest to be ignored.

There is nothing in the logs, and I have run with the

org.eclipse.jem.proxy/remote/debug/vmtraceout=true

trace flag.

Any ideas?

Darren Hurt
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #124104 is a reply to message #124091] Fri, 28 April 2006 11:36 Go to previous messageGo to next message
Darren Hurt is currently offline Darren HurtFriend
Messages: 91
Registered: July 2009
Member
Make that any BorderFactory related expression for creating a border.



"Darren Hurt" <darren.hurt@coexis.com> wrote in message
news:e2stu2$v0$1@utils.eclipse.org...
>
>
>
>
> I have a strange/subtle problem with the visual editor.
>
> When it generates code for a titled border:
>
> myTable.setBorder(javax.swing.BorderFactory.createTitledBord er(javax.swing.BorderFactory.createEtchedBorder(),
> "Title"));
> myTable.setSelectionMode(javax.swing.ListSelectionModel.SING LE_INTERVAL_SELECTION);
>
>
> Upon closing the visual editor and opening it again, all subsequent code
> is ignored (set values don't appear when I reopen my customizer),
> but the actual values set by this line are set, and appear in my
> customizer.
>
> If I then comment out this line, the values for all subsequent lines (e.g.
> the selection mode) are recognized and appear in the customizer.
>
> It seems that the expression is being parsed correctly, and yet somehow it
> causes the rest to be ignored.
>
> There is nothing in the logs, and I have run with the
>
> org.eclipse.jem.proxy/remote/debug/vmtraceout=true
>
> trace flag.
>
> Any ideas?
>
> Darren Hurt
>
>
>
>
>
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #124381 is a reply to message #124104] Fri, 05 May 2006 15:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

What version of VE are you using?

--
Thanks,
Rich Kulp
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #124393 is a reply to message #124104] Fri, 05 May 2006 15:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Also this is two statements on one line. Is that what you really have,
two statements on one line?

Darren Hurt wrote:

>>
>> myTable.setBorder(javax.swing.BorderFactory.createTitledBord er(javax.swing.BorderFactory.createEtchedBorder(),
>>"Title"));
>> myTable.setSelectionMode(javax.swing.ListSelectionModel.SING LE_INTERVAL_SELECTION);

--
Thanks,
Rich Kulp
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #124822 is a reply to message #124381] Mon, 15 May 2006 09:24 Go to previous messageGo to next message
Darren Hurt is currently offline Darren HurtFriend
Messages: 91
Registered: July 2009
Member
Hello again Rich.

I am using version 1.1.0.

I changed my getJavaInitializationString to produce


javax.swing.BorderFactory.createTitledBorder(null, "Title",
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null);

instead (as the VE border property editor does), and this works OK.

Oh, and I don't really have two statements on one line.
But I do still get the same problems with

javax.swing.BorderFactory.createTitledBorder(javax.swing.Bor derFactory.createEtchedBorder(),
"Title");

I'll probably just change my customizers to not try and do border setting
stuff, especially as VE provides
a decent property editor for borders anyway.

However, I guess the behaviour I refer to does still indicate some kind of
bug, so I hope that it is useful.


Thanks,
Darren










"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:e3fs4i$u70$2@utils.eclipse.org...
> What version of VE are you using?
>
> --
> Thanks,
> Rich Kulp
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #124868 is a reply to message #124822] Mon, 15 May 2006 14:37 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I don't know. I just tried it with our VE 1.2 code and it didn't have
any problems.

--
Thanks,
Rich Kulp
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #612788 is a reply to message #124091] Fri, 28 April 2006 11:36 Go to previous message
Darren Hurt is currently offline Darren HurtFriend
Messages: 91
Registered: July 2009
Member
Make that any BorderFactory related expression for creating a border.



"Darren Hurt" <darren.hurt@coexis.com> wrote in message
news:e2stu2$v0$1@utils.eclipse.org...
>
>
>
>
> I have a strange/subtle problem with the visual editor.
>
> When it generates code for a titled border:
>
> myTable.setBorder(javax.swing.BorderFactory.createTitledBord er(javax.swing.BorderFactory.createEtchedBorder(),
> "Title"));
> myTable.setSelectionMode(javax.swing.ListSelectionModel.SING LE_INTERVAL_SELECTION);
>
>
> Upon closing the visual editor and opening it again, all subsequent code
> is ignored (set values don't appear when I reopen my customizer),
> but the actual values set by this line are set, and appear in my
> customizer.
>
> If I then comment out this line, the values for all subsequent lines (e.g.
> the selection mode) are recognized and appear in the customizer.
>
> It seems that the expression is being parsed correctly, and yet somehow it
> causes the rest to be ignored.
>
> There is nothing in the logs, and I have run with the
>
> org.eclipse.jem.proxy/remote/debug/vmtraceout=true
>
> trace flag.
>
> Any ideas?
>
> Darren Hurt
>
>
>
>
>
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #612833 is a reply to message #124104] Fri, 05 May 2006 15:48 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

What version of VE are you using?

--
Thanks,
Rich Kulp
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #612834 is a reply to message #124104] Fri, 05 May 2006 15:49 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Also this is two statements on one line. Is that what you really have,
two statements on one line?

Darren Hurt wrote:

>>
>> myTable.setBorder(javax.swing.BorderFactory.createTitledBord er(javax.swing.BorderFactory.createEtchedBorder(),
>>"Title"));
>> myTable.setSelectionMode(javax.swing.ListSelectionModel.SING LE_INTERVAL_SELECTION);

--
Thanks,
Rich Kulp
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #612902 is a reply to message #124381] Mon, 15 May 2006 09:24 Go to previous message
Darren Hurt is currently offline Darren HurtFriend
Messages: 91
Registered: July 2009
Member
Hello again Rich.

I am using version 1.1.0.

I changed my getJavaInitializationString to produce


javax.swing.BorderFactory.createTitledBorder(null, "Title",
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null);

instead (as the VE border property editor does), and this works OK.

Oh, and I don't really have two statements on one line.
But I do still get the same problems with

javax.swing.BorderFactory.createTitledBorder(javax.swing.Bor derFactory.createEtchedBorder(),
"Title");

I'll probably just change my customizers to not try and do border setting
stuff, especially as VE provides
a decent property editor for borders anyway.

However, I guess the behaviour I refer to does still indicate some kind of
bug, so I hope that it is useful.


Thanks,
Darren










"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:e3fs4i$u70$2@utils.eclipse.org...
> What version of VE are you using?
>
> --
> Thanks,
> Rich Kulp
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #612909 is a reply to message #124822] Mon, 15 May 2006 14:37 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I don't know. I just tried it with our VE 1.2 code and it didn't have
any problems.

--
Thanks,
Rich Kulp
Previous Topic:Manually add swt.jar will make SWT controls invisible
Next Topic:Source for com.ibm.etools.emf.event
Goto Forum:
  


Current Time: Fri Apr 26 17:52:37 GMT 2024

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

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

Back to the top