Package net.sf.rej.gui.action

Examples of net.sf.rej.gui.action.InsertFieldAction


      List<Transferrable> transferrables = (List) data;
      for (Transferrable transferrable : transferrables) {
        if (transferrable instanceof TransferrableField) {
          TransferrableField field = (TransferrableField) transferrable;

          Undoable insertFieldAction = new InsertFieldAction(
              this.classDef.getClassFile(), field.getFieldName(),
              field.getDescriptor(), new AccessFlags(field
                  .getAccessFlags()));
          ga.add(insertFieldAction);
        } else if (transferrable instanceof TransferrableMethod) {
View Full Code Here


    this.dispatcher.notifyObservers(new Event(EventType.CLASS_UPDATE));
  }

  public void insertField(ClassFile cf, String fieldName, Descriptor desc,
      AccessFlags flags) {
    InsertFieldAction ifa = new InsertFieldAction(cf, fieldName, desc,
        flags);
    SystemFacade.getInstance().performAction(ifa, this.openFile);
    this.dispatcher.notifyObservers(new Event(EventType.CLASS_UPDATE));
  }
View Full Code Here

TOP

Related Classes of net.sf.rej.gui.action.InsertFieldAction

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.