@Override
protected void createFormContent(IManagedForm managedForm) {
managedForm.setInput(model);
FormToolkit tk = managedForm.getToolkit();
final ScrolledForm form = managedForm.getForm();
form.setText("Run");
tk.decorateFormHeading(form.getForm());
form.getForm().addMessageHyperlinkListener(new MessageHyperlinkAdapter(getEditor()));
// Toolbar Actions
RunAction runAction = new RunAction(this, "run");
runAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(Plugin.PLUGIN_ID, "icons/run.gif"));
runAction.setText("Run OSGi");
ActionContributionItem runContrib = new ActionContributionItem(runAction);
runContrib.setMode(ActionContributionItem.MODE_FORCE_TEXT);
form.getToolBarManager().add(runContrib);
RunAction debugAction = new RunAction(this, "debug");
debugAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(Plugin.PLUGIN_ID, "icons/debug.gif"));
debugAction.setText("Debug OSGi");
ActionContributionItem debugContrib = new ActionContributionItem(debugAction);
debugContrib.setMode(ActionContributionItem.MODE_FORCE_TEXT);
form.getToolBarManager().add(debugContrib);
ExportAction exportAction = new ExportAction(getEditorSite().getShell(), getEditor(), model);
exportAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(Plugin.PLUGIN_ID, "icons/run_export.png"));
exportAction.setText("Export");
ActionContributionItem exportContrib = new ActionContributionItem(exportAction);
exportContrib.setMode(ActionContributionItem.MODE_FORCE_TEXT);
if (exportAction.shouldEnable())
form.getToolBarManager().add(exportContrib);
form.getToolBarManager().update(true);
GridLayout gl;
GridData gd;
// Create Controls
final Composite body = form.getBody();
gl = new GridLayout(2, true);
body.setLayout(gl);
final Composite left = tk.createComposite(body);
gd = new GridData(SWT.FILL, SWT.FILL, true, true);