Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: eb9fda62e59d17f8b9c214da426573837f335685 (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
/*****************************************************************************
 * Copyright (c) 2012 CEA LIST.
 *
 * 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:
 *  Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
 *****************************************************************************/
package org.eclipse.papyrus.customization.properties.generation.providers;

import java.util.List;

import org.eclipse.papyrus.infra.properties.contexts.Context;
import org.eclipse.papyrus.views.properties.toolsmiths.providers.PropertyContentProvider;


public class DataContextPropertiesContentProvider extends PropertyContentProvider {

	private final List<Context> contexts;

	public DataContextPropertiesContentProvider(List<Context> contexts) {
		super(contexts.get(0));
		this.contexts = contexts;
	}

	@Override
	public Object[] getElements() {
		// We're only interested in the generated contexts ; not in their dependencies
		return contexts.toArray();
	}

}

Back to the top