Package org.eclipse.gef.tools

Examples of org.eclipse.gef.tools.CellEditorLocator


        installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new NodeDirectEditPolicy());
    }

    private void performDirectEdit() {
        if (directEditManager == null) {
            CellEditorLocator locator = new LabelCellEditorLocator(getFigure().getLabel());
            directEditManager = new LabelDirectEditManager(this, TextCellEditor.class, locator);
        }
        if (getFigure().getLabel().isVisible()) {
            directEditManager.show();
        }
View Full Code Here


    // check if we support direct edit
    if (getEditPolicy(EditPolicy.DIRECT_EDIT_ROLE) == null) return; // there is nothing to be done
   
    if(directEditManager == null) {
      directEditManager = new TrayCategoryEntryEditPartDirectEditManager(this,
          TextCellEditor.class, new CellEditorLocator() {
            public void relocate(CellEditor celleditor) {
              Text text = (Text) celleditor.getControl();
              Point sel = text.getSelection();
              Point pref = text.computeSize(-1, -1);
              Label label = getDirectEditLabel();
View Full Code Here

TOP

Related Classes of org.eclipse.gef.tools.CellEditorLocator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.