Package org.dyno.visual.swing.undo

Examples of org.dyno.visual.swing.undo.SetValueOperation


          Class type = lastValue.getClass();
          TypeAdapter ta = ExtensionRegistry.getTypeAdapter(type);
          value = ta.getEditor().decodeValue(value);
        }
        for (Object b : bean.toArray()) {
          IUndoableOperation operation = new SetValueOperation(b, this, value);
          IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
          if (b instanceof Component) {
            Component jcomp = (Component) b;
            WidgetAdapter adapter = WidgetAdapter.getWidgetAdapter(jcomp);
            if (adapter != null) {
              operation.addContext(adapter.getUndoContext());
            }
          }
          operationHistory.execute(operation, null, null);
        }
      } catch (Exception e) {
View Full Code Here


          Class type = lastValue.getClass();
          TypeAdapter ta = ExtensionRegistry.getTypeAdapter(type);
          value = ta.getEditor().decodeValue(value);
        }
        for (Object b : bean.toArray()) {
          IUndoableOperation operation = new SetValueOperation(b, this, value);
          IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
          if (b instanceof Component) {
            Component jcomp = (Component) b;
            WidgetAdapter adapter = WidgetAdapter.getWidgetAdapter(jcomp);
            if (adapter != null) {
              operation.addContext(adapter.getUndoContext());
            }
          }
          operationHistory.execute(operation, null, null);
        }
      } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.dyno.visual.swing.undo.SetValueOperation

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.