private RetargetTextEditorAction fGotoMatchingBracket;
private List fRetargetToolbarActions = new ArrayList();
- protected PHPParserAction parserAction;
- protected ShowExternalPreviewAction showExternalPreviewAction;
+ protected PHPParserAction fParserAction;
+ protected ShowExternalPreviewAction fShowExternalPreviewAction;
/**
* Default constructor.
// fContentAssistTip = new RetargetTextEditorAction(PHPEditorMessages.getResourceBundle(), "ContentAssistTip."); //$NON-NLS-1$
// fTogglePresentation = new PresentationAction();
- parserAction = PHPParserAction.getInstance();
+ fParserAction = PHPParserAction.getInstance();
+
if (SWT.getPlatform().equals("win32")) {
- showExternalPreviewAction = ShowExternalPreviewAction.getInstance();
+ fShowExternalPreviewAction = ShowExternalPreviewAction.getInstance();
}
}
// fTogglePresentation.setEditor(editor);
// fTogglePresentation.update();
- parserAction.setEditor(textEditor);
- parserAction.update();
+ PHPeclipsePlugin.getDefault().setTextEditor(textEditor);
+ fParserAction.setEditor(textEditor);
+ fParserAction.update();
if (SWT.getPlatform().equals("win32") &&
textEditor instanceof AbstractTextEditor) {
- showExternalPreviewAction.setEditor(textEditor);
- showExternalPreviewAction.update();
+ fShowExternalPreviewAction.setEditor(textEditor);
+ fShowExternalPreviewAction.update();
IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
if (store.getBoolean(PHPeclipsePlugin.SHOW_EXTERNAL_PREVIEW_PREF)) {
IAction a = ShowExternalPreviewAction.getInstance();