blob: ba420fad87703d638b474c5dd874b141a0711b1a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
* Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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:
* Martin Fluegge - initial API and implementation
*/
package org.eclipse.emf.cdo.dawn.ui;
import org.eclipse.emf.cdo.eresource.CDOResource;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider;
/**
* @author Martin Fluegge
* @since 1.0
*/
public class DawnSelectionViewerAdapterFactoryContentProvider extends AdapterFactoryContentProvider
{
private final CDOResource cdoResource;
public DawnSelectionViewerAdapterFactoryContentProvider(AdapterFactory adapterFactory, CDOResource cdoResource)
{
super(adapterFactory);
this.cdoResource = cdoResource;
}
@Override
public Object[] getElements(Object object)
{
Object[] ret = new Object[1];
ret[0] = cdoResource;
return ret;
}
}
|