Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpeclipse / phpeditor / EditorHighlightingSynchronizer.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpeclipse.phpeditor;
12
13 //incastrix
14 //import org.eclipse.jface.text.Assert;
15 import org.eclipse.core.runtime.Assert;
16 import org.eclipse.jface.text.link.ILinkedModeListener;
17 import org.eclipse.jface.text.link.LinkedModeModel;
18
19 /**
20  * Turns off occurrences highlighting on a java editor until linked mode is
21  * left.
22  * 
23  * @since 3.0
24  */
25 public class EditorHighlightingSynchronizer implements ILinkedModeListener {
26
27         //private final PHPEditor fEditor;
28
29         // private final boolean fWasOccurrencesOn;
30
31         /**
32          * Creates a new synchronizer.
33          * 
34          * @param editor
35          *            the java editor the occurrences markers of which will be
36          *            synchonized with the linked mode
37          * 
38          */
39         public EditorHighlightingSynchronizer(PHPEditor editor) {
40                 Assert.isLegal(editor != null);
41                 //fEditor = editor;
42                 // fWasOccurrencesOn= fEditor.isMarkingOccurrences();
43                 //              
44                 // if (fWasOccurrencesOn)
45                 // fEditor.uninstallOccurrencesFinder();
46         }
47
48         /*
49          * @see org.eclipse.jface.text.link.ILinkedModeListener#left(org.eclipse.jface.text.link.LinkedModeModel,
50          *      int)
51          */
52         public void left(LinkedModeModel environment, int flags) {
53                 // if (fWasOccurrencesOn)
54                 // fEditor.installOccurrencesFinder();
55         }
56
57         /*
58          * @see org.eclipse.jface.text.link.ILinkedModeListener#suspend(org.eclipse.jface.text.link.LinkedModeModel)
59          */
60         public void suspend(LinkedModeModel environment) {
61         }
62
63         /*
64          * @see org.eclipse.jface.text.link.ILinkedModeListener#resume(org.eclipse.jface.text.link.LinkedModeModel,
65          *      int)
66          */
67         public void resume(LinkedModeModel environment, int flags) {
68         }
69
70 }