Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2015-04-12 22:52:15 -0400
committerslewis2015-04-12 22:52:15 -0400
commitc4df2a7446a9eb860a0e2e1bcd9db7305037c59a (patch)
tree5dc78cdc084bcba830cfd5bb3b495ff432fc4368
parent2665da3e0a9a77bec14a421ecf45d7a44f0d7019 (diff)
downloadorg.eclipse.ecf-c4df2a7446a9eb860a0e2e1bcd9db7305037c59a.tar.gz
org.eclipse.ecf-c4df2a7446a9eb860a0e2e1bcd9db7305037c59a.tar.xz
org.eclipse.ecf-c4df2a7446a9eb860a0e2e1bcd9db7305037c59a.zip
Added Service Discovery view to Remote Service perspective
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/RemoteServicePerspective.java33
1 files changed, 17 insertions, 16 deletions
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/RemoteServicePerspective.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/RemoteServicePerspective.java
index 4ec82c11f..e5c109f91 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/RemoteServicePerspective.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/RemoteServicePerspective.java
@@ -40,27 +40,28 @@ public class RemoteServicePerspective implements IPerspectiveFactory {
private void defineLayout(IPageLayout layout) {
// Editors are placed for free.
String editorArea = layout.getEditorArea();
-
- // Top left - Project Explorer
- IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.33f, editorArea); //$NON-NLS-1$
- left.addView("org.eclipse.ui.navigator.ProjectExplorer"); //$NON-NLS-1$
-
- // Bottom left - Endpoint Discovery
- IFolderLayout leftBottom = layout.createFolder("leftBottom", IPageLayout.BOTTOM, 0.60f, "left"); //$NON-NLS-1$ //$NON-NLS-2$
- leftBottom.addView(EndpointDiscoveryView.ID_VIEW);
-
- // Bottom middle - Properties
+ // Folder for views at bottom
IFolderLayout bottom = layout.createFolder("bottom", //$NON-NLS-1$
IPageLayout.BOTTOM, 0.60f, editorArea);
+ // Folder for views at left bottom
+ IFolderLayout leftBottom = layout.createFolder("leftBottom", IPageLayout.LEFT, 0.30f, "bottom"); //$NON-NLS-1$ //$NON-NLS-2$
+ // The ECF Endpoint Discovery view
+ leftBottom.addView(EndpointDiscoveryView.ID_VIEW);
+ // The ECF Service Discovery view
+ leftBottom.addView("org.eclipse.ecf.discovery.ui.DiscoveryView");
+ // Create folder for right bottom
+ IFolderLayout rightBottom = layout.createFolder("rightBottom", IPageLayout.RIGHT, 0.5f, "bottom");
+ // Add the registry browser on right bottom
+ rightBottom.addView("org.eclipse.pde.runtime.RegistryBrowser");
+ // Add properties view in the middle
bottom.addView(IPageLayout.ID_PROP_SHEET);
-
- // Bottom right - RegistryBrowser
- IFolderLayout rightBottom = layout.createFolder("rightBottom", //$NON-NLS-1$
- IPageLayout.RIGHT, 0.50f, "bottom"); //$NON-NLS-1$
- rightBottom.addView("org.eclipse.pde.runtime.RegistryBrowser"); //$NON-NLS-1$
-
+ // Create folder for left side above Endpoint Discover/Service Discovery views
+ IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.30f, editorArea); //$NON-NLS-1$
+ // Add Project Explorer view
+ left.addView("org.eclipse.ui.navigator.ProjectExplorer"); //$NON-NLS-1$
// Top right.
IFolderLayout topRight = layout.createFolder("topRight", IPageLayout.RIGHT, 0.70f, editorArea); //$NON-NLS-1$
+ // Add Outline view
topRight.addView(IPageLayout.ID_OUTLINE);
}
}

Back to the top