Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Changing Preview L&F
Changing Preview L&F [message #101219] Wed, 03 August 2005 10:48 Go to next message
Eclipse UserFriend
Is it possible to have the preview window use the System L&F rather than the
cross-platform L&F?

Joel
Re: Changing Preview L&F [message #101264 is a reply to message #101219] Wed, 03 August 2005 11:06 Go to previous messageGo to next message
Eclipse UserFriend
In the preferences one can change the look and feel of Swing
(Window>Preferences>Java>Visual Editor>Swing Look and Feel).
Regards,
Sri.

Joel Kamentz wrote:
> Is it possible to have the preview window use the System L&F rather than the
> cross-platform L&F?
>
> Joel
>
>
Re: Changing Preview L&F [message #101278 is a reply to message #101264] Wed, 03 August 2005 12:54 Go to previous messageGo to next message
Eclipse UserFriend
D'Oh! I even looked at that page.

How soon are changes supposed to take effect? (Apply, for example,
certainly isn't live.)

Perhaps due to the NPE at
org.eclipse.ve.internal.cde.core.EditDomain.setPaletteViewer (EditDomain.java:79)
which I regularly get, I sometimes need to close and re-open the visual
class twice before it picks up a new L&F setting.

A little further testing.... It seems that if the VE is open when I make
the preference change, then closing and re-opening the visual class picks up
the change. If the VE is closed when I change the L&F, then I need to open
the visual class, close it and then re-open it to get the new L&F setting.

Joel

"Sri Gunturi" <sgunturi@us.ibm.com> wrote in message
news:dcqmhq$pmf$2@news.eclipse.org...
> In the preferences one can change the look and feel of Swing
> (Window>Preferences>Java>Visual Editor>Swing Look and Feel).
> Regards,
> Sri.
>
> Joel Kamentz wrote:
>> Is it possible to have the preview window use the System L&F rather than
>> the cross-platform L&F?
>>
>> Joel
Re: Changing Preview L&F [message #101291 is a reply to message #101278] Wed, 03 August 2005 15:36 Go to previous messageGo to next message
Eclipse UserFriend
imho I dont think apply is live, as the remote VM is not restarted on
L&F change. It should definitely pick it up the next time a VE editor is
opened. Please open a defect against VE for this and also put exceptions
you are seeing so that we can fix this
(https://bugs.eclipse.org/bugs/enter_bug.cgi?product=VE).

If the NPE on setPaletteViewer() is a seperate problem, please open
another defect for that too so that we can fix it soon.
Regards,
Sri.



Joel Kamentz wrote:
> D'Oh! I even looked at that page.
>
> How soon are changes supposed to take effect? (Apply, for example,
> certainly isn't live.)
>
> Perhaps due to the NPE at
> org.eclipse.ve.internal.cde.core.EditDomain.setPaletteViewer (EditDomain.java:79)
> which I regularly get, I sometimes need to close and re-open the visual
> class twice before it picks up a new L&F setting.
>
> A little further testing.... It seems that if the VE is open when I make
> the preference change, then closing and re-opening the visual class picks up
> the change. If the VE is closed when I change the L&F, then I need to open
> the visual class, close it and then re-open it to get the new L&F setting.
>
> Joel
>
> "Sri Gunturi" <sgunturi@us.ibm.com> wrote in message
> news:dcqmhq$pmf$2@news.eclipse.org...
>
>>In the preferences one can change the look and feel of Swing
>>(Window>Preferences>Java>Visual Editor>Swing Look and Feel).
>>Regards,
>>Sri.
>>
>>Joel Kamentz wrote:
>>
>>>Is it possible to have the preview window use the System L&F rather than
>>>the cross-platform L&F?
>>>
>>>Joel
>
>
>
Re: Changing Preview L&F [message #101311 is a reply to message #101291] Thu, 04 August 2005 15:35 Go to previous messageGo to next message
Eclipse UserFriend
A new day and now I can't reproduce the issue with VE needing to re-open
twice to pick up a L&F change.

The NPE is already bugged as 105205.

I've created 106088 as a RFE for being able to apply L&F changes without
needing to close and re-open VE windows.

Joel


"Sri Gunturi" <sgunturi@us.ibm.com> wrote in message
news:dcr6cn$d5r$1@news.eclipse.org...
> imho I dont think apply is live, as the remote VM is not restarted on L&F
> change. It should definitely pick it up the next time a VE editor is
> opened. Please open a defect against VE for this and also put exceptions
> you are seeing so that we can fix this
> (https://bugs.eclipse.org/bugs/enter_bug.cgi?product=VE).
>
> If the NPE on setPaletteViewer() is a seperate problem, please open
> another defect for that too so that we can fix it soon.
> Regards,
> Sri.
>
>
>
> Joel Kamentz wrote:
>> D'Oh! I even looked at that page.
>>
>> How soon are changes supposed to take effect? (Apply, for example,
>> certainly isn't live.)
>>
>> Perhaps due to the NPE at
>> org.eclipse.ve.internal.cde.core.EditDomain.setPaletteViewer (EditDomain.java:79)
>> which I regularly get, I sometimes need to close and re-open the visual
>> class twice before it picks up a new L&F setting.
>>
>> A little further testing.... It seems that if the VE is open when I make
>> the preference change, then closing and re-opening the visual class picks
>> up the change. If the VE is closed when I change the L&F, then I need to
>> open the visual class, close it and then re-open it to get the new L&F
>> setting.
>>
>> Joel
>>
>> "Sri Gunturi" <sgunturi@us.ibm.com> wrote in message
>> news:dcqmhq$pmf$2@news.eclipse.org...
>>
>>>In the preferences one can change the look and feel of Swing
>>>(Window>Preferences>Java>Visual Editor>Swing Look and Feel).
>>>Regards,
>>>Sri.
>>>
>>>Joel Kamentz wrote:
>>>
>>>>Is it possible to have the preview window use the System L&F rather than
>>>>the cross-platform L&F?
>>>>
>>>>Joel
>>
>>
Re: Changing Preview L&F [message #101321 is a reply to message #101311] Thu, 04 August 2005 15:44 Go to previous message
Eclipse UserFriend
Originally posted by: jdstinto.us.ibm.com

I could be totally mistaken here but...

When we open a Visual Class we use an available remote VM and then
shortly after create a second remote VM for the next class that wants to
open. I believe we apply the properties to the next remote VM to open.
The same thing occurs for JFace color and font preferences in a plugin
project. If they are not applied before the next VM is started you will
have to open a class and close it then open it again to get the new
settings.

Just my guess from trial and error when working on the RCP Launcher.

Thanks,
Jon
Re: Changing Preview L&F [message #610138 is a reply to message #101219] Wed, 03 August 2005 11:06 Go to previous message
Eclipse UserFriend
In the preferences one can change the look and feel of Swing
(Window>Preferences>Java>Visual Editor>Swing Look and Feel).
Regards,
Sri.

Joel Kamentz wrote:
> Is it possible to have the preview window use the System L&F rather than the
> cross-platform L&F?
>
> Joel
>
>
Re: Changing Preview L&F [message #610139 is a reply to message #101264] Wed, 03 August 2005 12:54 Go to previous message
Eclipse UserFriend
D'Oh! I even looked at that page.

How soon are changes supposed to take effect? (Apply, for example,
certainly isn't live.)

Perhaps due to the NPE at
org.eclipse.ve.internal.cde.core.EditDomain.setPaletteViewer (EditDomain.java:79)
which I regularly get, I sometimes need to close and re-open the visual
class twice before it picks up a new L&F setting.

A little further testing.... It seems that if the VE is open when I make
the preference change, then closing and re-opening the visual class picks up
the change. If the VE is closed when I change the L&F, then I need to open
the visual class, close it and then re-open it to get the new L&F setting.

Joel

"Sri Gunturi" <sgunturi@us.ibm.com> wrote in message
news:dcqmhq$pmf$2@news.eclipse.org...
> In the preferences one can change the look and feel of Swing
> (Window>Preferences>Java>Visual Editor>Swing Look and Feel).
> Regards,
> Sri.
>
> Joel Kamentz wrote:
>> Is it possible to have the preview window use the System L&F rather than
>> the cross-platform L&F?
>>
>> Joel
Re: Changing Preview L&F [message #610141 is a reply to message #101278] Wed, 03 August 2005 15:36 Go to previous message
Eclipse UserFriend
imho I dont think apply is live, as the remote VM is not restarted on
L&F change. It should definitely pick it up the next time a VE editor is
opened. Please open a defect against VE for this and also put exceptions
you are seeing so that we can fix this
(https://bugs.eclipse.org/bugs/enter_bug.cgi?product=VE).

If the NPE on setPaletteViewer() is a seperate problem, please open
another defect for that too so that we can fix it soon.
Regards,
Sri.



Joel Kamentz wrote:
> D'Oh! I even looked at that page.
>
> How soon are changes supposed to take effect? (Apply, for example,
> certainly isn't live.)
>
> Perhaps due to the NPE at
> org.eclipse.ve.internal.cde.core.EditDomain.setPaletteViewer (EditDomain.java:79)
> which I regularly get, I sometimes need to close and re-open the visual
> class twice before it picks up a new L&F setting.
>
> A little further testing.... It seems that if the VE is open when I make
> the preference change, then closing and re-opening the visual class picks up
> the change. If the VE is closed when I change the L&F, then I need to open
> the visual class, close it and then re-open it to get the new L&F setting.
>
> Joel
>
> "Sri Gunturi" <sgunturi@us.ibm.com> wrote in message
> news:dcqmhq$pmf$2@news.eclipse.org...
>
>>In the preferences one can change the look and feel of Swing
>>(Window>Preferences>Java>Visual Editor>Swing Look and Feel).
>>Regards,
>>Sri.
>>
>>Joel Kamentz wrote:
>>
>>>Is it possible to have the preview window use the System L&F rather than
>>>the cross-platform L&F?
>>>
>>>Joel
>
>
>
Re: Changing Preview L&F [message #610144 is a reply to message #101291] Thu, 04 August 2005 15:35 Go to previous message
Eclipse UserFriend
A new day and now I can't reproduce the issue with VE needing to re-open
twice to pick up a L&F change.

The NPE is already bugged as 105205.

I've created 106088 as a RFE for being able to apply L&F changes without
needing to close and re-open VE windows.

Joel


"Sri Gunturi" <sgunturi@us.ibm.com> wrote in message
news:dcr6cn$d5r$1@news.eclipse.org...
> imho I dont think apply is live, as the remote VM is not restarted on L&F
> change. It should definitely pick it up the next time a VE editor is
> opened. Please open a defect against VE for this and also put exceptions
> you are seeing so that we can fix this
> (https://bugs.eclipse.org/bugs/enter_bug.cgi?product=VE).
>
> If the NPE on setPaletteViewer() is a seperate problem, please open
> another defect for that too so that we can fix it soon.
> Regards,
> Sri.
>
>
>
> Joel Kamentz wrote:
>> D'Oh! I even looked at that page.
>>
>> How soon are changes supposed to take effect? (Apply, for example,
>> certainly isn't live.)
>>
>> Perhaps due to the NPE at
>> org.eclipse.ve.internal.cde.core.EditDomain.setPaletteViewer (EditDomain.java:79)
>> which I regularly get, I sometimes need to close and re-open the visual
>> class twice before it picks up a new L&F setting.
>>
>> A little further testing.... It seems that if the VE is open when I make
>> the preference change, then closing and re-opening the visual class picks
>> up the change. If the VE is closed when I change the L&F, then I need to
>> open the visual class, close it and then re-open it to get the new L&F
>> setting.
>>
>> Joel
>>
>> "Sri Gunturi" <sgunturi@us.ibm.com> wrote in message
>> news:dcqmhq$pmf$2@news.eclipse.org...
>>
>>>In the preferences one can change the look and feel of Swing
>>>(Window>Preferences>Java>Visual Editor>Swing Look and Feel).
>>>Regards,
>>>Sri.
>>>
>>>Joel Kamentz wrote:
>>>
>>>>Is it possible to have the preview window use the System L&F rather than
>>>>the cross-platform L&F?
>>>>
>>>>Joel
>>
>>
Re: Changing Preview L&F [message #610146 is a reply to message #101311] Thu, 04 August 2005 15:44 Go to previous message
Eclipse UserFriend
I could be totally mistaken here but...

When we open a Visual Class we use an available remote VM and then
shortly after create a second remote VM for the next class that wants to
open. I believe we apply the properties to the next remote VM to open.
The same thing occurs for JFace color and font preferences in a plugin
project. If they are not applied before the next VM is started you will
have to open a class and close it then open it again to get the new
settings.

Just my guess from trial and error when working on the RCP Launcher.

Thanks,
Jon
Previous Topic:Jlabel border
Next Topic:Show Source of Selected Element Only button missing
Goto Forum:
  


Current Time: Sun Jun 15 12:21:09 EDT 2025

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

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

Back to the top