Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » VE - Gui Panel loses details
VE - Gui Panel loses details [message #67521] Mon, 18 October 2004 19:25 Go to next message
Eclipse UserFriend
Originally posted by: dmccartno.xxxspamoceanfnospamree.net

I am using Eclipse Visual Editor 1.0. After I create a visual class and a
simple gui with a few components in it all is well. My problem comes when
I alter my main to create an instance of the frame and then when I run the
app the form is displayed but my display panel goes blank and the Java
Beans panle where my buttons or textfields were previously goes blank. The
code appears to remain the same.


I am running eclipse 3.0.1, EMF 2.0.1, GEF 3.0.1 and VE 1.0 (installed via
eclipse update, normally do it by zips so may try that as well). Ran first
time with eclipse -clean as per faq but it seems to work ok in general as
far as I can see.


Restarting the editor doesn't help. It doesn't bring back the layout.
Does anyone know does it use tags to help it rebuild the code like some
other gui layout tools or does it do it all by source...

(brings me back to the good old days of fighting visual crape 3 to develop
swing apps)
Re: VE - Gui Panel loses details [message #67542 is a reply to message #67521] Mon, 18 October 2004 19:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmccartno.xxxspamoceanfnospamree.net

Just to clarify I'm using ve 1.0.1 (mea culpa, still thought I was on 1.0)


Denis McCarthy wrote:

> I am using Eclipse Visual Editor 1.0. After I create a visual class and a
> simple gui with a few components in it all is well. My problem comes when
> I alter my main to create an instance of the frame and then when I run the
> app the form is displayed but my display panel goes blank and the Java
> Beans panle where my buttons or textfields were previously goes blank. The
> code appears to remain the same.


> I am running eclipse 3.0.1, EMF 2.0.1, GEF 3.0.1 and VE 1.0 (installed via
> eclipse update, normally do it by zips so may try that as well). Ran first
> time with eclipse -clean as per faq but it seems to work ok in general as
> far as I can see.


> Restarting the editor doesn't help. It doesn't bring back the layout.
> Does anyone know does it use tags to help it rebuild the code like some
> other gui layout tools or does it do it all by source...

> (brings me back to the good old days of fighting visual crape 3 to develop
> swing apps)
Re: VE - Gui Panel loses details - SAME Problem Details [message #67604 is a reply to message #67521] Tue, 19 October 2004 08:37 Go to previous messageGo to next message
iztok kucan is currently offline iztok kucanFriend
Messages: 2
Registered: July 2009
Junior Member
Same configuration, same problem.

Happens in the most trivial circumatances:
1. Create a visual class
2. Test without chaning
3. Close/reopen in VE
4. Class does not reappear in VE

Here is the log, specifically for loading a class in the VE editor:

!ENTRY org.eclipse.ve.java.core 4 0 Oct 19, 2004 18:31:55.199
!MESSAGE Exception thrown.
!STACK 0
java.lang.ClassCastException
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.createJavaInstances(JavaSourceTranslator.java:705)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:774)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:881)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:656)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1444)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Re: VE - Gui Panel loses details - SAME Problem Details [message #67640 is a reply to message #67604] Tue, 19 October 2004 12:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.nospam.gmail.com

Hi Iztok,

Remove the EMF examples plug-in from your Eclipse installation and it
should work fine.

- Jeff

Iztok Kucan wrote:
> Same configuration, same problem.
>
> Happens in the most trivial circumatances:
> 1. Create a visual class
> 2. Test without chaning
> 3. Close/reopen in VE
> 4. Class does not reappear in VE
>
> Here is the log, specifically for loading a class in the VE editor:
>
> !ENTRY org.eclipse.ve.java.core 4 0 Oct 19, 2004 18:31:55.199
> !MESSAGE Exception thrown.
> !STACK 0
> java.lang.ClassCastException
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.createJavaInstances(JavaSourceTranslator.java:705)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:774)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:881)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:656)
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1444)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
>
>
>
Re: VE - Gui Panel loses details - SAME Problem Details [message #67662 is a reply to message #67640] Tue, 19 October 2004 12:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: denisnospam.nospam.net

Jeff Myers wrote:
> Hi Iztok,
>
> Remove the EMF examples plug-in from your Eclipse installation and it
> should work fine.
>
> - Jeff
>
> Iztok Kucan wrote:
>
>> Same configuration, same problem.
>>
>> Happens in the most trivial circumatances:
>> 1. Create a visual class
>> 2. Test without chaning
>> 3. Close/reopen in VE
>> 4. Class does not reappear in VE
>>
>> Here is the log, specifically for loading a class in the VE editor:
>>
>> !ENTRY org.eclipse.ve.java.core 4 0 Oct 19, 2004 18:31:55.199
>> !MESSAGE Exception thrown.
>> !STACK 0
>> java.lang.ClassCastException
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.createJavaInstances(JavaSourceTranslator.java:705)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:774)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:881)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:656)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1444)
>>
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
>>
>>
>>


