|
From: <caw...@us...> - 2007-09-12 16:09:18
|
Revision: 3147
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3147&view=rev
Author: cawilliams
Date: 2007-09-12 09:08:13 -0700 (Wed, 12 Sep 2007)
Log Message:
-----------
insert new Ruby Explorer view in place of Ruby Resources View
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/RdtPerspectiveFactory.java
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/packageview/PackageExplorerPart.java
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/IPackagesViewPart.java
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/RubyUI.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/RdtPerspectiveFactory.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/RdtPerspectiveFactory.java 2007-09-12 15:15:27 UTC (rev 3146)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/RdtPerspectiveFactory.java 2007-09-12 16:08:13 UTC (rev 3147)
@@ -1,6 +1,7 @@
package org.rubypeople.rdt.internal.ui;
import org.eclipse.debug.ui.IDebugUIConstants;
+import org.eclipse.search.ui.NewSearchUI;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
@@ -16,40 +17,51 @@
}
public void createInitialLayout(IPageLayout layout) {
- String existingEditorArea = layout.getEditorArea();
+ String editorArea = layout.getEditorArea();
- IFolderLayout rubyResourcesArea = layout.createFolder("rubyResourcesArea", IPageLayout.LEFT, (float) 0.26, existingEditorArea);
- rubyResourcesArea.addView(IRubyConstants.RUBY_RESOURCES_VIEW_ID);
- rubyResourcesArea.addPlaceholder(IPageLayout.ID_RES_NAV);
+ IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, (float) 0.26, editorArea);//$NON-NLS-1$
+ folder.addView(RubyUI.ID_RUBY_EXPLORER);
+ folder.addView(RubyUI.ID_TYPE_HIERARCHY);
+ folder.addPlaceholder(IPageLayout.ID_RES_NAV);
- IFolderLayout consoleArea = layout.createFolder("consoleArea", IPageLayout.BOTTOM, (float) 0.65, existingEditorArea);
+ IFolderLayout consoleArea = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.65, editorArea);//$NON-NLS-1$
consoleArea.addView(IPageLayout.ID_PROBLEM_VIEW);
- consoleArea.addView(IRubyConstants.RI_VIEW_ID);
+ consoleArea.addView(IPageLayout.ID_TASK_LIST);
+ consoleArea.addPlaceholder(IRubyConstants.RI_VIEW_ID);
+ consoleArea.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
consoleArea.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
- consoleArea.addView(IPageLayout.ID_TASK_LIST);
+ consoleArea.addPlaceholder(IPageLayout.ID_BOOKMARKS);
consoleArea.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
- IFolderLayout bottomLeft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, (float) 0.5, "rubyResourcesArea");
- bottomLeft.addView(IPageLayout.ID_OUTLINE);
+ layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float)0.75, editorArea);
layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
layout.addActionSet(RubyUI.ID_ACTION_SET);
layout.addActionSet(RubyUI.ID_ELEMENT_CREATION_ACTION_SET);
layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
+ // views - ruby
+ layout.addShowViewShortcut(RubyUI.ID_RUBY_EXPLORER);
+ layout.addShowViewShortcut(RubyUI.ID_TYPE_HIERARCHY);
+
+ // views - search
+ layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID);
+
// views - debugging
layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
-
+
// views - standard workbench
layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
-
+ layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
+ layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID);
+
// new actions - Ruby project creation wizard
- layout.addNewWizardShortcut(IRubyConstants.ID_NEW_CLASS_WIZARD);
- layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$
- layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$
- layout.addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard");//$NON-NLS-1$
+ layout.addNewWizardShortcut(IRubyConstants.ID_NEW_CLASS_WIZARD); //$NON-NLS-1$
+ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$
+ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$
+ layout.addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard");//$NON-NLS-1$
}
}
\ No newline at end of file
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/packageview/PackageExplorerPart.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/packageview/PackageExplorerPart.java 2007-09-12 15:15:27 UTC (rev 3146)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/packageview/PackageExplorerPart.java 2007-09-12 16:08:13 UTC (rev 3147)
@@ -162,7 +162,7 @@
private static final int HIERARCHICAL_LAYOUT= 0x1;
private static final int FLAT_LAYOUT= 0x2;
- public final static String VIEW_ID= RubyUI.ID_PACKAGES;
+ public final static String VIEW_ID= RubyUI.ID_RUBY_EXPLORER;
// Persistance tags.
static final String TAG_SELECTION= "selection"; //$NON-NLS-1$
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/IPackagesViewPart.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/IPackagesViewPart.java 2007-09-12 15:15:27 UTC (rev 3146)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/IPackagesViewPart.java 2007-09-12 16:08:13 UTC (rev 3147)
@@ -22,7 +22,7 @@
* This interface is not intended to be implemented by clients.
* </p>
*
- * @see RubyUI#ID_PACKAGES
+ * @see RubyUI#ID_RUBY_EXPLORER
*/
public interface IPackagesViewPart extends IViewPart {
/**
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/RubyUI.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/RubyUI.java 2007-09-12 15:15:27 UTC (rev 3146)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/RubyUI.java 2007-09-12 16:08:13 UTC (rev 3147)
@@ -149,7 +149,7 @@
* @see org.eclipse.ui.IWorkbenchPage#findView(java.lang.String)
* @see org.eclipse.ui.IWorkbenchPage#showView(java.lang.String)
*/
- public static final String ID_PACKAGES= "org.rubypeople.rdt.ui.PackageExplorer"; //$NON-NLS-1$
+ public static final String ID_RUBY_EXPLORER= "org.rubypeople.rdt.ui.PackageExplorer"; //$NON-NLS-1$
/**
* Returns the Ruby element wrapped by the given editor input.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|