Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Edit existing sourcefiles with VE
Edit existing sourcefiles with VE [message #114204] Wed, 28 December 2005 08:00 Go to next message
Eclipse UserFriend
Originally posted by: j.haggstrom.saen.nl

Hey! I just downloaded and installed VE for eclipse, looked through a
small tutorial from IBM and now I want to use this wonderful tool to add
some new design and functionality to my GUI.

Problem is VE does not parse my code and show it in design view.
I knew before I tried VE that this might be a problem. After reading the
help for VE in eclipse i saw the following:

"Rules for parsing code for display on the Design view"

The visual editor for Java attempts to visualize code in the Design view
if the code meets any of the following criteria:
The component is a visual class. Visual classes are subclasses of
java.awt.Component or org.eclipse.swt.widgets.Widget

In my case I have a panel class that extends an abstract panel class that
extends javax.swing.JPanel

so, Will it be impossible for me to edit my panel class in Visual Editor?

Best Regards/Jonas
Re: Edit existing sourcefiles with VE [message #114229 is a reply to message #114204] Wed, 28 December 2005 10:09 Go to previous messageGo to next message
Eclipse UserFriend
Jonas,

It should give you some visual representation of your code, based on
what it is capable of parsing from your source. Just open your source
file by right clicking on it, then selecting Open With->Visual Editor to
see what happens.

- Jeff
Re: Edit existing sourcefiles with VE [message #114239 is a reply to message #114229] Wed, 28 December 2005 11:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: j.haggstrom.saen.nl

Well, I have done that and i can see something but it is not much it is a
small grey square representing the object (this) and nothing more...

No comboboxes, buttons, panels or anything.
I have no Idea how to make the parser work with my sourcecode...

"Jeff Myers" <jeff.myers@eclipse.org> wrote in message
news:dou9n1$h7a$1@utils.eclipse.org...
> Jonas,
>
> It should give you some visual representation of your code, based on
> what it is capable of parsing from your source. Just open your source
> file by right clicking on it, then selecting Open With->Visual Editor to
> see what happens.
>
> - Jeff
Re: Edit existing sourcefiles with VE [message #114389 is a reply to message #114239] Fri, 30 December 2005 14:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jonas,
It would be very helpful if you could paste a sample of how your code
looks so that we could determine whats going on with it. It could be a
small correction thats needed.
Regards,
Sri.

exquisitus wrote:
> Well, I have done that and i can see something but it is not much it is a
> small grey square representing the object (this) and nothing more...
>
> No comboboxes, buttons, panels or anything.
> I have no Idea how to make the parser work with my sourcecode...
>
> "Jeff Myers" <jeff.myers@eclipse.org> wrote in message
> news:dou9n1$h7a$1@utils.eclipse.org...
>
>>Jonas,
>>
>>It should give you some visual representation of your code, based on
>>what it is capable of parsing from your source. Just open your source
>>file by right clicking on it, then selecting Open With->Visual Editor to
>>see what happens.
>>
>> - Jeff
>
>
>
Re: Edit existing sourcefiles with VE [message #114402 is a reply to message #114239] Fri, 30 December 2005 14:22 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The problem is that you are extending directly from an abstract class.
When you are editing a visual class, we normally instantiate the super
class of that class so we can get as accurate a portrayal as possible.
But since it is not permitted to instantiate an abstract class we need
to walk the hierarchy until we get to a non-abstract class. In your case
that is a JPanel instance instead of your abstract class.

The small gray square it the JPanel. It is small because there was no
size set for it.

--
Thanks,
Rich Kulp
Re: Edit existing sourcefiles with VE [message #611701 is a reply to message #114204] Wed, 28 December 2005 10:09 Go to previous message
Eclipse UserFriend
Jonas,

It should give you some visual representation of your code, based on
what it is capable of parsing from your source. Just open your source
file by right clicking on it, then selecting Open With->Visual Editor to
see what happens.

- Jeff
Re: Edit existing sourcefiles with VE [message #611702 is a reply to message #114229] Wed, 28 December 2005 11:38 Go to previous message
Eclipse UserFriend
Well, I have done that and i can see something but it is not much it is a
small grey square representing the object (this) and nothing more...

No comboboxes, buttons, panels or anything.
I have no Idea how to make the parser work with my sourcecode...

"Jeff Myers" <jeff.myers@eclipse.org> wrote in message
news:dou9n1$h7a$1@utils.eclipse.org...
> Jonas,
>
> It should give you some visual representation of your code, based on
> what it is capable of parsing from your source. Just open your source
> file by right clicking on it, then selecting Open With->Visual Editor to
> see what happens.
>
> - Jeff
Re: Edit existing sourcefiles with VE [message #611714 is a reply to message #114239] Fri, 30 December 2005 14:20 Go to previous message
Eclipse UserFriend
Hi Jonas,
It would be very helpful if you could paste a sample of how your code
looks so that we could determine whats going on with it. It could be a
small correction thats needed.
Regards,
Sri.

exquisitus wrote:
> Well, I have done that and i can see something but it is not much it is a
> small grey square representing the object (this) and nothing more...
>
> No comboboxes, buttons, panels or anything.
> I have no Idea how to make the parser work with my sourcecode...
>
> "Jeff Myers" <jeff.myers@eclipse.org> wrote in message
> news:dou9n1$h7a$1@utils.eclipse.org...
>
>>Jonas,
>>
>>It should give you some visual representation of your code, based on
>>what it is capable of parsing from your source. Just open your source
>>file by right clicking on it, then selecting Open With->Visual Editor to
>>see what happens.
>>
>> - Jeff
>
>
>
Re: Edit existing sourcefiles with VE [message #611715 is a reply to message #114239] Fri, 30 December 2005 14:22 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The problem is that you are extending directly from an abstract class.
When you are editing a visual class, we normally instantiate the super
class of that class so we can get as accurate a portrayal as possible.
But since it is not permitted to instantiate an abstract class we need
to walk the hierarchy until we get to a non-abstract class. In your case
that is a JPanel instance instead of your abstract class.

The small gray square it the JPanel. It is small because there was no
size set for it.

--
Thanks,
Rich Kulp
Previous Topic:Tables
Next Topic:Disable automatic comments generation
Goto Forum:
  


Current Time: Sun Jun 08 19:24:16 EDT 2025

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

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

Back to the top