That works now.. thanks a lot for that... just curious how did you know
it was the emf samples causing the problem?

Could you tell from Iztoks logs?
Re: VE - Gui Panel loses details - SAME Problem Details [message #67704 is a reply to message #67662] Tue, 19 October 2004 14:06 Go to previous message
Eclipse UserFriend
Originally posted by: myersj.nospam.gmail.com

Denis McCarthy wrote:
> Jeff Myers wrote:
>
>> Hi Iztok,
>>
>> Remove the EMF examples plug-in from your Eclipse installation and it
>> should work fine.
>>
>> - Jeff
>>
>>> !ENTRY org.eclipse.ve.java.core 4 0 Oct 19, 2004 18:31:55.199
>>> !MESSAGE Exception thrown.
>>> !STACK 0
>>> java.lang.ClassCastException
>>> at
>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.createJavaInstances(JavaSourceTranslator.java:705)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:774)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:881)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:656)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1444)
>>>
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
>>>
>>>
>>>
>
>
> That works now.. thanks a lot for that... just curious how did you know
> it was the emf samples causing the problem?
>
> Could you tell from Iztoks logs?

Yeah, the exception log is key for diagnosing issues such as this. I
could recognize this exception based on other people running into the
same problem earlier.

- Jeff
Re: VE - Gui Panel loses details [message #601894 is a reply to message #67521] Mon, 18 October 2004 19:32 Go to previous message
Denis McCarthy is currently offline Denis McCarthyFriend
Messages: 3
Registered: July 2009
Junior Member
Just to clarify I'm using ve 1.0.1 (mea culpa, still thought I was on 1.0)


Denis McCarthy wrote:

> I am using Eclipse Visual Editor 1.0. After I create a visual class and a
> simple gui with a few components in it all is well. My problem comes when
> I alter my main to create an instance of the frame and then when I run the
> app the form is displayed but my display panel goes blank and the Java
> Beans panle where my buttons or textfields were previously goes blank. The
> code appears to remain the same.


> I am running eclipse 3.0.1, EMF 2.0.1, GEF 3.0.1 and VE 1.0 (installed via
> eclipse update, normally do it by zips so may try that as well). Ran first
> time with eclipse -clean as per faq but it seems to work ok in general as
> far as I can see.


> Restarting the editor doesn't help. It doesn't bring back the layout.
> Does anyone know does it use tags to help it rebuild the code like some
> other gui layout tools or does it do it all by source...

> (brings me back to the good old days of fighting visual crape 3 to develop
> swing apps)
Re: VE - Gui Panel loses details - SAME Problem Details [message #601927 is a reply to message #67521] Tue, 19 October 2004 08:37 Go to previous message
iztok kucan is currently offline iztok kucanFriend
Messages: 2
Registered: July 2009
Junior Member
Same configuration, same problem.

Happens in the most trivial circumatances:
1. Create a visual class
2. Test without chaning
3. Close/reopen in VE
4. Class does not reappear in VE

Here is the log, specifically for loading a class in the VE editor:

!ENTRY org.eclipse.ve.java.core 4 0 Oct 19, 2004 18:31:55.199
!MESSAGE Exception thrown.
!STACK 0
java.lang.ClassCastException
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.createJavaInstances(JavaSourceTranslator.java:705)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:774)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:881)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:656)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1444)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Re: VE - Gui Panel loses details - SAME Problem Details [message #601948 is a reply to message #67604] Tue, 19 October 2004 12:39 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
Hi Iztok,

Remove the EMF examples plug-in from your Eclipse installation and it
should work fine.

- Jeff

Iztok Kucan wrote:
> Same configuration, same problem.
>
> Happens in the most trivial circumatances:
> 1. Create a visual class
> 2. Test without chaning
> 3. Close/reopen in VE
> 4. Class does not reappear in VE
>
> Here is the log, specifically for loading a class in the VE editor:
>
> !ENTRY org.eclipse.ve.java.core 4 0 Oct 19, 2004 18:31:55.199
> !MESSAGE Exception thrown.
> !STACK 0
> java.lang.ClassCastException
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.createJavaInstances(JavaSourceTranslator.java:705)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:774)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:881)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:656)
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1444)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
>
>
>
Re: VE - Gui Panel loses details - SAME Problem Details [message #601959 is a reply to message #67640] Tue, 19 October 2004 12:53 Go to previous message
Denis McCarthy is currently offline Denis McCarthyFriend
Messages: 3
Registered: July 2009
Junior Member
Jeff Myers wrote:
> Hi Iztok,
>
> Remove the EMF examples plug-in from your Eclipse installation and it
> should work fine.
>
> - Jeff
>
> Iztok Kucan wrote:
>
>> Same configuration, same problem.
>>
>> Happens in the most trivial circumatances:
>> 1. Create a visual class
>> 2. Test without chaning
>> 3. Close/reopen in VE
>> 4. Class does not reappear in VE
>>
>> Here is the log, specifically for loading a class in the VE editor:
>>
>> !ENTRY org.eclipse.ve.java.core 4 0 Oct 19, 2004 18:31:55.199
>> !MESSAGE Exception thrown.
>> !STACK 0
>> java.lang.ClassCastException
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.createJavaInstances(JavaSourceTranslator.java:705)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:774)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:881)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:656)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1444)
>>
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
>>
>>
>>


