|
From: Christopher W. <caw...@us...> - 2006-03-28 23:08:12
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/browsing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14070/src/org/rubypeople/rdt/internal/ui/browsing Modified Files: ProjectsView.java Log Message: don't allow clearing projects view Index: ProjectsView.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/browsing/ProjectsView.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ProjectsView.java 25 Mar 2006 02:37:43 -0000 1.1 --- ProjectsView.java 28 Mar 2006 23:08:08 -0000 1.2 *************** *** 66,69 **** --- 66,80 ---- return element instanceof IRubyProject; } + + /* + * @see RubyBrowsingPart#setInput(Object) + */ + protected void setInput(Object input) { + // Don't allow to clear input for this view + if (input != null) + super.setInput(input); + else + getViewer().setSelection(null); + } /** |