Skip to main content

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


Here are my two postings about my problem:

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.

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.

There are several alternatives but for the moment I'm intrested in is:

1. You built a GUI using Swing elements with VE
2. You mark objects which you want to get into the CustomPanel
3. You select from the main menu CustomStyle->Make CustomPanel
4. The source should be modified that a new CustomPanel is generated and the marked objects are added to the Custom panel and removed from their original surrounding ContentPane
5. one can iterate from 2. step on

Thanks a lot

Ali Ikinci




Back to the top