Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: cb48e6f8fae794e1bb19166542d0d3337f86d541 (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
/*****************************************************************************
 * Copyright (c) 2011 Atos Origin Integration.
 *
 * 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:
 *  Tristan Faure (Atos Origin Integration) tristan.faure@atos.net - Initial API and implementation
 *****************************************************************************/
package org.eclipse.papyrus.infra.onefile.internal.ui.model.adapters;

import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.mapping.ResourceMapping;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.ui.ide.IContributorResourceAdapter2;


/**
 * Another Adapter
 *
 * @author tfaure
 *
 */
public class PapyrusModelContributorResourceAdapter implements IContributorResourceAdapter2 {

	public IResource getAdaptedResource(IAdaptable adaptable) {
		IResource res = (IResource) adaptable.getAdapter(IResource.class);
		return res;
	}

	public ResourceMapping getAdaptedResourceMapping(IAdaptable adaptable) {
		ResourceMapping res = (ResourceMapping) adaptable.getAdapter(ResourceMapping.class);
		return res;
	}

}

Back to the top