/** * Copyright (c) 2012 AGETO Service GmbH and others. * All rights reserved. * * This program and the accompanying materials are made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Gunnar Wagenknecht - initial API and implementation */ package org.eclipse.gyrex.admin.ui.persistence.internal; // //import org.eclipse.gyrex.admin.ui.internal.forms.FormLayoutFactory; //import org.eclipse.gyrex.admin.ui.pages.AdminPage; // //import org.eclipse.jface.layout.GridDataFactory; //import org.eclipse.jface.layout.GridLayoutFactory; //import org.eclipse.jface.viewers.ISelectionProvider; //import org.eclipse.swt.layout.GridData; //import org.eclipse.swt.widgets.Composite; //import org.eclipse.ui.forms.IManagedForm; //import org.eclipse.ui.forms.widgets.FormToolkit; // ///** // * Configuration page for repository administration. // */ //public class RepositoriesPage extends AdminPage { // // private RepositoriesSection repoSection; // // /** // * Creates a new instance. // */ // public RepositoriesPage() { // setTitle("Data Repositories"); // setTitleToolTip("Configure and assign repositories."); // } // // @Override // protected void createFormContent(final IManagedForm managedForm) { // final Composite body = managedForm.getForm().getBody(); // body.setLayout(FormLayoutFactory.createFormGridLayout(true, 2)); // body.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create()); // // final FormToolkit toolkit = managedForm.getToolkit(); // // final Composite left = toolkit.createComposite(body); // left.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create()); // left.setLayout(GridLayoutFactory.fillDefaults().create()); // // repoSection = new RepositoriesSection(left, this); // repoSection.getSection().setLayoutData(new GridData(GridData.FILL_BOTH)); // managedForm.addPart(repoSection); // // final Composite right = toolkit.createComposite(body); // right.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create()); // right.setLayout(GridLayoutFactory.fillDefaults().create()); // // final AssignmentsSection assignmentSection = new AssignmentsSection(right, this); // assignmentSection.getSection().setLayoutData(new GridData(GridData.FILL_BOTH)); // managedForm.addPart(assignmentSection); // //// final InstallStateSection installSection = new InstallStateSection(right, this); //// installSection.getSection().setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); //// managedForm.addPart(installSection); // //// FormLayoutFactory.visualizeLayoutArea(body, SWT.COLOR_CYAN); //// FormLayoutFactory.visualizeLayoutArea(left, SWT.COLOR_DARK_GREEN); //// FormLayoutFactory.visualizeLayoutArea(right, SWT.COLOR_DARK_GREEN); // } // // @Override // public ISelectionProvider getSelectionProvider() { // if (null != repoSection) { // return repoSection.getSelectionProvider(); // } // return null; // } //}