Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Using VE with Composite directly
Using VE with Composite directly [message #59698] Mon, 13 September 2004 08:26 Go to next message
Eclipse UserFriend
Originally posted by: david.roamware.co.uk

I have followed the example on Developerworks from May 4th. But it uses the
Shell as the class on which to design in the Design view. In the help file
it clearly says that you can use any visual class - "The component is a
visual class. Visual classes are subclasses of java.awt.Component or
org.eclipse.swt.widgets.Widget. These are already modeled by the visual
editor."

I tried it with this code,

public class BasicEquity extends Composite {

public BasicEquity(Composite parent, int style) {
super(parent, style);
}
}

but no go, what am I missing here? I want to design separate 20 views all
based on Composite, having to have these all use Shell jsut to be able to
use VE and then hand editting the code to remove this is very labourious,
especially if you want to change the layout using the designer (you have to
put back tthe Shell)

I am using the last integration build from 20040901 with the correct
dependencies as listed on the download page.

Thx.

David
--


------------------------------------------------------------ ---------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com
Re: Using VE with Composite directly [message #59793 is a reply to message #59698] Mon, 13 September 2004 11:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Any driver you may have doesn't allow subclassing Composite. We just got
that working this weekend so it should be showing up in the next build.

David Wynter wrote:

> I have followed the example on Developerworks from May 4th. But it uses the
> Shell as the class on which to design in the Design view. In the help file
> it clearly says that you can use any visual class - "The component is a
> visual class. Visual classes are subclasses of java.awt.Component or
> org.eclipse.swt.widgets.Widget. These are already modeled by the visual
> editor."
>
> I tried it with this code,
>
> public class BasicEquity extends Composite {
>
> public BasicEquity(Composite parent, int style) {
> super(parent, style);
> }
> }
>
> but no go, what am I missing here? I want to design separate 20 views all
> based on Composite, having to have these all use Shell jsut to be able to
> use VE and then hand editting the code to remove this is very labourious,
> especially if you want to change the layout using the designer (you have to
> put back tthe Shell)
>
> I am using the last integration build from 20040901 with the correct
> dependencies as listed on the download page.
>
> Thx.
>
> David

--
Thanks, Rich Kulp

Re: Using VE with Composite directly [message #59816 is a reply to message #59793] Mon, 13 September 2004 12:06 Go to previous message
Eclipse UserFriend
Originally posted by: david.roamware.co.uk

Hi,

Thanks, any idea when the next integration build might be? The reason I ask
is because without bugs fixed on the weekend, 73634 and 71854, VE is
extremely limited for SWT design.

Regards,

David


--


------------------------------------------------------------ ---------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com


"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:ci4cmb$aha$4@eclipse.org...
> Any driver you may have doesn't allow subclassing Composite. We just got
> that working this weekend so it should be showing up in the next build.
>
> David Wynter wrote:
>
> > I have followed the example on Developerworks from May 4th. But it uses
the
> > Shell as the class on which to design in the Design view. In the help
file
> > it clearly says that you can use any visual class - "The component is a
> > visual class. Visual classes are subclasses of java.awt.Component or
> > org.eclipse.swt.widgets.Widget. These are already modeled by the visual
> > editor."
> >
> > I tried it with this code,
> >
> > public class BasicEquity extends Composite {
> >
> > public BasicEquity(Composite parent, int style) {
> > super(parent, style);
> > }
> > }
> >
> > but no go, what am I missing here? I want to design separate 20 views
all
> > based on Composite, having to have these all use Shell jsut to be able
to
> > use VE and then hand editting the code to remove this is very
labourious,
> > especially if you want to change the layout using the designer (you have
to
> > put back tthe Shell)
> >
> > I am using the last integration build from 20040901 with the correct
> > dependencies as listed on the download page.
> >
> > Thx.
> >
> > David
>
> --
> Thanks, Rich Kulp
> 
>
Re: Using VE with Composite directly [message #598426 is a reply to message #59698] Mon, 13 September 2004 11:04 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Any driver you may have doesn't allow subclassing Composite. We just got
that working this weekend so it should be showing up in the next build.

David Wynter wrote:

> I have followed the example on Developerworks from May 4th. But it uses the
> Shell as the class on which to design in the Design view. In the help file
> it clearly says that you can use any visual class - "The component is a
> visual class. Visual classes are subclasses of java.awt.Component or
> org.eclipse.swt.widgets.Widget. These are already modeled by the visual
> editor."
>
> I tried it with this code,
>
> public class BasicEquity extends Composite {
>
> public BasicEquity(Composite parent, int style) {
> super(parent, style);
> }
> }
>
> but no go, what am I missing here? I want to design separate 20 views all
> based on Composite, having to have these all use Shell jsut to be able to
> use VE and then hand editting the code to remove this is very labourious,
> especially if you want to change the layout using the designer (you have to
> put back tthe Shell)
>
> I am using the last integration build from 20040901 with the correct
> dependencies as listed on the download page.
>
> Thx.
>
> David

--
Thanks, Rich Kulp

Re: Using VE with Composite directly [message #598435 is a reply to message #59793] Mon, 13 September 2004 12:06 Go to previous message
Eclipse UserFriend
Hi,

Thanks, any idea when the next integration build might be? The reason I ask
is because without bugs fixed on the weekend, 73634 and 71854, VE is
extremely limited for SWT design.

Regards,

David


--


------------------------------------------------------------ ---------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com


"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:ci4cmb$aha$4@eclipse.org...
> Any driver you may have doesn't allow subclassing Composite. We just got
> that working this weekend so it should be showing up in the next build.
>
> David Wynter wrote:
>
> > I have followed the example on Developerworks from May 4th. But it uses
the
> > Shell as the class on which to design in the Design view. In the help
file
> > it clearly says that you can use any visual class - "The component is a
> > visual class. Visual classes are subclasses of java.awt.Component or
> > org.eclipse.swt.widgets.Widget. These are already modeled by the visual
> > editor."
> >
> > I tried it with this code,
> >
> > public class BasicEquity extends Composite {
> >
> > public BasicEquity(Composite parent, int style) {
> > super(parent, style);
> > }
> > }
> >
> > but no go, what am I missing here? I want to design separate 20 views
all
> > based on Composite, having to have these all use Shell jsut to be able
to
> > use VE and then hand editting the code to remove this is very
labourious,
> > especially if you want to change the layout using the designer (you have
to
> > put back tthe Shell)
> >
> > I am using the last integration build from 20040901 with the correct
> > dependencies as listed on the download page.
> >
> > Thx.
> >
> > David
>
> --
> Thanks, Rich Kulp
> 
>
Previous Topic:RC1 changes?
Next Topic:Installing VE 1.0M2 and VE 1.0.1 RC2 on E3,EMF 2.0.1 and GEF 3.0.0
Goto Forum:
  


Current Time: Wed Jun 04 08:45:16 EDT 2025

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

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

Back to the top