Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/views/documentation/org.eclipse.papyrus.views.documentation.view/src/org/eclipse/papyrus/documentation/view/ArrayTreeContentProvider.java')
-rw-r--r--plugins/views/documentation/org.eclipse.papyrus.views.documentation.view/src/org/eclipse/papyrus/documentation/view/ArrayTreeContentProvider.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/plugins/views/documentation/org.eclipse.papyrus.views.documentation.view/src/org/eclipse/papyrus/documentation/view/ArrayTreeContentProvider.java b/plugins/views/documentation/org.eclipse.papyrus.views.documentation.view/src/org/eclipse/papyrus/documentation/view/ArrayTreeContentProvider.java
new file mode 100644
index 00000000000..3ed22353e04
--- /dev/null
+++ b/plugins/views/documentation/org.eclipse.papyrus.views.documentation.view/src/org/eclipse/papyrus/documentation/view/ArrayTreeContentProvider.java
@@ -0,0 +1,51 @@
+/*******************************************************************************
+ * Copyright (c) 2005 AIRBUS FRANCE.
+ * 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:
+ * David Sciamma (Anyware Technologies),
+ * Mathieu Garcia (Anyware Technologies),
+ * Jacques Lescot (Anyware Technologies),
+ * Thomas Friol (Anyware Technologies)
+ * - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.papyrus.documentation.view;
+
+import org.eclipse.jface.viewers.ArrayContentProvider;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+
+/**
+ * A class defining an adapter to use the predefined eclipse
+ * ArrayContentProvider in a TreeViewer. <br/> Creation : 12 oct. 2005
+ *
+ * @author <a href="mailto:thomas.friol@anyware-tech.com">Thomas FRIOL</a>
+ */
+public class ArrayTreeContentProvider extends ArrayContentProvider implements ITreeContentProvider
+{
+ /**
+ * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object)
+ */
+ public Object[] getChildren(Object parentElement)
+ {
+ return new Object[0];
+ }
+
+ /**
+ * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object)
+ */
+ public Object getParent(Object element)
+ {
+ return null;
+ }
+
+ /**
+ * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object)
+ */
+ public boolean hasChildren(Object element)
+ {
+ return false;
+ }
+}

Back to the top