Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e4035c6e05d10d71156dddf2f11a0b36302e8d4f (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
/*******************************************************************************
 * 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:
 *    Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
 *******************************************************************************/
package org.eclipse.emf.facet.custom.sdk.ui.internal.widgets.celleditors.composite;

import org.eclipse.emf.facet.custom.metamodel.custompt.IImage;
import org.eclipse.emf.facet.widgets.celleditors.AbstractCellEditorComposite;
import org.eclipse.emf.facet.widgets.celleditors.ICompositeEditorFactory;
import org.eclipse.swt.widgets.Composite;

/** Factory for {@link ImageComposite} */
public class ImageCompositeFactory implements ICompositeEditorFactory<IImage> {

	public AbstractCellEditorComposite<IImage> createCompositeEditor(final Composite parent, final int style) {
		return new ImageComposite(parent);
	}

	public Class<IImage> getHandledType() {
		return IImage.class;
	}
}

Back to the top