Hide syntax highlighting checkbox in unified view

We force it disabled, to ensure the add/remove colors come through.
Don't show the checkbox for the user to try twiddling.

Change-Id: Ia8f96bcce1c31acd147ec77520d69ac9d4839e2b
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2010-03-01 09:43:53 -08:00
parent 7eea84b001
commit ab704349a6
2 changed files with 8 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.DeferredCommand;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.DisclosurePanel;
@@ -84,6 +85,9 @@ public abstract class PatchScreen extends Screen {
public Unified(final Patch.Key id, final int patchIndex,
final PatchTable patchTable) {
super(id, patchIndex, patchTable);
DOM.setStyleAttribute(settingsPanel.getSyntaxHighlightingCheckBox()
.getElement(), "visibility", "hidden");
final PatchScriptSettings s = settingsPanel.getValue();
s.getPrettySettings().setSyntaxHighlighting(false);
settingsPanel.setValue(s);