Skip Navigation

Wrapping a Swing App in an Editor

  1. Create an editor for your Swing app with all extension points and classes that editors require. Complete all steps in Creating a Sample Editor.

        The only change that you must make is in the content of the createPartControl() method. Information about the code for your Swing app is described in Extending the SwingControl Class.

        In "Creating a Sample Editor," the sample editor uses com.sabre.redapp.example.editor.basic for the editor ID and SampleEditor for the class name.

        In the sample Swing editor, the editor ID is com.sabre.redapp.example.swing.editor, and the class name is SwingEditor .

        If you want to use the SwingEditor class, you must import the com.sabre.redapp.example.swing sample plug-in into your project.

  1. Add a menu contribution. Complete the steps in Creating Basic Menu Contributions for the types of menu contributions that you want.

  1. Add a status line contribution. Complete the steps in Adding Status Line Contributions for Editors.

  2. Afterwards, you must complete the steps in the following procedures: