blob: 261718e84c57769d745091f248e4fb962fbb8c76 (
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
|
/*******************************************************************************
* Copyright (c) 2011 Mia-Software.
* 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:
* Fabien Giquel (Mia-Software) - initial API and implementation
* Nicolas Guyomar (Mia-Software) - Bug 334546 - [celleditors] no border on Text field
* Nicolas Bros (Mia-Software) - Bug 338437 - compositeEditors extension point cannot be used to register user types
*******************************************************************************/
package org.eclipse.emf.facet.widgets.celleditors.ecore.composite;
import org.eclipse.emf.facet.widgets.celleditors.AbstractCellEditorComposite;
import org.eclipse.emf.facet.widgets.celleditors.ICompositeEditorFactory;
import org.eclipse.swt.widgets.Composite;
public class IntCompositeFactory implements ICompositeEditorFactory<Integer> {
public AbstractCellEditorComposite<Integer> createCompositeEditor(final Composite parent, final int style) {
return new IntComposite(parent, style);
}
public Class<Integer> getHandledType() {
return Integer.class;
}
}
|