Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2595)

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui.web/src/com/google/dart/tools/ui/web/css/CssSourceViewerConfiguration.java

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.ui.web/src/com/google/dart/tools/ui/web/css/CssSourceViewerConfiguration.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui.web/src/com/google/dart/tools/ui/web/css/CssSourceViewerConfiguration.java b/editor/tools/plugins/com.google.dart.tools.ui.web/src/com/google/dart/tools/ui/web/css/CssSourceViewerConfiguration.java
index a58c1ae07834bf2bde0929a69ddf5b4719a0071f..10891d77f1aa46511a5ff48ededfb43771474918 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui.web/src/com/google/dart/tools/ui/web/css/CssSourceViewerConfiguration.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui.web/src/com/google/dart/tools/ui/web/css/CssSourceViewerConfiguration.java
@@ -16,7 +16,6 @@ package com.google.dart.tools.ui.web.css;
import com.google.dart.tools.ui.web.DartWebPlugin;
import com.google.dart.tools.ui.web.utils.WebEditorReconcilingStrategy;
-import org.eclipse.jface.text.IAutoEditStrategy;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.TextAttribute;
import org.eclipse.jface.text.contentassist.ContentAssistant;
@@ -45,15 +44,6 @@ public class CssSourceViewerConfiguration extends TextSourceViewerConfiguration
}
@Override
- public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType) {
- if (IDocument.DEFAULT_CONTENT_TYPE.equals(contentType)) {
- return new IAutoEditStrategy[] {new CssAutoIndentStrategy()};
- } else {
- return super.getAutoEditStrategies(sourceViewer, contentType);
- }
- }
-
- @Override
public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {
return new String[] {IDocument.DEFAULT_CONTENT_TYPE, CssPartitionScanner.CSS_COMMENT};
}

Powered by Google App Engine
This is Rietveld 408576698