Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanail Nachev2012-01-05 12:14:09 +0000
committerDani Megert2012-01-05 12:14:09 +0000
commit3abcc6a1710bfea19defbb0f6cbd9845c5fae14d (patch)
tree053ae4c7697617d6e103e3b8302bd7e5b6dbec19
parentbe6cc4ae9c16bd994950c92e96e385b38fe7003c (diff)
downloadeclipse.platform.text-3abcc6a1710bfea19defbb0f6cbd9845c5fae14d.tar.gz
eclipse.platform.text-3abcc6a1710bfea19defbb0f6cbd9845c5fae14d.tar.xz
eclipse.platform.text-3abcc6a1710bfea19defbb0f6cbd9845c5fae14d.zip
Fixed bug 348608: [linked mode] LinkedModeUI.enableColoredLabels()v20120105-1214
doesn't work
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java13
1 files changed, 4 insertions, 9 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java
index 37984994ad1..59c7311b7e0 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2010 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Danail Nachev <d.nachev@gmail.com> - http://bugs.eclipse.org/348608
*******************************************************************************/
package org.eclipse.jface.text.link;
@@ -65,6 +66,7 @@ import org.eclipse.jface.text.source.IAnnotationModel;
import org.eclipse.jface.text.source.IAnnotationModelExtension;
import org.eclipse.jface.text.source.ISourceViewer;
+
/**
* The UI for linked mode. Detects events that influence behavior of the linked mode
* UI and acts upon them.
@@ -629,12 +631,6 @@ public class LinkedModeUI {
private boolean fSimple;
/**
- * Tells whether colored labels support is enabled.
- * @since 3.4
- */
- private boolean fIsColoredLabelsSupportEnabled= false;
-
- /**
* Creates a new UI on the given model and the set of viewers. The model
* must provide a tab stop sequence with a non-empty list of tab stops.
*
@@ -705,7 +701,6 @@ public class LinkedModeUI {
fAssistant.addProposalListener(fProposalListener);
// TODO find a way to set up content assistant.
// fAssistant.setDocumentPartitioning(IJavaPartitions.JAVA_PARTITIONING);
- fAssistant.enableColoredLabels(fIsColoredLabelsSupportEnabled);
fCaretPosition.delete();
}
@@ -1286,7 +1281,7 @@ public class LinkedModeUI {
* @since 3.4
*/
public void enableColoredLabels(boolean isEnabled) {
- fIsColoredLabelsSupportEnabled= isEnabled;
+ fAssistant.enableColoredLabels(isEnabled);
}
}

Back to the top