Package net.sf.rej.gui.editor

Examples of net.sf.rej.gui.editor.InstructionEditor


    }
    }
  }
 
  private void modifyInstruction(int pc, Instruction instruction, LocalVariableTableAttribute lvAttr) {
    InstructionEditor editor = new InstructionEditor();
    editor.setPC(pc);
    editor.setInstruction(instruction);
    editor.setLocalVariableTable(lvAttr);
    editor.setClassFile(this.cf);
    editor.invokeModify();
    if (!editor.wasCancelled()) {
      GroupAction group = new GroupAction();
      List choosers = editor.getChoosers();
      modifyInstructionParameters(choosers, group, instruction);
            SystemFacade.getInstance().performAction(group);
    }
  }
View Full Code Here


            SystemFacade.getInstance().performAction(group);
    }
  }
 
  private void insertInstruction(MethodDefRow mdr, int pc, LocalVariableTableAttribute lvAttr, Code code) {
    InstructionEditor editor = new InstructionEditor();
    editor.setClassFile(this.cf);
    editor.setPC(pc);
    editor.setLocalVariableTable(lvAttr);
    editor.invokeInsert();
    if (!editor.wasCancelled()) {
            GroupAction group = new GroupAction();
            if (code == null) {
              group.add(new CreateCodeAttributeAction(mdr.getMethod().getAttributes(), this.cf.getPool()));
            }
            List choosers = editor.getChoosers();
            Instruction instruction = editor.getInstruction();
            try {
              instruction = instruction.createNewInstance();
            } catch(Exception e) {
              SystemFacade.getInstance().handleException(e);
            }
View Full Code Here

TOP

Related Classes of net.sf.rej.gui.editor.InstructionEditor

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.