|
From: David C. <dc...@us...> - 2005-09-08 00:13:29
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31231/src/org/rubypeople/rdt/internal/ui Modified Files: RubyPlugin.java Log Message: Treat problem view like task list during 'upgrade'. Index: RubyPlugin.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/RubyPlugin.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** RubyPlugin.java 4 Sep 2005 17:39:15 -0000 1.12 --- RubyPlugin.java 8 Sep 2005 00:13:21 -0000 1.13 *************** *** 56,59 **** --- 56,60 ---- private static final String ORG_ECLIPSE_UI_VIEWS_TASK_LIST = "org.eclipse.ui.views.TaskList"; + private static final String ORG_ECLIPSE_UI_VIEWS_PROBLEM_VIEW = "org.eclipse.ui.views.ProblemView"; protected static RubyPlugin plugin; public static final String PLUGIN_ID = "org.rubypeople.rdt.ui"; //$NON-NLS-1$ *************** *** 79,83 **** private RubyFoldingStructureProviderRegistry fFoldingStructureProviderRegistry; ! private boolean taskViewAlreadyOpened; public RubyPlugin() { --- 80,84 ---- private RubyFoldingStructureProviderRegistry fFoldingStructureProviderRegistry; ! private boolean new060ViewsOpened; public RubyPlugin() { *************** *** 149,153 **** if (projectUpgraded) { ! openTasksView(); } } catch (CoreException e) { --- 150,154 ---- if (projectUpgraded) { ! openNew060Views(); } } catch (CoreException e) { *************** *** 159,164 **** } ! private void openTasksView() { ! if (taskViewAlreadyOpened) return; WorkbenchJob job = new WorkbenchJob("Show Task View") { --- 160,165 ---- } ! private void openNew060Views() { ! if (new060ViewsOpened) return; WorkbenchJob job = new WorkbenchJob("Show Task View") { *************** *** 170,174 **** if (page != null) { page.showView(ORG_ECLIPSE_UI_VIEWS_TASK_LIST); ! taskViewAlreadyOpened = true; } } --- 171,176 ---- if (page != null) { page.showView(ORG_ECLIPSE_UI_VIEWS_TASK_LIST); ! page.showView(ORG_ECLIPSE_UI_VIEWS_PROBLEM_VIEW); ! new060ViewsOpened = true; } } |