org.eclipse.gef.tools.CellEditorLocator Java Examples

The following examples show how to use org.eclipse.gef.tools.CellEditorLocator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XtextDirectEditManager.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * @param source
 * @param editorType
 * @param locator
 */
public XtextDirectEditManager(GraphicalEditPart source, Class<?> editorType, CellEditorLocator locator,
		Injector injector, int style) {
	super(source, editorType, locator);
	this.editorType = editorType;
	this.injector = injector;
	this.style = style;
}
 
Example #2
Source File: ProcessEditPartFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public static CellEditorLocator getTextCellEditorLocator(ITextAwareEditPart source) {
	if (source.getFigure() instanceof WrappingLabel)
		return new TextCellEditorLocator((WrappingLabel) source.getFigure());
	else {
		return new LabelCellEditorLocator((Label) source.getFigure());
	}
}
 
Example #3
Source File: CrossflowEditPartFactory.java    From scava with Eclipse Public License 2.0 4 votes vote down vote up
/**
* @generated
*/
public static CellEditorLocator getTextCellEditorLocator(ITextAwareEditPart source) {
	return CellEditorLocatorAccess.INSTANCE.getTextCellEditorLocator(source);
}
 
Example #4
Source File: NoteEditManager.java    From ermasterr with Apache License 2.0 4 votes vote down vote up
public NoteEditManager(final GraphicalEditPart source, final Class editorType, final CellEditorLocator locator) {
    super(source, editorType, locator);
    note = (Note) source.getModel();
}
 
Example #5
Source File: DirectEditManagerEx.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
protected CellEditorLocator getLocator() {
	return locator;
}
 
Example #6
Source File: WalkerNoteEditManager.java    From erflute with Apache License 2.0 4 votes vote down vote up
public WalkerNoteEditManager(GraphicalEditPart source, Class<?> editorType, CellEditorLocator locator) {
    super(source, editorType, locator);
    this.note = (WalkerNote) source.getModel();
}
 
Example #7
Source File: NoteEditManager.java    From ermaster-b with Apache License 2.0 4 votes vote down vote up
public NoteEditManager(GraphicalEditPart source, Class editorType,
		CellEditorLocator locator) {
	super(source, editorType, locator);
	this.note = (Note) source.getModel();
}
 
Example #8
Source File: DirectEditManagerEx.java    From statecharts with Eclipse Public License 1.0 3 votes vote down vote up
/**
 * Constructs a new DirectEditManager for the given source edit part. The
 * cell editor will be created by instantiating the type <i>editorType</i>.
 * The cell editor will be placed using the given CellEditorLocator.
 * 
 * @param source
 *            the source edit part
 * @param editorType
 *            the cell editor type
 * @param locator
 *            the locator
 */
public DirectEditManagerEx(GraphicalEditPart source, Class editorType,
		CellEditorLocator locator) {
	super(source, editorType, locator);
	this.source = source;
	this.locator = locator;
	this.editorType = editorType;
}
 
Example #9
Source File: LabelEditManager.java    From birt with Eclipse Public License 1.0 3 votes vote down vote up
/**
 * Constructor.
 * 
 * @param source
 * @param editorType
 * @param locator
 */
public LabelEditManager( GraphicalEditPart source, Class editorType,
		CellEditorLocator locator )
{
	super( source, editorType, locator );
	setModel(source.getModel());
}
 
Example #10
Source File: DirectEditManagerEx.java    From statecharts with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Constructs a new DirectEditManager for the given source edit part. The
 * cell editor will be created by instantiating the type <i>editorType</i>.
 * The cell editor will be placed using the given CellEditorLocator.
 * 
 * @param source
 *            the source edit part
 * @param editorType
 *            the cell editor type
 * @param locator
 *            the locator
 * @param feature
 *            If the EditPart supports direct editing of multiple features,
 *            this parameter can be used to discriminate among them.
 * @since 3.2
 */
public DirectEditManagerEx(GraphicalEditPart source, Class editorType,
		CellEditorLocator locator, Object feature) {
	this(source, editorType, locator);
	this.feature = feature;
}
 
Example #11
Source File: DirectEditManagerEx.java    From statecharts with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Sets the CellEditorLocator used to place the cell editor in the correct
 * location.
 * 
 * @param locator
 *            the locator
 */
public void setLocator(CellEditorLocator locator) {
	this.locator = locator;
}
 
Example #12
Source File: CustomTextDirectEditManager.java    From bonita-studio with GNU General Public License v2.0 2 votes vote down vote up
/**
 * @param source
 * @param editorType
 * @param locator
 */
public CustomTextDirectEditManager(GraphicalEditPart source,
        Class editorType, CellEditorLocator locator) {
    super(source, editorType, locator);
}