| VE - Gui Panel loses details [message #67521] | 
Mon, 18 October 2004 15:25   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 - SAME Problem Details [message #67704 is a reply to message #67662] | 
Tue, 19 October 2004 10:06   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 15:32   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 04:37   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 08:39   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 08:53   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 10:06   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.24591 seconds