Now we must provide the actual implementation of the dockable window referenced in dockables.xml (see the section called "The Dockable Definition File" and the section called "Creating Other Plugin Resources"). Here is the QuickNotepad.java source file, with some details not related to the dockable window API trimmed:
public class QuickNotepad extends JPanel implements EBComponent { private View view; private String position; ... public QuickNotepad(View view, String position) { this.view = view; this.position = position; ... } ... public void handleMessage(EBMessage message) { if (message instanceof PropertiesChanged) { propertiesChanged(); } } ... } |
This excerpt does not set forth the layout of the plugin's visible components, nor does it show how our user actions will be implemented. Both these matters are covered in the full source code.