]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/DistributionPerspective.java
Full refactoring of the UI distribution view:
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / DistributionPerspective.java
index 5b185a89aeb50639751cd427ce852f660663f1ff..918b4b44cbf54e98443b41f0a650ba9851211b8a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2012 Mathieu Baudier
+ * Copyright (C) 2007-2012 Argeo GmbH
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  */
 package org.argeo.slc.client.ui.dist;
 
-import org.argeo.slc.client.ui.dist.views.ArtifactsBrowser;
 import org.argeo.slc.client.ui.dist.views.DistributionsView;
-import org.argeo.slc.client.ui.dist.views.QueryArtifactsForm;
-import org.argeo.slc.client.ui.dist.views.QueryArtifactsText;
-import org.argeo.slc.client.ui.dist.views.QueryBundlesForm;
 import org.eclipse.ui.IFolderLayout;
 import org.eclipse.ui.IPageLayout;
 import org.eclipse.ui.IPerspectiveFactory;
 
+/**
+ * Manage a set of software repositories
+ */
 public class DistributionPerspective implements IPerspectiveFactory {
 
        public final static String ID = DistPlugin.ID + ".distributionPerspective";
@@ -34,12 +33,10 @@ public class DistributionPerspective implements IPerspectiveFactory {
                layout.setFixed(false);
 
                IFolderLayout main = layout.createFolder("main", IPageLayout.LEFT,
-                               0.5f, editorArea);
+                               0.3f, editorArea);
                main.addView(DistributionsView.ID);
-               main.addView(ArtifactsBrowser.ID);
-               main.addView(QueryArtifactsForm.ID);
-               main.addView(QueryBundlesForm.ID);
-               main.addView(QueryArtifactsText.ID);
-               main.addView("org.eclipse.ui.views.ProgressView");
+               IFolderLayout bottom = layout.createFolder("bottom",
+                               IPageLayout.BOTTOM, 0.75f, editorArea);
+               bottom.addView("org.eclipse.ui.views.ProgressView");
        }
 }