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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartOutlinePage.java

Issue 10377181: add support for package: to the editor (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 7 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/src/com/google/dart/tools/ui/internal/text/editor/DartOutlinePage.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartOutlinePage.java (revision 7713)
+++ editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartOutlinePage.java (working copy)
@@ -34,7 +34,7 @@
import com.google.dart.tools.ui.ProblemsLabelDecorator.ProblemsLabelChangedEvent;
import com.google.dart.tools.ui.internal.actions.AbstractToggleLinkingAction;
import com.google.dart.tools.ui.internal.libraryview.LibraryExplorerContentProvider;
-import com.google.dart.tools.ui.internal.preferences.DartBasePreferencePage;
+import com.google.dart.tools.ui.internal.preferences.FontPreferencePage;
import com.google.dart.tools.ui.internal.text.DartHelpContextIds;
import com.google.dart.tools.ui.internal.text.IProductConstants;
import com.google.dart.tools.ui.internal.text.ProductProperties;
@@ -105,10 +105,10 @@
/**
* The content outline page of the Dart editor. The viewer implements a proprietary update mechanism
* based on model deltas. It does not react to domain changes. Publishes its context menu under
- * <code>DartToolsPlugin.getDefault().getPluginId() + ".outline"</code>.
+ * <code>DartToolsPlugin.getDefault().getPluginId() + &quot;.outline&quot;</code>.
*/
-public class DartOutlinePage extends Page implements IContentOutlinePage, IAdaptable,
- IPostSelectionProvider {
+public class DartOutlinePage extends Page
+ implements IContentOutlinePage, IAdaptable, IPostSelectionProvider {
/**
* This action toggles whether this Java Outline page links its selection to the active editor.
@@ -534,7 +534,7 @@
}
protected void updateTreeFont() {
- Font newFont = JFaceResources.getFont(DartBasePreferencePage.BASE_FONT_KEY);
+ Font newFont = JFaceResources.getFont(FontPreferencePage.BASE_FONT_KEY);
Font oldFont = getTree().getFont();
Font font = SWTUtil.changeFontSize(oldFont, newFont);
getTree().setFont(font);
@@ -783,7 +783,7 @@
@Override
public void propertyChange(PropertyChangeEvent event) {
if (fOutlineViewer != null) {
- if (DartBasePreferencePage.BASE_FONT_KEY.equals(event.getProperty())) {
+ if (FontPreferencePage.BASE_FONT_KEY.equals(event.getProperty())) {
fOutlineViewer.updateTreeFont();
}
}

Powered by Google App Engine
This is Rietveld 408576698