Home » Archived » Visual Editor (VE) » Where is the jContentPane?
Where is the jContentPane? [message #75365] |
Sat, 18 December 2004 22:48  |
Eclipse User |
|
|
|
Originally posted by: schmidt.2002.gmx.de
I installed VE, but I couldn't get any GUI to work. Where is the
jContentPane in the Beans View? My visual class extends JFrame. Now, in
the Beans view, I am supposed to see the jContentPane, so that I can drop
swing elements on it, right? Something like Figure 3 in this IBM tutorial?
http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
But nothing. The Beans view is empty. I can drag swing elements there
directly, but they are not in the ContentPane, and thus are not shown when
I start the app. Just an empty JFrame is shown.
What's wrong?
Thanks! Andi
P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
|
|
|
Re: Where is the jContentPane? [message #75500 is a reply to message #75365] |
Mon, 20 December 2004 22:10   |
Eclipse User |
|
|
|
What steps are you using to create the visual class?
Since the time I wrote the article you reference, the new visual class
dialog box has changed: instead of entering the superclass directly (or
using the browse button) you should choose Swing/frame in the Style
selection box on the left side of the dialog. If you bypass this way of
selecting the superclass, it seems that the jContentPane doesn't get
generated.
@D
Andreas Schmidt wrote:
> I installed VE, but I couldn't get any GUI to work. Where is the
> jContentPane in the Beans View? My visual class extends JFrame. Now, in
> the Beans view, I am supposed to see the jContentPane, so that I can
> drop swing elements on it, right? Something like Figure 3 in this IBM
> tutorial?
> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>
> But nothing. The Beans view is empty. I can drag swing elements there
> directly, but they are not in the ContentPane, and thus are not shown
> when I start the app. Just an empty JFrame is shown.
>
> What's wrong?
>
> Thanks! Andi
>
> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
|
|
|
Re: Where is the jContentPane? [message #75617 is a reply to message #75500] |
Wed, 22 December 2004 22:25   |
Eclipse User |
|
|
|
Originally posted by: andreas.2004.gmx.de
On Mon, 20 Dec 2004 20:10:42 -0700, David Gallardo <david@gallardo.org>
wrote:
> What steps are you using to create the visual class?
>
> Since the time I wrote the article you reference, the new visual class
> dialog box has changed: instead of entering the superclass directly (or
> using the browse button) you should choose Swing/frame in the Style
> selection box on the left side of the dialog. If you bypass this way of
> selecting the superclass, it seems that the jContentPane doesn't get
> generated.
Thanks for your answer. I did exaclty what you described. It must be a
bug, or some plugin versions did not match. It was under Win XP. Now I
tried the same under SuSE Linux with Eclise 3.1M1, and everything worked
fine and easy here.
Markus
> Andreas Schmidt wrote:
>> I installed VE, but I couldn't get any GUI to work. Where is the
>> jContentPane in the Beans View? My visual class extends JFrame. Now,
>> in the Beans view, I am supposed to see the jContentPane, so that I
>> can drop swing elements on it, right? Something like Figure 3 in this
>> IBM tutorial?
>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>> But nothing. The Beans view is empty. I can drag swing elements there
>> directly, but they are not in the ContentPane, and thus are not shown
>> when I start the app. Just an empty JFrame is shown.
>> What's wrong?
>> Thanks! Andi
>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
|
|
|
Re: Where is the jContentPane? [message #75634 is a reply to message #75617] |
Thu, 23 December 2004 12:34   |
Eclipse User |
|
|
|
Originally posted by: schmidt.2002.gmx.de
On Wed, 22 Dec 2004 22:25:22 -0500, Andreas Schmidt <andreas.2004@gmx.de>
wrote:
> On Mon, 20 Dec 2004 20:10:42 -0700, David Gallardo <david@gallardo.org>
> wrote:
>
>> What steps are you using to create the visual class?
>>
>> Since the time I wrote the article you reference, the new visual class
>> dialog box has changed: instead of entering the superclass directly (or
>> using the browse button) you should choose Swing/frame in the Style
>> selection box on the left side of the dialog. If you bypass this way of
>> selecting the superclass, it seems that the jContentPane doesn't get
>> generated.
>
> Thanks for your answer. I did exaclty what you described. It must be a
> bug, or some plugin versions did not match. It was under Win XP. Now I
> tried the same under SuSE Linux with Eclise 3.1M1, and everything worked
> fine and easy here.
Strange! I tried it on yet another system, and it does NOT work. It's
RedHat Linux (gtk) with Eclipse 3.0RC2, VE 1.0.1, GEF 3.0.1, EMF 2.0.1.
Same results as in my first posting (see below): No jContentPane, no image
of the application in the upper part of the window.
Does VE only work with Eclipse 3.1 maybe?
Markus
>> Andreas Schmidt wrote:
>>> I installed VE, but I couldn't get any GUI to work. Where is the
>>> jContentPane in the Beans View? My visual class extends JFrame. Now,
>>> in the Beans view, I am supposed to see the jContentPane, so that I
>>> can drop swing elements on it, right? Something like Figure 3 in this
>>> IBM tutorial?
>>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>>> But nothing. The Beans view is empty. I can drag swing elements
>>> there directly, but they are not in the ContentPane, and thus are not
>>> shown when I start the app. Just an empty JFrame is shown.
>>> What's wrong?
>>> Thanks! Andi
>>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
>
|
|
|
Re: Where is the jContentPane? [message #75718 is a reply to message #75634] |
Fri, 24 December 2004 01:05   |
Eclipse User |
|
|
|
I checked on the prerequisites: VE 1.0.1.1 requires Eclipse 3.0.1, EMF
2.0.1 and GEF 3.0.1. So that might explain why it doesn't work on your
Red Hat system, but not why it doesn't work on your XP system. I'm
using the same thing on my system & don't see the same problem.
What version of Java are you using? I think the latest 1.4 (1.4.2) is
recommended, but while 1.5 supposedly works it is not officially supported.
@D
Andreas Schmidt wrote:
> On Wed, 22 Dec 2004 22:25:22 -0500, Andreas Schmidt
> <andreas.2004@gmx.de> wrote:
[...]
>
> Strange! I tried it on yet another system, and it does NOT work. It's
> RedHat Linux (gtk) with Eclipse 3.0RC2, VE 1.0.1, GEF 3.0.1, EMF 2.0.1.
> Same results as in my first posting (see below): No jContentPane, no
> image of the application in the upper part of the window.
>
> Does VE only work with Eclipse 3.1 maybe?
>
> Markus
>
>
>>> Andreas Schmidt wrote:
>>>
>>>> I installed VE, but I couldn't get any GUI to work. Where is the
>>>> jContentPane in the Beans View? My visual class extends JFrame.
>>>> Now, in the Beans view, I am supposed to see the jContentPane, so
>>>> that I can drop swing elements on it, right? Something like Figure
>>>> 3 in this IBM tutorial?
>>>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>>>> But nothing. The Beans view is empty. I can drag swing elements
>>>> there directly, but they are not in the ContentPane, and thus are
>>>> not shown when I start the app. Just an empty JFrame is shown.
>>>> What's wrong?
>>>> Thanks! Andi
>>>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
>>
>>
>
|
|
|
Re: Where is the jContentPane? [message #75752 is a reply to message #75718] |
Sun, 26 December 2004 17:42   |
Eclipse User |
|
|
|
Originally posted by: mikewainer.yahoo.com
I am having the same problem as Markus and Andi.
I'm running Windows XP and Java 1.4.2 with
VE 1.0.1.1, Eclipse 3.0.1, EMF 2.0.1 and GEF 3.0.1.
When I check Eclipse's error log just after attempting to visually
edit my JFrame extended class, I see an error report which I have
pasted below.
-Mike
----------------------------------------------
eclipse.buildId=I200406251208
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.ve.java.core 4 0 Dec 26, 2004 12:53:59.78
!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)
David Gallardo wrote:
> I checked on the prerequisites: VE 1.0.1.1 requires Eclipse 3.0.1, EMF
> 2.0.1 and GEF 3.0.1. So that might explain why it doesn't work on your
> Red Hat system, but not why it doesn't work on your XP system. I'm
> using the same thing on my system & don't see the same problem.
> What version of Java are you using? I think the latest 1.4 (1.4.2) is
> recommended, but while 1.5 supposedly works it is not officially supported.
> @D
> Andreas Schmidt wrote:
>> On Wed, 22 Dec 2004 22:25:22 -0500, Andreas Schmidt
>> <andreas.2004@gmx.de> wrote:
> [...]
>>
>> Strange! I tried it on yet another system, and it does NOT work. It's
>> RedHat Linux (gtk) with Eclipse 3.0RC2, VE 1.0.1, GEF 3.0.1, EMF 2.0.1.
>> Same results as in my first posting (see below): No jContentPane, no
>> image of the application in the upper part of the window.
>>
>> Does VE only work with Eclipse 3.1 maybe?
>>
>> Markus
>>
>>
>>>> Andreas Schmidt wrote:
>>>>
>>>>> I installed VE, but I couldn't get any GUI to work. Where is the
>>>>> jContentPane in the Beans View? My visual class extends JFrame.
>>>>> Now, in the Beans view, I am supposed to see the jContentPane, so
>>>>> that I can drop swing elements on it, right? Something like Figure
>>>>> 3 in this IBM tutorial?
>>>>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>>>>> But nothing. The Beans view is empty. I can drag swing elements
>>>>> there directly, but they are not in the ContentPane, and thus are
>>>>> not shown when I start the app. Just an empty JFrame is shown.
>>>>> What's wrong?
>>>>> Thanks! Andi
>>>>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
>>>
>>>
>>
|
|
|
Re: Where is the jContentPane? [message #75906 is a reply to message #75752] |
Sat, 01 January 2005 12:08   |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Your problem here is that you probably have EMF Examples installed. As
of 1.0.1.1 VE and EMF examples are incompatible. This has been fixed
with VE 1.0.2
Mike Wainer wrote:
> I am having the same problem as Markus and Andi.
> I'm running Windows XP and Java 1.4.2 with
> VE 1.0.1.1, Eclipse 3.0.1, EMF 2.0.1 and GEF 3.0.1.
>
> When I check Eclipse's error log just after attempting to visually
> edit my JFrame extended class, I see an error report which I have
> pasted below.
>
> -Mike
>
> ----------------------------------------------
> eclipse.buildId=I200406251208
> java.version=1.4.2
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
>
> !ENTRY org.eclipse.ve.java.core 4 0 Dec 26, 2004 12:53:59.78
> !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)
>
>
>
> David Gallardo wrote:
>
>> I checked on the prerequisites: VE 1.0.1.1 requires Eclipse 3.0.1, EMF
>> 2.0.1 and GEF 3.0.1. So that might explain why it doesn't work on your
>> Red Hat system, but not why it doesn't work on your XP system. I'm
>> using the same thing on my system & don't see the same problem.
>
>
>> What version of Java are you using? I think the latest 1.4 (1.4.2) is
>> recommended, but while 1.5 supposedly works it is not officially
>> supported.
>
>
>> @D
>
>
>> Andreas Schmidt wrote:
>>
>>> On Wed, 22 Dec 2004 22:25:22 -0500, Andreas Schmidt
>>> <andreas.2004@gmx.de> wrote:
>>
>> [...]
>>
>>>
>>> Strange! I tried it on yet another system, and it does NOT work.
>>> It's RedHat Linux (gtk) with Eclipse 3.0RC2, VE 1.0.1, GEF 3.0.1,
>>> EMF 2.0.1. Same results as in my first posting (see below): No
>>> jContentPane, no image of the application in the upper part of the
>>> window.
>>>
>>> Does VE only work with Eclipse 3.1 maybe?
>>>
>>> Markus
>>>
>>>
>>>>> Andreas Schmidt wrote:
>>>>>
>>>>>> I installed VE, but I couldn't get any GUI to work. Where is the
>>>>>> jContentPane in the Beans View? My visual class extends JFrame.
>>>>>> Now, in the Beans view, I am supposed to see the jContentPane,
>>>>>> so that I can drop swing elements on it, right? Something like
>>>>>> Figure 3 in this IBM tutorial?
>>>>>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>>>>>> But nothing. The Beans view is empty. I can drag swing elements
>>>>>> there directly, but they are not in the ContentPane, and thus are
>>>>>> not shown when I start the app. Just an empty JFrame is shown.
>>>>>> What's wrong?
>>>>>> Thanks! Andi
>>>>>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
>>>>
>>>>
>>>>
>>>
>
>
--
Thanks,
Rich Kulp
|
|
|
Re: Where is the jContentPane? [message #75982 is a reply to message #75906] |
Sun, 02 January 2005 23:42  |
Eclipse User |
|
|
|
Originally posted by: MikeWainer.yahoo.com
Thank you. You were absolutely right. Once I loaded
VE 1.0.2 the problem was solved.
Rich Kulp wrote:
> Your problem here is that you probably have EMF Examples installed. As
> of 1.0.1.1 VE and EMF examples are incompatible. This has been fixed
> with VE 1.0.2
> Mike Wainer wrote:
>> I am having the same problem as Markus and Andi.
>> I'm running Windows XP and Java 1.4.2 with
>> VE 1.0.1.1, Eclipse 3.0.1, EMF 2.0.1 and GEF 3.0.1.
>>
>> When I check Eclipse's error log just after attempting to visually
>> edit my JFrame extended class, I see an error report which I have
>> pasted below.
>>
>> -Mike
>>
>> ----------------------------------------------
>> eclipse.buildId=I200406251208
>> java.version=1.4.2
>> java.vendor=Sun Microsystems Inc.
>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
>>
>> !ENTRY org.eclipse.ve.java.core 4 0 Dec 26, 2004 12:53:59.78
>> !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)
>>
>>
>>
>> David Gallardo wrote:
>>
>>> I checked on the prerequisites: VE 1.0.1.1 requires Eclipse 3.0.1, EMF
>>> 2.0.1 and GEF 3.0.1. So that might explain why it doesn't work on your
>>> Red Hat system, but not why it doesn't work on your XP system. I'm
>>> using the same thing on my system & don't see the same problem.
>>
>>
>>> What version of Java are you using? I think the latest 1.4 (1.4.2) is
>>> recommended, but while 1.5 supposedly works it is not officially
>>> supported.
>>
>>
>>> @D
>>
>>
>>> Andreas Schmidt wrote:
>>>
>>>> On Wed, 22 Dec 2004 22:25:22 -0500, Andreas Schmidt
>>>> <andreas.2004@gmx.de> wrote:
>>>
>>> [...]
>>>
>>>>
>>>> Strange! I tried it on yet another system, and it does NOT work.
>>>> It's RedHat Linux (gtk) with Eclipse 3.0RC2, VE 1.0.1, GEF 3.0.1,
>>>> EMF 2.0.1. Same results as in my first posting (see below): No
>>>> jContentPane, no image of the application in the upper part of the
>>>> window.
>>>>
>>>> Does VE only work with Eclipse 3.1 maybe?
>>>>
>>>> Markus
>>>>
>>>>
>>>>>> Andreas Schmidt wrote:
>>>>>>
>>>>>>> I installed VE, but I couldn't get any GUI to work. Where is the
>>>>>>> jContentPane in the Beans View? My visual class extends JFrame.
>>>>>>> Now, in the Beans view, I am supposed to see the jContentPane,
>>>>>>> so that I can drop swing elements on it, right? Something like
>>>>>>> Figure 3 in this IBM tutorial?
>>>>>>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>>>>>>> But nothing. The Beans view is empty. I can drag swing elements
>>>>>>> there directly, but they are not in the ContentPane, and thus are
>>>>>>> not shown when I start the app. Just an empty JFrame is shown.
>>>>>>> What's wrong?
>>>>>>> Thanks! Andi
>>>>>>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
>>>>>
>>>>>
>>>>>
>>>>
>>
>>
|
|
|
Re: Where is the jContentPane? [message #604017 is a reply to message #75365] |
Mon, 20 December 2004 22:10  |
Eclipse User |
|
|
|
What steps are you using to create the visual class?
Since the time I wrote the article you reference, the new visual class
dialog box has changed: instead of entering the superclass directly (or
using the browse button) you should choose Swing/frame in the Style
selection box on the left side of the dialog. If you bypass this way of
selecting the superclass, it seems that the jContentPane doesn't get
generated.
@D
Andreas Schmidt wrote:
> I installed VE, but I couldn't get any GUI to work. Where is the
> jContentPane in the Beans View? My visual class extends JFrame. Now, in
> the Beans view, I am supposed to see the jContentPane, so that I can
> drop swing elements on it, right? Something like Figure 3 in this IBM
> tutorial?
> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>
> But nothing. The Beans view is empty. I can drag swing elements there
> directly, but they are not in the ContentPane, and thus are not shown
> when I start the app. Just an empty JFrame is shown.
>
> What's wrong?
>
> Thanks! Andi
>
> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
|
|
|
Re: Where is the jContentPane? [message #604047 is a reply to message #75500] |
Wed, 22 December 2004 22:25  |
Eclipse User |
|
|
|
On Mon, 20 Dec 2004 20:10:42 -0700, David Gallardo <david@gallardo.org>
wrote:
> What steps are you using to create the visual class?
>
> Since the time I wrote the article you reference, the new visual class
> dialog box has changed: instead of entering the superclass directly (or
> using the browse button) you should choose Swing/frame in the Style
> selection box on the left side of the dialog. If you bypass this way of
> selecting the superclass, it seems that the jContentPane doesn't get
> generated.
Thanks for your answer. I did exaclty what you described. It must be a
bug, or some plugin versions did not match. It was under Win XP. Now I
tried the same under SuSE Linux with Eclise 3.1M1, and everything worked
fine and easy here.
Markus
> Andreas Schmidt wrote:
>> I installed VE, but I couldn't get any GUI to work. Where is the
>> jContentPane in the Beans View? My visual class extends JFrame. Now,
>> in the Beans view, I am supposed to see the jContentPane, so that I
>> can drop swing elements on it, right? Something like Figure 3 in this
>> IBM tutorial?
>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>> But nothing. The Beans view is empty. I can drag swing elements there
>> directly, but they are not in the ContentPane, and thus are not shown
>> when I start the app. Just an empty JFrame is shown.
>> What's wrong?
>> Thanks! Andi
>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
|
|
|
Re: Where is the jContentPane? [message #604055 is a reply to message #75617] |
Thu, 23 December 2004 12:34  |
Eclipse User |
|
|
|
On Wed, 22 Dec 2004 22:25:22 -0500, Andreas Schmidt <andreas.2004@gmx.de>
wrote:
> On Mon, 20 Dec 2004 20:10:42 -0700, David Gallardo <david@gallardo.org>
> wrote:
>
>> What steps are you using to create the visual class?
>>
>> Since the time I wrote the article you reference, the new visual class
>> dialog box has changed: instead of entering the superclass directly (or
>> using the browse button) you should choose Swing/frame in the Style
>> selection box on the left side of the dialog. If you bypass this way of
>> selecting the superclass, it seems that the jContentPane doesn't get
>> generated.
>
> Thanks for your answer. I did exaclty what you described. It must be a
> bug, or some plugin versions did not match. It was under Win XP. Now I
> tried the same under SuSE Linux with Eclise 3.1M1, and everything worked
> fine and easy here.
Strange! I tried it on yet another system, and it does NOT work. It's
RedHat Linux (gtk) with Eclipse 3.0RC2, VE 1.0.1, GEF 3.0.1, EMF 2.0.1.
Same results as in my first posting (see below): No jContentPane, no image
of the application in the upper part of the window.
Does VE only work with Eclipse 3.1 maybe?
Markus
>> Andreas Schmidt wrote:
>>> I installed VE, but I couldn't get any GUI to work. Where is the
>>> jContentPane in the Beans View? My visual class extends JFrame. Now,
>>> in the Beans view, I am supposed to see the jContentPane, so that I
>>> can drop swing elements on it, right? Something like Figure 3 in this
>>> IBM tutorial?
>>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>>> But nothing. The Beans view is empty. I can drag swing elements
>>> there directly, but they are not in the ContentPane, and thus are not
>>> shown when I start the app. Just an empty JFrame is shown.
>>> What's wrong?
>>> Thanks! Andi
>>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
>
|
|
|
Re: Where is the jContentPane? [message #604085 is a reply to message #75634] |
Fri, 24 December 2004 01:05  |
Eclipse User |
|
|
|
I checked on the prerequisites: VE 1.0.1.1 requires Eclipse 3.0.1, EMF
2.0.1 and GEF 3.0.1. So that might explain why it doesn't work on your
Red Hat system, but not why it doesn't work on your XP system. I'm
using the same thing on my system & don't see the same problem.
What version of Java are you using? I think the latest 1.4 (1.4.2) is
recommended, but while 1.5 supposedly works it is not officially supported.
@D
Andreas Schmidt wrote:
> On Wed, 22 Dec 2004 22:25:22 -0500, Andreas Schmidt
> <andreas.2004@gmx.de> wrote:
[...]
>
> Strange! I tried it on yet another system, and it does NOT work. It's
> RedHat Linux (gtk) with Eclipse 3.0RC2, VE 1.0.1, GEF 3.0.1, EMF 2.0.1.
> Same results as in my first posting (see below): No jContentPane, no
> image of the application in the upper part of the window.
>
> Does VE only work with Eclipse 3.1 maybe?
>
> Markus
>
>
>>> Andreas Schmidt wrote:
>>>
>>>> I installed VE, but I couldn't get any GUI to work. Where is the
>>>> jContentPane in the Beans View? My visual class extends JFrame.
>>>> Now, in the Beans view, I am supposed to see the jContentPane, so
>>>> that I can drop swing elements on it, right? Something like Figure
>>>> 3 in this IBM tutorial?
>>>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>>>> But nothing. The Beans view is empty. I can drag swing elements
>>>> there directly, but they are not in the ContentPane, and thus are
>>>> not shown when I start the app. Just an empty JFrame is shown.
>>>> What's wrong?
>>>> Thanks! Andi
>>>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
>>
>>
>
|
|
|
Re: Where is the jContentPane? [message #604099 is a reply to message #75718] |
Sun, 26 December 2004 17:42  |
Eclipse User |
|
|
|
Originally posted by: mikewainer.yahoo.com
I am having the same problem as Markus and Andi.
I'm running Windows XP and Java 1.4.2 with
VE 1.0.1.1, Eclipse 3.0.1, EMF 2.0.1 and GEF 3.0.1.
When I check Eclipse's error log just after attempting to visually
edit my JFrame extended class, I see an error report which I have
pasted below.
-Mike
----------------------------------------------
eclipse.buildId=I200406251208
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.ve.java.core 4 0 Dec 26, 2004 12:53:59.78
!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)
David Gallardo wrote:
> I checked on the prerequisites: VE 1.0.1.1 requires Eclipse 3.0.1, EMF
> 2.0.1 and GEF 3.0.1. So that might explain why it doesn't work on your
> Red Hat system, but not why it doesn't work on your XP system. I'm
> using the same thing on my system & don't see the same problem.
> What version of Java are you using? I think the latest 1.4 (1.4.2) is
> recommended, but while 1.5 supposedly works it is not officially supported.
> @D
> Andreas Schmidt wrote:
>> On Wed, 22 Dec 2004 22:25:22 -0500, Andreas Schmidt
>> <andreas.2004@gmx.de> wrote:
> [...]
>>
>> Strange! I tried it on yet another system, and it does NOT work. It's
>> RedHat Linux (gtk) with Eclipse 3.0RC2, VE 1.0.1, GEF 3.0.1, EMF 2.0.1.
>> Same results as in my first posting (see below): No jContentPane, no
>> image of the application in the upper part of the window.
>>
>> Does VE only work with Eclipse 3.1 maybe?
>>
>> Markus
>>
>>
>>>> Andreas Schmidt wrote:
>>>>
>>>>> I installed VE, but I couldn't get any GUI to work. Where is the
>>>>> jContentPane in the Beans View? My visual class extends JFrame.
>>>>> Now, in the Beans view, I am supposed to see the jContentPane, so
>>>>> that I can drop swing elements on it, right? Something like Figure
>>>>> 3 in this IBM tutorial?
>>>>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>>>>> But nothing. The Beans view is empty. I can drag swing elements
>>>>> there directly, but they are not in the ContentPane, and thus are
>>>>> not shown when I start the app. Just an empty JFrame is shown.
>>>>> What's wrong?
>>>>> Thanks! Andi
>>>>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
>>>
>>>
>>
|
|
|
Re: Where is the jContentPane? [message #604155 is a reply to message #75752] |
Sat, 01 January 2005 12:08  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Your problem here is that you probably have EMF Examples installed. As
of 1.0.1.1 VE and EMF examples are incompatible. This has been fixed
with VE 1.0.2
Mike Wainer wrote:
> I am having the same problem as Markus and Andi.
> I'm running Windows XP and Java 1.4.2 with
> VE 1.0.1.1, Eclipse 3.0.1, EMF 2.0.1 and GEF 3.0.1.
>
> When I check Eclipse's error log just after attempting to visually
> edit my JFrame extended class, I see an error report which I have
> pasted below.
>
> -Mike
>
> ----------------------------------------------
> eclipse.buildId=I200406251208
> java.version=1.4.2
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
>
> !ENTRY org.eclipse.ve.java.core 4 0 Dec 26, 2004 12:53:59.78
> !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)
>
>
>
> David Gallardo wrote:
>
>> I checked on the prerequisites: VE 1.0.1.1 requires Eclipse 3.0.1, EMF
>> 2.0.1 and GEF 3.0.1. So that might explain why it doesn't work on your
>> Red Hat system, but not why it doesn't work on your XP system. I'm
>> using the same thing on my system & don't see the same problem.
>
>
>> What version of Java are you using? I think the latest 1.4 (1.4.2) is
>> recommended, but while 1.5 supposedly works it is not officially
>> supported.
>
>
>> @D
>
>
>> Andreas Schmidt wrote:
>>
>>> On Wed, 22 Dec 2004 22:25:22 -0500, Andreas Schmidt
>>> <andreas.2004@gmx.de> wrote:
>>
>> [...]
>>
>>>
>>> Strange! I tried it on yet another system, and it does NOT work.
>>> It's RedHat Linux (gtk) with Eclipse 3.0RC2, VE 1.0.1, GEF 3.0.1,
>>> EMF 2.0.1. Same results as in my first posting (see below): No
>>> jContentPane, no image of the application in the upper part of the
>>> window.
>>>
>>> Does VE only work with Eclipse 3.1 maybe?
>>>
>>> Markus
>>>
>>>
>>>>> Andreas Schmidt wrote:
>>>>>
>>>>>> I installed VE, but I couldn't get any GUI to work. Where is the
>>>>>> jContentPane in the Beans View? My visual class extends JFrame.
>>>>>> Now, in the Beans view, I am supposed to see the jContentPane,
>>>>>> so that I can drop swing elements on it, right? Something like
>>>>>> Figure 3 in this IBM tutorial?
>>>>>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>>>>>> But nothing. The Beans view is empty. I can drag swing elements
>>>>>> there directly, but they are not in the ContentPane, and thus are
>>>>>> not shown when I start the app. Just an empty JFrame is shown.
>>>>>> What's wrong?
>>>>>> Thanks! Andi
>>>>>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
>>>>
>>>>
>>>>
>>>
>
>
--
Thanks,
Rich Kulp
|
|
|
Re: Where is the jContentPane? [message #604195 is a reply to message #75906] |
Sun, 02 January 2005 23:42  |
Eclipse User |
|
|
|
Originally posted by: MikeWainer.yahoo.com
Thank you. You were absolutely right. Once I loaded
VE 1.0.2 the problem was solved.
Rich Kulp wrote:
> Your problem here is that you probably have EMF Examples installed. As
> of 1.0.1.1 VE and EMF examples are incompatible. This has been fixed
> with VE 1.0.2
> Mike Wainer wrote:
>> I am having the same problem as Markus and Andi.
>> I'm running Windows XP and Java 1.4.2 with
>> VE 1.0.1.1, Eclipse 3.0.1, EMF 2.0.1 and GEF 3.0.1.
>>
>> When I check Eclipse's error log just after attempting to visually
>> edit my JFrame extended class, I see an error report which I have
>> pasted below.
>>
>> -Mike
>>
>> ----------------------------------------------
>> eclipse.buildId=I200406251208
>> java.version=1.4.2
>> java.vendor=Sun Microsystems Inc.
>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
>>
>> !ENTRY org.eclipse.ve.java.core 4 0 Dec 26, 2004 12:53:59.78
>> !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)
>>
>>
>>
>> David Gallardo wrote:
>>
>>> I checked on the prerequisites: VE 1.0.1.1 requires Eclipse 3.0.1, EMF
>>> 2.0.1 and GEF 3.0.1. So that might explain why it doesn't work on your
>>> Red Hat system, but not why it doesn't work on your XP system. I'm
>>> using the same thing on my system & don't see the same problem.
>>
>>
>>> What version of Java are you using? I think the latest 1.4 (1.4.2) is
>>> recommended, but while 1.5 supposedly works it is not officially
>>> supported.
>>
>>
>>> @D
>>
>>
>>> Andreas Schmidt wrote:
>>>
>>>> On Wed, 22 Dec 2004 22:25:22 -0500, Andreas Schmidt
>>>> <andreas.2004@gmx.de> wrote:
>>>
>>> [...]
>>>
>>>>
>>>> Strange! I tried it on yet another system, and it does NOT work.
>>>> It's RedHat Linux (gtk) with Eclipse 3.0RC2, VE 1.0.1, GEF 3.0.1,
>>>> EMF 2.0.1. Same results as in my first posting (see below): No
>>>> jContentPane, no image of the application in the upper part of the
>>>> window.
>>>>
>>>> Does VE only work with Eclipse 3.1 maybe?
>>>>
>>>> Markus
>>>>
>>>>
>>>>>> Andreas Schmidt wrote:
>>>>>>
>>>>>>> I installed VE, but I couldn't get any GUI to work. Where is the
>>>>>>> jContentPane in the Beans View? My visual class extends JFrame.
>>>>>>> Now, in the Beans view, I am supposed to see the jContentPane,
>>>>>>> so that I can drop swing elements on it, right? Something like
>>>>>>> Figure 3 in this IBM tutorial?
>>>>>>> http://www-106.ibm.com/developerworks/opensource/library/os- ecvisual/
>>>>>>> But nothing. The Beans view is empty. I can drag swing elements
>>>>>>> there directly, but they are not in the ContentPane, and thus are
>>>>>>> not shown when I start the app. Just an empty JFrame is shown.
>>>>>>> What's wrong?
>>>>>>> Thanks! Andi
>>>>>>> P.S.: I use Eclipse 3.0.1, VE 1.0.1, GEF 3.0.1, EMF 2.0.1
>>>>>
>>>>>
>>>>>
>>>>
>>
>>
|
|
|
Goto Forum:
Current Time: Sun Aug 31 18:23:19 EDT 2025
Powered by FUDForum. Page generated in 0.06135 seconds
|