Skip Navigation

Integrating a Web App Using the Default Editor

This procedure shows how to integrate a web app into a browser using default editor classes.

Complete this procedure to configure a browser in an editor with your target website.

Most of the values for the element properties that you add in this procedure are described in Creating a Sample Editor. Other values are described in this procedure.

  1. Add the same editor plug-in dependencies as shown in "Creating a Sample Editor."

  2. Add the org.eclipse.ui.editors extension to a plug-in project, and then add the editor element.

        Type values for the following editor properties: id, name, icon, and class.

For the class, add the DefaultWebkitEditor class. The fully-qualified name is com.sabre.edge.platform.optional.webkit.editors.DefaultWebkitEditor .

        For information about these properties, see the editor element in Creating a Sample Editor.

  1. Add the com.sabre.edge.platform.core.editor.editorApp extension point.

        To this extension, add the editorApp element. Type the following values for editorApp properties:

browserURL

Add the The_URL.

class

The DefaultWebkitEditor class is required.
The fully-qualified name follows: com.sabre.edge.platform.optional.webkit.editors.DefaultWebkitEditor.

inputClass

In this implementation, the inputClass attribute must remain empty.

name

See editorApp in Creating a Sample Editor.

tooltip

See tooltip in Creating a Sample Editor.

editorid

This matches the value in id that you defined for org.eclipse.ui.editors.

 

  1. Add the org.eclipse.ui.commands extension point.

        To this extension point, add the command element.

        Type values for the following command properties: id and name.

        For these values, see the command element in Creating a Sample Editor.

  1. Add a new CommandParameter element to command.

        Type values for the following CommandParameter properties:   id and name properties

        For these values, see CommandParameter for org.eclipse.ui.commands in Creating a Sample Editor.

  1. Add the org.eclipse.ui.handlers extension point, and then add the handler element.

        Type values for the following handler properties: commandId and class

        For these values, see handler in Creating a Sample Editor.

You are ready to test your browser editor and web app in Sabre Red 360.