Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/prov/ui/operations/RepositoryOperation.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/prov/ui/operations/RepositoryOperation.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/prov/ui/operations/RepositoryOperation.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/prov/ui/operations/RepositoryOperation.java
new file mode 100644
index 000000000..2b686491f
--- /dev/null
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/prov/ui/operations/RepositoryOperation.java
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.prov.ui.operations;
+
+import java.net.URL;
+
+/**
+ * Abstract class representing provisioning repository operations
+ *
+ * @since 3.4
+ */
+public abstract class RepositoryOperation extends ProvisioningOperation {
+
+ URL[] urls;
+ String[] names;
+
+ RepositoryOperation(String label, URL[] urls, String[] names) {
+ super(label);
+ this.urls = urls;
+ this.names = names;
+ }
+
+ public boolean canExecute() {
+ return urls != null;
+ }
+
+ public boolean canUndo() {
+ return urls != null;
+ }
+}

Back to the top