Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How to debug a Visual Editor Parse Error
How to debug a Visual Editor Parse Error [message #124615] Thu, 11 May 2006 20:27 Go to next message
Eclipse UserFriend
Originally posted by: gdiamond.harryfox.com

Hi,

I was constantly getting problems with Eclipse 3.1 and Visual Editor 1.1.0.1
not being able to properly parse some compoents. It would generally behave
by not displaying the components in the Design window, but would display
inside the Java Beans with a rather uninformative red x.

I upgraded to the newest versions hoping it would solve my problems, but now
i get even less: a blank Design screen and empty Java beans, and "Parse
Error" in the bottom status bar.

I created the original frame using the VE (drag and drop from the palette),
but manually added complex Actions to buttons/textfields. These are all
Swing components.

Here are the versions and log file.. Any ideas how to debug, what to check
for?

Thanks


Versions:
eclipse-SDK-3.2M6-win32
emf-sdo-runtime-2.2.0M6
VE-runtime-1.2M3
GEF-runtime-3.2M6

Log file:
!SESSION 2006-05-11
15:59:17.030 -----------------------------------------------
eclipse.buildId=I20060331-2000
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ve.java.core 4 0 2006-05-11 16:08:49.569
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.jem.internal.instantiation.base.JavaInstantiatio n.getSFeature(Ja
vaInstantiation.java:39)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getEventSF(Even
tDecoderHelper.java:214)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getInvocationIn
dex(EventDecoderHelper.java:693)
at
org.eclipse.ve.internal.java.codegen.java.AllocationStyleHel per.processEvent
(AllocationStyleHelper.java:45)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .decode(EventDec
oderHelper.java:489)
at
org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.decode(Abstra
ctEventDecoder.java:95)
at
org.eclipse.ve.internal.java.codegen.model.CodeEventRef.deco deExpression(Cod
eEventRef.java:146)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeExpress
ion(JavaSourceTranslator.java:608)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildComposit
ionModel(JavaSourceTranslator.java:734)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(
JavaSourceTranslator.java:866)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocumen
t(JavaSourceTranslator.java:939)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(Jav
aSourceTranslator.java:597)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.r
un(JavaVisualEditorPart.java:1978)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

!ENTRY org.eclipse.ve.java.core 2 0 2006-05-11 16:08:49.629
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.emf.ecore.util.EcoreUtil.getExistingAdapter(Ecor eUtil.java:78)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .unadaptToCompos
itionModel(EventDecoderHelper.java:651)
at
org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.isDeleted(Abs
tractEventDecoder.java:186)
at
org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.dispose(Abstr
actEventDecoder.java:224)
at
org.eclipse.ve.internal.java.codegen.model.BeanPart.deactiva te(BeanPart.java
:1141)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildComposit
ionModel(JavaSourceTranslator.java:767)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(
JavaSourceTranslator.java:866)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocumen
t(JavaSourceTranslator.java:939)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(Jav
aSourceTranslator.java:597)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.r
un(JavaVisualEditorPart.java:1978)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Re: How to debug a Visual Editor Parse Error [message #124628 is a reply to message #124615] Thu, 11 May 2006 22:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

You may have a bad cache. Try doing this:

1) Open a VE. Then close it and all other VE's.
2) Do a Project->Clean...->Clean All, and wait for build to finish.
3) Open a VE. It may be ok now.

Otherwise try stepping up to Eclipse 3.2RC3, GEF 3.2RC2a, EMF 2.2.0RC3,
and VE 1.2M3. We've fixed a lot of stuff and it may now parse.

