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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/filesview/FilesView.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/filesview/FilesView.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/filesview/FilesView.java (revision 7713)
+++ editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/filesview/FilesView.java (working copy)
@@ -22,7 +22,7 @@
import com.google.dart.tools.ui.actions.OpenNewFolderWizardAction;
import com.google.dart.tools.ui.internal.actions.CollapseAllAction;
import com.google.dart.tools.ui.internal.handlers.OpenFolderHandler;
-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.projects.HideProjectAction;
import com.google.dart.tools.ui.internal.projects.OpenNewApplicationWizardAction;
import com.google.dart.tools.ui.internal.util.SWTUtil;
@@ -88,7 +88,7 @@
@Override
public void propertyChange(PropertyChangeEvent event) {
if (treeViewer != null) {
- if (DartBasePreferencePage.BASE_FONT_KEY.equals(event.getProperty())) {
+ if (FontPreferencePage.BASE_FONT_KEY.equals(event.getProperty())) {
updateTreeFont();
treeViewer.refresh();
}
@@ -423,7 +423,7 @@
}
protected void updateTreeFont() {
- Font newFont = JFaceResources.getFont(DartBasePreferencePage.BASE_FONT_KEY);
+ Font newFont = JFaceResources.getFont(FontPreferencePage.BASE_FONT_KEY);
Font oldFont = treeViewer.getTree().getFont();
Font font = SWTUtil.changeFontSize(oldFont, newFont);
treeViewer.getTree().setFont(font);

Powered by Google App Engine
This is Rietveld 408576698