blob: c39ebd1e427dd3c1bab4e8e529fcebb9d162d312 [file] [log] [blame]
/*******************************************************************************
* 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.modisco.facet.widgets.celleditors.ecore.composite;
import org.eclipse.modisco.facet.widgets.celleditors.AbstractCellEditorComposite;
import org.eclipse.modisco.facet.widgets.celleditors.ICompositeEditorFactory;
import org.eclipse.swt.widgets.Composite;
public class ShortCompositeFactory implements ICompositeEditorFactory<Short> {
public AbstractCellEditorComposite<Short> createCompositeEditor(final Composite parent, final int style) {
return new ShortComposite(parent, style);
}
public Class<Short> getHandledType() {
return Short.class;
}
}