import net.sourceforge.phpeclipse.phpeditor.php.HTMLCodeScanner;
import net.sourceforge.phpeclipse.phpeditor.php.PHPCodeScanner;
-import net.sourceforge.phpeclipse.phpeditor.php.HTMLCodeScanner;
import net.sourceforge.phpeclipse.phpeditor.util.PHPColorProvider;
-import org.eclipse.jface.text.rules.RuleBasedScanner;
/** The PHPEditorEnvironment maintains singletons used by the php editor
*/
public class PHPEditorEnvironment {
private static PHPColorProvider fgColorProvider;
- private static PHPCodeScanner fgCodeScanner;
+ private static PHPCodeScanner fgPHPCodeScanner;
private static HTMLCodeScanner fgHTMLCodeScanner;
//private static JavaDocScanner fgDocScanner;
public static void connect(Object client) {
if (++fgRefCount == 1) {
fgColorProvider = new PHPColorProvider();
- fgCodeScanner = new PHPCodeScanner(fgColorProvider);
+ fgPHPCodeScanner = new PHPCodeScanner(fgColorProvider);
fgHTMLCodeScanner = new HTMLCodeScanner(fgColorProvider);
// fgDocScanner= new JavaDocScanner(fgColorProvider);
}
*/
public static void disconnect(Object client) {
if (--fgRefCount == 0) {
- fgCodeScanner = null;
+ fgPHPCodeScanner = null;
fgHTMLCodeScanner = null;
// fgDocScanner= null;
fgColorProvider.dispose();
* Returns the singleton scanner.
*/
public static PHPCodeScanner getPHPCodeScanner() {
- return fgCodeScanner;
+ return fgPHPCodeScanner;
}
public static HTMLCodeScanner getHTMLCodeScanner() {