Home » Archived » Visual Editor (VE) » Ask VE to write specific code
Ask VE to write specific code [message #69191] |
Wed, 27 October 2004 09:49 |
Eclipse User |
|
|
|
Originally posted by: txfen.hands.com.my
Hi guys...
I actually have my own tabbed pane (something like JTabbedPane), which
allows developers to add panels into it, in fact, it works exactly like
JTabbedPane.
You know when we drop a panel into JTabbedPane in VE, it will actually
generate the code .addTab(...) instead of the normal .add(...). But of
course, when I add a panel to my tabbed pane, it won't generate such a
code.
Wondering how i can achieve this. Any idea, recommendation, documents,
sample to share?
Thanks a lot guys~!
klutzie
|
|
|
Re: Ask VE to write specific code [message #69326 is a reply to message #69191] |
Thu, 28 October 2004 16:45 |
Eclipse User |
|
|
|
Originally posted by: mendelgili.netscape.net
klutzie wrote:
> Hi guys...
>
> I actually have my own tabbed pane (something like JTabbedPane), which
> allows developers to add panels into it, in fact, it works exactly like
> JTabbedPane.
>
> You know when we drop a panel into JTabbedPane in VE, it will actually
> generate the code .addTab(...) instead of the normal .add(...). But of
> course, when I add a panel to my tabbed pane, it won't generate such a
> code.
>
> Wondering how i can achieve this. Any idea, recommendation, documents,
> sample to share?
>
> Thanks a lot guys~!
>
>
>
> klutzie
>
Adding a tab to a tabbed pane is a bit different in VE than adding a component, as the addTab includes such things as
tab-text, icon, etc.
See ...\org.eclipse.ve.jfc\overrides\javax\swing\JTabbedPane.ove rride for more details on how the "tabs" feature is
created, as well as the override to use the JTabbedPaneDecoder, and the JTabbedPaneGraphicalEditPart.
If your tabbed pane extends the Swing JTabbedPane, it will get the settings from the override above. If it is not, you
will have to create an override file, and use similar overrides and decoder/editparts customizations.
|
|
|
Re: Ask VE to write specific code [message #602388 is a reply to message #69191] |
Thu, 28 October 2004 16:45 |
Gili Mendel Messages: 338 Registered: July 2009 |
Senior Member |
|
|
klutzie wrote:
> Hi guys...
>
> I actually have my own tabbed pane (something like JTabbedPane), which
> allows developers to add panels into it, in fact, it works exactly like
> JTabbedPane.
>
> You know when we drop a panel into JTabbedPane in VE, it will actually
> generate the code .addTab(...) instead of the normal .add(...). But of
> course, when I add a panel to my tabbed pane, it won't generate such a
> code.
>
> Wondering how i can achieve this. Any idea, recommendation, documents,
> sample to share?
>
> Thanks a lot guys~!
>
>
>
> klutzie
>
Adding a tab to a tabbed pane is a bit different in VE than adding a component, as the addTab includes such things as
tab-text, icon, etc.
See ...\org.eclipse.ve.jfc\overrides\javax\swing\JTabbedPane.ove rride for more details on how the "tabs" feature is
created, as well as the override to use the JTabbedPaneDecoder, and the JTabbedPaneGraphicalEditPart.
If your tabbed pane extends the Swing JTabbedPane, it will get the settings from the override above. If it is not, you
will have to create an override file, and use similar overrides and decoder/editparts customizations.
|
|
|
Goto Forum:
Current Time: Mon Dec 30 17:13:59 GMT 2024
Powered by FUDForum. Page generated in 0.03356 seconds
|