Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2009-04-09 23:01:31 +0000
committerSusan Franklin2009-04-09 23:01:31 +0000
commit7508abd7bbf9364d7c0204047c41f400fc10580f (patch)
tree51716ebcaad3323debebb8ea0212ab28231d8cd1 /bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/model/IUElementListRoot.java
parentfb7c5b1a15fec6e82f4a41e7d7feb0d36d8fe78e (diff)
downloadrt.equinox.p2-7508abd7bbf9364d7c0204047c41f400fc10580f.tar.gz
rt.equinox.p2-7508abd7bbf9364d7c0204047c41f400fc10580f.tar.xz
rt.equinox.p2-7508abd7bbf9364d7c0204047c41f400fc10580f.zip
Bug 268205 - [ui] Accepting an update causes plan to be recomputed
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/model/IUElementListRoot.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/model/IUElementListRoot.java58
1 files changed, 58 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/model/IUElementListRoot.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/model/IUElementListRoot.java
new file mode 100644
index 000000000..5f1c71910
--- /dev/null
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/model/IUElementListRoot.java
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 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.provisional.p2.ui.model;
+
+import org.eclipse.equinox.internal.p2.ui.model.ProvElement;
+
+
+/**
+ * Element class representing a fixed set of IU's. This element should
+ * never appear in a list, but can be used as a parent in a list.
+ *
+ * @since 3.5
+ */
+public class IUElementListRoot extends ProvElement {
+
+ Object[] children;
+
+ public IUElementListRoot(Object[] children) {
+ super(null);
+ this.children = children;
+ }
+
+ public IUElementListRoot() {
+ this(new Object[0]);
+ }
+
+ public void setChildren(Object[] children) {
+ this.children = children;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.equinox.internal.provisional.p2.ui.model.ProvElement#getImageID(java.lang.Object)
+ */
+ protected String getImageId(Object obj) {
+ return null;
+ }
+
+ public String getLabel(Object o) {
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.model.IWorkbenchAdapter#getChildren(java.lang.Object)
+ */
+ public Object[] getChildren(Object o) {
+ return children;
+ }
+}

Back to the top