That works now.. thanks a lot for that... just curious how did you know
it was the emf samples causing the problem?

Could you tell from Iztoks logs?
Re: VE - Gui Panel loses details - SAME Problem Details [message #601975 is a reply to message #67662] Tue, 19 October 2004 14:06 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
Denis McCarthy wrote:
> Jeff Myers wrote:
>
>> Hi Iztok,
>>
>> Remove the EMF examples plug-in from your Eclipse installation and it
>> should work fine.
>>
>> - Jeff
>>
>>> !ENTRY org.eclipse.ve.java.core 4 0 Oct 19, 2004 18:31:55.199
>>> !MESSAGE Exception thrown.
>>> !STACK 0
>>> java.lang.ClassCastException
>>> at
>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.createJavaInstances(JavaSourceTranslator.java:705)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:774)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:881)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:656)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1444)
>>>
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
>>>
>>>
>>>
>
>
> That works now.. thanks a lot for that... just curious how did you know
> it was the emf samples causing the problem?
>
> Could you tell from Iztoks logs?

Yeah, the exception log is key for diagnosing issues such as this. I
could recognize this exception based on other people running into the
same problem earlier.

- Jeff
Previous Topic:Using Ve with RCP projects
Next Topic:Comparing to other GUI tool
Goto Forum:
  


Current Time: Fri Aug 16 22:07:55 GMT 2024

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

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

Back to the top