|
From: <caw...@us...> - 2007-09-06 19:59:47
|
Revision: 3098
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3098&view=rev
Author: cawilliams
Date: 2007-09-06 12:59:45 -0700 (Thu, 06 Sep 2007)
Log Message:
-----------
show Errors/Warnings overlays on resources in RubyResourcesView
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/resourcesview/RubyResourcesView.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/resourcesview/RubyResourcesView.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/resourcesview/RubyResourcesView.java 2007-09-06 16:01:12 UTC (rev 3097)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/resourcesview/RubyResourcesView.java 2007-09-06 19:59:45 UTC (rev 3098)
@@ -16,6 +16,7 @@
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
@@ -31,6 +32,8 @@
import org.rubypeople.rdt.internal.ui.RubyViewerFilter;
import org.rubypeople.rdt.internal.ui.rubyeditor.ExternalRubyFileEditorInput;
import org.rubypeople.rdt.internal.ui.rubyeditor.IRubyScriptEditorInput;
+import org.rubypeople.rdt.internal.ui.viewsupport.AppearanceAwareLabelProvider;
+import org.rubypeople.rdt.internal.ui.viewsupport.DecoratingRubyLabelProvider;
import org.rubypeople.rdt.ui.RubyUI;
public class RubyResourcesView extends ResourceNavigator implements IShowInTarget {
@@ -173,6 +176,11 @@
return false;
}
+ @Override
+ protected void initLabelProvider(TreeViewer viewer) {
+ viewer.setLabelProvider(new DecoratingRubyLabelProvider(new AppearanceAwareLabelProvider()));
+ }
+
/**
* Returns the element contained in the EditorInput
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|