--
Thanks,
Rich Kulp
Re: How to debug a Visual Editor Parse Error [message #124732 is a reply to message #124628] Fri, 12 May 2006 21:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gdiamond.harryfox.com

Hi Rich,

Thanks for the reply.
I tried your suggestions, including upgrading to Eclipse 3.2RC3, GEF
3.2RC2a, EMF 2.2.0RC3, but I still get a Parse Error & blank Design screen

Any thoughts as to what typically would break the parser? (The components
are Swing and created with the VE. Some components have code added on such
as Actions).
I don't mind going through my code and trying things to fix it, but i am not
sure where to start or what to look for. The log file doesn't provide any
clues that i can understand.

Thanks
Greg

The error looks the same from the log file:

!ENTRY org.eclipse.ve.java.core 4 0 2006-05-12 17:09:20.772
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.jem.internal.instantiation.base.JavaInstantiatio n.getSFeature(Ja
vaInstantiation.java:39)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getEventSF(Even
tDecoderHelper.java:214)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getInvocationIn
dex(EventDecoderHelper.java:693)
at
org.eclipse.ve.internal.java.codegen.java.AllocationStyleHel per.processEvent
(AllocationStyleHelper.java:45)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .decode(EventDec
oderHelper.java:489)
at
org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.decode(Abstra
ctEventDecoder.java:95)
at
org.eclipse.ve.internal.java.codegen.model.CodeEventRef.deco deExpression(Cod
eEventRef.java:146)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeExpress
ion(JavaSourceTranslator.java:608)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildComposit
ionModel(JavaSourceTranslator.java:734)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(
JavaSourceTranslator.java:866)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocumen
t(JavaSourceTranslator.java:939)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(Jav
aSourceTranslator.java:597)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.r
un(JavaVisualEditorPart.java:1978)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

!ENTRY org.eclipse.ve.java.core 2 0 2006-05-12 17:09:20.792
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.emf.ecore.util.EcoreUtil.getExistingAdapter(Ecor eUtil.java:80)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .unadaptToCompos
itionModel(EventDecoderHelper.java:651)
at
org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.isDeleted(Abs
tractEventDecoder.java:186)
at
org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.dispose(Abstr
actEventDecoder.java:224)
at
org.eclipse.ve.internal.java.codegen.model.BeanPart.deactiva te(BeanPart.java
:1141)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildComposit
ionModel(JavaSourceTranslator.java:767)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(
JavaSourceTranslator.java:866)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocumen
t(JavaSourceTranslator.java:939)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(Jav
aSourceTranslator.java:597)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.r
un(JavaVisualEditorPart.java:1978)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)



"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:e40cs2$r1i$1@utils.eclipse.org...
> You may have a bad cache. Try doing this:
>
> 1) Open a VE. Then close it and all other VE's.
> 2) Do a Project->Clean...->Clean All, and wait for build to finish.
> 3) Open a VE. It may be ok now.
>
> Otherwise try stepping up to Eclipse 3.2RC3, GEF 3.2RC2a, EMF 2.2.0RC3,
> and VE 1.2M3. We've fixed a lot of stuff and it may now parse.
>
> --
> Thanks,
> Rich Kulp
Re: How to debug a Visual Editor Parse Error [message #124845 is a reply to message #124732] Mon, 15 May 2006 14:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Does this happen for all of your files, or only certain specific ones?

If it is certain specific ones, can you send me the smallest example
that has the problem?

--
Thanks,
Rich Kulp
Re: How to debug a Visual Editor Parse Error [message #125000 is a reply to message #124845] Wed, 17 May 2006 22:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gdiamond.harryfox.com

Hi Rich,

Since my classes you can guess have too many dependancies and framework code
for you weed through, I tried to pinpoint the problem and create an example.
This example has a panel with multiple components with complex actions
assigned (Action classes with constructors than have arguments). VE design
mode doesn't seem to like this and displays a blank frame. If I comment out
1 of the .setAction(getAction()) lines it displays correctly.

This can also be fixed by changing the design (arguably for the better) on
my part - it works if I remove the constructor arguments so the action class
has a null constructor, and create setters for the variables instead.

Here's the example in case your curious:

package sample;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class Frame1 extends JFrame implements Interface1 {

private JPanel jContentPane = null;
private JButton jButton = null;
private JTextField jTextField = null;
private Object o = null;
private Action1 action = null;
private JPanel jPanel = null;

private JPanel getJPanel() {
if (jPanel == null) {
jPanel = new JPanel();
jPanel.add(getJButton(), null);
jPanel.add(getJTextField(), null);
}
return jPanel;
}

public static void main(String[] args) {
new Frame1().setVisible(true);
}

public Frame1() {
super();
initialize();
}

private void initialize() {
this.setSize(300, 200);
this.setContentPane(getJContentPane());
this.setTitle("JFrame");
}

private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(new FlowLayout());
jContentPane.add(getJPanel(), null);
}
return jContentPane;
}

public boolean getValue() {
return true;
}

private JButton getJButton() {
if (jButton == null) {
jButton = new JButton();
jButton.setAction(getAction());
jButton.setText("Click");
}
return jButton;
}

private JTextField getJTextField() {
if (jTextField == null) {
jTextField = new JTextField();
jTextField.setAction(getAction());
jTextField.setColumns(6);
}
return jTextField;
}

public Object getObject() {
if (o == null)
o = new Object();
return o;
}

public Action1 getAction() {
if (action == null)
action = new Action1(this, getObject());
return action;
}
}

------------------------------------------------------------ ----
package sample;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;

public class Action1 extends AbstractAction {

private Interface1 i;
private Object o;

public Action1(Interface1 i, Object o) {
this.i = i;
this.o = o;
}

public void actionPerformed(ActionEvent e) {
System.out.println(i.getValue());
}
}
------------------------------------------------------------ ----
package sample;

public interface Interface1 {
public boolean getValue();
}




