blob: f12f8df64748c2daea4f00d2de05ed6169254239 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.equinox.internal.p2.ui.sdk;
import java.net.URL;
import org.eclipse.equinox.internal.provisional.p2.ui.dialogs.AddRepositoryDialog;
import org.eclipse.equinox.internal.provisional.p2.ui.operations.AddColocatedRepositoryOperation;
import org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningOperation;
import org.eclipse.swt.widgets.Shell;
/**
* Dialog that allows colocated metadata and artifact repositories
* to be defined and added.
*
* @since 3.4
*
*/
public class AddColocatedRepositoryDialog extends AddRepositoryDialog {
public AddColocatedRepositoryDialog(Shell parentShell, int repoFlags) {
super(parentShell, repoFlags);
setTitle(ProvSDKMessages.AddColocatedRepositoryDialog_Title);
}
protected ProvisioningOperation getOperation(URL url) {
return new AddColocatedRepositoryOperation(getShell().getText(), url);
}
}