Package org.dyno.visual.swing.widgets.undo

Examples of org.dyno.visual.swing.widgets.undo.JSplitPanePlacementOperation.addContext()


    String oldplacement = (String) parent.getChildConstraints(child);
    if (!placement.equals(oldplacement)) {
      IOperationHistory operationHistory = PlatformUI.getWorkbench()
          .getOperationSupport().getOperationHistory();
      IUndoableOperation operation = new JSplitPanePlacementOperation(container, child, placement);
      operation.addContext(parent.getUndoContext());
      try {
        operationHistory.execute(operation, null, null);
      } catch (ExecutionException e) {
        WidgetPlugin.getLogger().error(e);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.