"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:e4a2mu$pl2$1@utils.eclipse.org...
> Does this happen for all of your files, or only certain specific ones?
>
> If it is certain specific ones, can you send me the smallest example
> that has the problem?
>
> --
> Thanks,
> Rich Kulp
Re: How to debug a Visual Editor Parse Error [message #125013 is a reply to message #125000] Thu, 18 May 2006 14:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Thanks for the test case. It fails in 1.2 also, though not as bad. You
don't get parse error, but it doesn't show the contents of the frame
either. I'll see if I can get it intp 1.2 to at least show the contents
even though the action still cannot be instantiated. The problem is 1.2
is in release candidate state, only major bugs.

The reason it has a problem is complicated. It is not becase action1 has
arguments, it is because it takes an Interface1 argument. The problem is
the when editing Frame1, we actually can't instantiated Frame1. That is
because it is being edited and not yet finished. So instead we
instanciate the superclass, which is JFrame. Now the problem is that
JFrame doesn't implement Interface1. In VE 1.2 we do a better job of
catching this, but we still have problems.

--
Thanks,
Rich Kulp
Re: How to debug a Visual Editor Parse Error [message #125025 is a reply to message #125013] Thu, 18 May 2006 16:52 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I fixed with

https://bugs.eclipse.org/bugs/show_bug.cgi?id=142537

--
Thanks,
Rich Kulp
Re: How to debug a Visual Editor Parse Error [message #612872 is a reply to message #124615] Thu, 11 May 2006 22:12 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

You may have a bad cache. Try doing this:

1) Open a VE. Then close it and all other VE's.
2) Do a Project->Clean...->Clean All, and wait for build to finish.
3) Open a VE. It may be ok now.

Otherwise try stepping up to Eclipse 3.2RC3, GEF 3.2RC2a, EMF 2.2.0RC3,
and VE 1.2M3. We've fixed a lot of stuff and it may now parse.

--
Thanks,
Rich Kulp
Re: How to debug a Visual Editor Parse Error [message #612891 is a reply to message #124628] Fri, 12 May 2006 21:40 Go to previous message
Eclipse UserFriend
Originally posted by: gdiamond.harryfox.com

Hi Rich,

Thanks for the reply.
I tried your suggestions, including upgrading to Eclipse 3.2RC3, GEF
3.2RC2a, EMF 2.2.0RC3, but I still get a Parse Error & blank Design screen

Any thoughts as to what typically would break the parser? (The components
are Swing and created with the VE. Some components have code added on such
as Actions).
I don't mind going through my code and trying things to fix it, but i am not
sure where to start or what to look for. The log file doesn't provide any
clues that i can understand.

Thanks
Greg

The error looks the same from the log file:

!ENTRY org.eclipse.ve.java.core 4 0 2006-05-12 17:09:20.772
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.jem.internal.instantiation.base.JavaInstantiatio n.getSFeature(Ja
vaInstantiation.java:39)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getEventSF(Even
tDecoderHelper.java:214)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getInvocationIn
dex(EventDecoderHelper.java:693)
at
org.eclipse.ve.internal.java.codegen.java.AllocationStyleHel per.processEvent
(AllocationStyleHelper.java:45)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .decode(EventDec
oderHelper.java:489)
at
org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.decode(Abstra
ctEventDecoder.java:95)
at
org.eclipse.ve.internal.java.codegen.model.CodeEventRef.deco deExpression(Cod
eEventRef.java:146)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeExpress
ion(JavaSourceTranslator.java:608)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildComposit
ionModel(JavaSourceTranslator.java:734)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(
JavaSourceTranslator.java:866)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocumen
t(JavaSourceTranslator.java:939)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(Jav
aSourceTranslator.java:597)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.r
un(JavaVisualEditorPart.java:1978)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

!ENTRY org.eclipse.ve.java.core 2 0 2006-05-12 17:09:20.792
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.emf.ecore.util.EcoreUtil.getExistingAdapter(Ecor eUtil.java:80)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .unadaptToCompos
itionModel(EventDecoderHelper.java:651)
at
org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.isDeleted(Abs
tractEventDecoder.java:186)
at
org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.dispose(Abstr
actEventDecoder.java:224)
at
org.eclipse.ve.internal.java.codegen.model.BeanPart.deactiva te(BeanPart.java
:1141)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildComposit
ionModel(JavaSourceTranslator.java:767)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(
JavaSourceTranslator.java:866)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocumen
t(JavaSourceTranslator.java:939)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(Jav
aSourceTranslator.java:597)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.r
un(JavaVisualEditorPart.java:1978)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)



