Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ve-dev] Extension to Code Generation for JPanel in VE


Hi Ali,

>I want to select one or more gui
>elements (f.e. JButton or JLabel) in VE and attach them to my JPanel
>extension (CustomPanel extends JPanel)(create a CustomPanel which holds
>this objects).


By select do you mean the user chooses them from the palette, or that they are child components of your CustomPanel and they select them in the graph viewer ?

Could you please provide more explanation on the scenario you're trying to tool for ?  Describe it as a set of steps that you want the user to take, for example:

1 - User drops CustomPanel from the palette
2 - User selects JButton from the palette and drops it on CustomPanel and code generated looks like ...

or for example
1 - User selects CustomPanel from a category in the "New Visual Class Wizard" and the generated class looks like ...

Best regards and many thanks,

Joe Winchester

Please respond to Discussions people developing code for the Visual Editor project <ve-dev@xxxxxxxxxxx>

Sent by:        ve-dev-bounces@xxxxxxxxxxx

To:        VE-DEV <ve-dev@xxxxxxxxxxx>
cc:        
Subject:        [ve-dev] Extension to Code Generation for JPanel in VE


Hi
I'm developing a custom JPanel (call it CustomPanel extends JPanel) and
want to make a custom plugin wich extends VE. I've added a custom
palette and an icon, and I've added a menu bar
(org.eclipse.ui.actionSets) to (Custom-)Panelize selected objects. I've
understood that code generation functions with JET and tried to read and
implement the examples presented in the Jet Tutorial 1 and 2. But I
didn't understand how (where) to extend the VE to extend the code
generation for JPanel. In particular I want to select one or more gui
elements (f.e. JButton or JLabel) in VE and attach them to my JPanel
extension (CustomPanel extends JPanel)(create a CustomPanel which holds
this objects). Thank you for your help.

With kind regards

Ali Ikinci
_______________________________________________
ve-dev mailing list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev


Back to the top