X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/EditorHighlightingSynchronizer.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/EditorHighlightingSynchronizer.java index 4f635d6..9e60ed9 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/EditorHighlightingSynchronizer.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/EditorHighlightingSynchronizer.java @@ -10,11 +10,12 @@ *******************************************************************************/ package net.sourceforge.phpeclipse.phpeditor; -import org.eclipse.jface.text.Assert; +//incastrix +//import org.eclipse.jface.text.Assert; +import org.eclipse.core.runtime.Assert; import org.eclipse.jface.text.link.ILinkedModeListener; import org.eclipse.jface.text.link.LinkedModeModel; - /** * Turns off occurrences highlighting on a java editor until linked mode is * left. @@ -22,32 +23,35 @@ import org.eclipse.jface.text.link.LinkedModeModel; * @since 3.0 */ public class EditorHighlightingSynchronizer implements ILinkedModeListener { - - private final PHPEditor fEditor; -// private final boolean fWasOccurrencesOn; - + + //private final PHPEditor fEditor; + + // private final boolean fWasOccurrencesOn; + /** * Creates a new synchronizer. * - * @param editor the java editor the occurrences markers of which will be - * synchonized with the linked mode + * @param editor + * the java editor the occurrences markers of which will be + * synchonized with the linked mode * */ public EditorHighlightingSynchronizer(PHPEditor editor) { Assert.isLegal(editor != null); - fEditor= editor; -// fWasOccurrencesOn= fEditor.isMarkingOccurrences(); -// -// if (fWasOccurrencesOn) -// fEditor.uninstallOccurrencesFinder(); + //fEditor = editor; + // fWasOccurrencesOn= fEditor.isMarkingOccurrences(); + // + // if (fWasOccurrencesOn) + // fEditor.uninstallOccurrencesFinder(); } /* - * @see org.eclipse.jface.text.link.ILinkedModeListener#left(org.eclipse.jface.text.link.LinkedModeModel, int) + * @see org.eclipse.jface.text.link.ILinkedModeListener#left(org.eclipse.jface.text.link.LinkedModeModel, + * int) */ public void left(LinkedModeModel environment, int flags) { -// if (fWasOccurrencesOn) -// fEditor.installOccurrencesFinder(); + // if (fWasOccurrencesOn) + // fEditor.installOccurrencesFinder(); } /* @@ -57,7 +61,8 @@ public class EditorHighlightingSynchronizer implements ILinkedModeListener { } /* - * @see org.eclipse.jface.text.link.ILinkedModeListener#resume(org.eclipse.jface.text.link.LinkedModeModel, int) + * @see org.eclipse.jface.text.link.ILinkedModeListener#resume(org.eclipse.jface.text.link.LinkedModeModel, + * int) */ public void resume(LinkedModeModel environment, int flags) { }