"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:e40cs2$r1i$1@utils.eclipse.org...
> You may have a bad cache. Try doing this:
>
> 1) Open a VE. Then close it and all other VE's.
> 2) Do a Project->Clean...->Clean All, and wait for build to finish.
> 3) Open a VE. It may be ok now.
>
> Otherwise try stepping up to Eclipse 3.2RC3, GEF 3.2RC2a, EMF 2.2.0RC3,
> and VE 1.2M3. We've fixed a lot of stuff and it may now parse.
>
> --
> Thanks,
> Rich Kulp
Re: How to debug a Visual Editor Parse Error [message #612906 is a reply to message #124732] Mon, 15 May 2006 14:20 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Does this happen for all of your files, or only certain specific ones?

If it is certain specific ones, can you send me the smallest example
that has the problem?

--
Thanks,
Rich Kulp
Re: How to debug a Visual Editor Parse Error [message #612927 is a reply to message #124845] Wed, 17 May 2006 22:10 Go to previous message
Eclipse UserFriend
Originally posted by: gdiamond.harryfox.com

Hi Rich,

Since my classes you can guess have too many dependancies and framework code
for you weed through, I tried to pinpoint the problem and create an example.
This example has a panel with multiple components with complex actions
assigned (Action classes with constructors than have arguments). VE design
mode doesn't seem to like this and displays a blank frame. If I comment out
1 of the .setAction(getAction()) lines it displays correctly.

This can also be fixed by changing the design (arguably for the better) on
my part - it works if I remove the constructor arguments so the action class
has a null constructor, and create setters for the variables instead.

Here's the example in case your curious:

package sample;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class Frame1 extends JFrame implements Interface1 {

private JPanel jContentPane = null;
private JButton jButton = null;
private JTextField jTextField = null;
private Object o = null;
private Action1 action = null;
private JPanel jPanel = null;

private JPanel getJPanel() {
if (jPanel == null) {
jPanel = new JPanel();
jPanel.add(getJButton(), null);
jPanel.add(getJTextField(), null);
}
return jPanel;
}

public static void main(String[] args) {
new Frame1().setVisible(true);
}

public Frame1() {
super();
initialize();
}

private void initialize() {
this.setSize(300, 200);
this.setContentPane(getJContentPane());
this.setTitle("JFrame");
}

private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(new FlowLayout());
jContentPane.add(getJPanel(), null);
}
return jContentPane;
}

public boolean getValue() {
return true;
}

private JButton getJButton() {
if (jButton == null) {
jButton = new JButton();
jButton.setAction(getAction());
jButton.setText("Click");
}
return jButton;
}

private JTextField getJTextField() {
if (jTextField == null) {
jTextField = new JTextField();
jTextField.setAction(getAction());
jTextField.setColumns(6);
}
return jTextField;
}

public Object getObject() {
if (o == null)
o = new Object();
return o;
}

public Action1 getAction() {
if (action == null)
action = new Action1(this, getObject());
return action;
}
}

------------------------------------------------------------ ----
package sample;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;

public class Action1 extends AbstractAction {

private Interface1 i;
private Object o;

public Action1(Interface1 i, Object o) {
this.i = i;
this.o = o;
}

public void actionPerformed(ActionEvent e) {
System.out.println(i.getValue());
}
}
------------------------------------------------------------ ----
package sample;

public interface Interface1 {
public boolean getValue();
}




"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:e4a2mu$pl2$1@utils.eclipse.org...
> Does this happen for all of your files, or only certain specific ones?
>
> If it is certain specific ones, can you send me the smallest example
> that has the problem?
>
> --
> Thanks,
> Rich Kulp
Re: How to debug a Visual Editor Parse Error [message #612929 is a reply to message #125000] Thu, 18 May 2006 14:56 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Thanks for the test case. It fails in 1.2 also, though not as bad. You
don't get parse error, but it doesn't show the contents of the frame
either. I'll see if I can get it intp 1.2 to at least show the contents
even though the action still cannot be instantiated. The problem is 1.2
is in release candidate state, only major bugs.

The reason it has a problem is complicated. It is not becase action1 has
arguments, it is because it takes an Interface1 argument. The problem is
the when editing Frame1, we actually can't instantiated Frame1. That is
because it is being edited and not yet finished. So instead we
instanciate the superclass, which is JFrame. Now the problem is that
JFrame doesn't implement Interface1. In VE 1.2 we do a better job of
catching this, but we still have problems.

--
Thanks,
Rich Kulp
Re: How to debug a Visual Editor Parse Error [message #612931 is a reply to message #125013] Thu, 18 May 2006 16:52 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I fixed with

https://bugs.eclipse.org/bugs/show_bug.cgi?id=142537

--
Thanks,
Rich Kulp
Previous Topic:databinding and drag/drop
Next Topic:VE doesn't display components in the Palette menu
Goto Forum:
  


Current Time: Fri Apr 19 06:47:27 GMT 2024

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

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

Back to the top