01: package com.xoetrope.editor.netbeans.services;
02:
03: import com.xoetrope.carousel.services.DataEditor;
04: import java.awt.BorderLayout;
05: import net.xoetrope.editor.project.XEditorProject;
06: import org.openide.windows.TopComponent;
07:
08: /**
09: * Assign the XEditorProject parameter to a local variable. Add a toolbar to
10: * the panel. Create a splitter pane with the tree component on the left and
11: * the dataeditor on the right. Call the function to load the datasources into
12: * the combobox.
13: * @param proj the current XEditorProject project
14: */
15: public class DataEditorTopComponent extends TopComponent {
16: private DataEditor dataEditor;
17:
18: public DataEditorTopComponent(XEditorProject proj) {
19: super ();
20:
21: dataEditor = new DataEditor(proj);
22: setLayout(new BorderLayout());
23: add(dataEditor, BorderLayout.CENTER);
24: }
25: }
|