/**
* PHP specific text editor.
*/
-public class PHPUnitEditor extends PHPEditor{ //implements IJavaReconcilingListener {
+public class PHPUnitEditor extends PHPEditor { //implements
+ // IJavaReconcilingListener {
interface ITextConverter {
void customizeDocumentCommand(IDocument document,
DocumentCommand command);
private List fTextConverters;
private boolean fIgnoreTextConverters = false;
// private JavaCorrectionAssistant fCorrectionAssistant;
- public AdaptedSourceViewer(Composite parent, IVerticalRuler verticalRuler, IOverviewRuler overviewRuler, boolean showAnnotationsOverview, int styles, IPreferenceStore store) {
- super(parent, verticalRuler, overviewRuler, showAnnotationsOverview, styles, store);
- }
-// public AdaptedSourceViewer(Composite parent,
-// IVerticalRuler verticalRuler, IOverviewRuler overviewRuler,
-// boolean showAnnotationsOverview, int styles) {
-// super(parent, verticalRuler, overviewRuler,
-// showAnnotationsOverview, styles);
-// }
+ public AdaptedSourceViewer(Composite parent,
+ IVerticalRuler verticalRuler, IOverviewRuler overviewRuler,
+ boolean showAnnotationsOverview, int styles,
+ IPreferenceStore store) {
+ super(parent, verticalRuler, overviewRuler,
+ showAnnotationsOverview, styles, store);
+ }
+ // public AdaptedSourceViewer(Composite parent,
+ // IVerticalRuler verticalRuler, IOverviewRuler overviewRuler,
+ // boolean showAnnotationsOverview, int styles) {
+ // super(parent, verticalRuler, overviewRuler,
+ // showAnnotationsOverview, styles);
+ // }
public IContentAssistant getContentAssistant() {
return fContentAssistant;
}
// }
// }
// }
-
/*
- * @see org.eclipse.jdt.internal.ui.javaeditor.JavaEditor#createJavaSourceViewer(org.eclipse.swt.widgets.Composite, org.eclipse.jface.text.source.IVerticalRuler, org.eclipse.jface.text.source.IOverviewRuler, boolean, int)
+ * @see org.eclipse.jdt.internal.ui.javaeditor.JavaEditor#createJavaSourceViewer(org.eclipse.swt.widgets.Composite,
+ * org.eclipse.jface.text.source.IVerticalRuler,
+ * org.eclipse.jface.text.source.IOverviewRuler, boolean, int)
*/
- protected ISourceViewer createJavaSourceViewer(Composite parent, IVerticalRuler verticalRuler, IOverviewRuler overviewRuler, boolean isOverviewRulerVisible, int styles, IPreferenceStore store) {
- return new AdaptedSourceViewer(parent, verticalRuler, overviewRuler, isOverviewRulerVisible, styles, store);
+ protected ISourceViewer createJavaSourceViewer(Composite parent,
+ IVerticalRuler verticalRuler, IOverviewRuler overviewRuler,
+ boolean isOverviewRulerVisible, int styles, IPreferenceStore store) {
+ return new AdaptedSourceViewer(parent, verticalRuler, overviewRuler,
+ isOverviewRulerVisible, styles, store);
}
// protected ISourceViewer createJavaSourceViewer(Composite parent,
// IVerticalRuler ruler, int styles) {
} else
performSave(false, progressMonitor);
}
+// IAction a = ShowExternalPreviewAction.getInstance();
+// if (a != null) {
+// a.run();
+// }
}
public boolean isSaveAsAllowed() {
fRememberedElementOffset = -1;
}
}
-
-// /*
-// * @see org.eclipse.jdt.internal.ui.text.java.IJavaReconcilingListener#aboutToBeReconciled()
-// * @since 3.0
-// */
-// public void aboutToBeReconciled() {
-//
-// // Notify AST provider
-// PHPeclipsePlugin.getDefault().getASTProvider().aboutToBeReconciled(getInputJavaElement());
-//
-// // Notify listeners
-// Object[] listeners = fReconcilingListeners.getListeners();
-// for (int i = 0, length= listeners.length; i < length; ++i)
-// ((IJavaReconcilingListener)listeners[i]).aboutToBeReconciled();
-// }
-//
-// /*
-// * @see org.eclipse.jdt.internal.ui.text.java.IJavaReconcilingListener#reconciled(CompilationUnit, boolean, IProgressMonitor)
-// * @since 3.0
-// */
-// public void reconciled(net.sourceforge.phpdt.core.dom.CompilationUnit ast, boolean forced, IProgressMonitor progressMonitor) {
-//
-// // Always notify AST provider
-// PHPeclipsePlugin.getDefault().getASTProvider().reconciled(ast, getInputJavaElement());
-//
-// // Notify listeners
-// Object[] listeners = fReconcilingListeners.getListeners();
-// for (int i = 0, length= listeners.length; i < length; ++i)
-// ((IJavaReconcilingListener)listeners[i]).reconciled(ast, forced, progressMonitor);
-//
-// // Update Java Outline page selection
-// if (!forced && !progressMonitor.isCanceled()) {
-// Shell shell= getSite().getShell();
-// if (shell != null && !shell.isDisposed()) {
-// shell.getDisplay().asyncExec(new Runnable() {
-// public void run() {
-// selectionChanged();
-// }
-// });
-// }
-// }
-// }
+
+ // /*
+ // * @see
+ // org.eclipse.jdt.internal.ui.text.java.IJavaReconcilingListener#aboutToBeReconciled()
+ // * @since 3.0
+ // */
+ // public void aboutToBeReconciled() {
+ //
+ // // Notify AST provider
+ // PHPeclipsePlugin.getDefault().getASTProvider().aboutToBeReconciled(getInputJavaElement());
+ //
+ // // Notify listeners
+ // Object[] listeners = fReconcilingListeners.getListeners();
+ // for (int i = 0, length= listeners.length; i < length; ++i)
+ // ((IJavaReconcilingListener)listeners[i]).aboutToBeReconciled();
+ // }
+ //
+ // /*
+ // * @see
+ // org.eclipse.jdt.internal.ui.text.java.IJavaReconcilingListener#reconciled(CompilationUnit,
+ // boolean, IProgressMonitor)
+ // * @since 3.0
+ // */
+ // public void reconciled(net.sourceforge.phpdt.core.dom.CompilationUnit
+ // ast, boolean forced, IProgressMonitor progressMonitor) {
+ //
+ // // Always notify AST provider
+ // PHPeclipsePlugin.getDefault().getASTProvider().reconciled(ast,
+ // getInputJavaElement());
+ //
+ // // Notify listeners
+ // Object[] listeners = fReconcilingListeners.getListeners();
+ // for (int i = 0, length= listeners.length; i < length; ++i)
+ // ((IJavaReconcilingListener)listeners[i]).reconciled(ast, forced,
+ // progressMonitor);
+ //
+ // // Update Java Outline page selection
+ // if (!forced && !progressMonitor.isCanceled()) {
+ // Shell shell= getSite().getShell();
+ // if (shell != null && !shell.isDisposed()) {
+ // shell.getDisplay().asyncExec(new Runnable() {
+ // public void run() {
+ // selectionChanged();
+ // }
+ // });
+ // }
+ // }
+ // }
}
\ No newline at end of file