Package net.sf.rej.gui.event

Examples of net.sf.rej.gui.event.Event


      }

    }
   
    SystemFacade.getInstance().performAction(ga);
    this.dispatcher.notifyObservers(new Event(EventType.CLASS_UPDATE));
  }
View Full Code Here


  public void insertInstruction(Instruction inst, int pc, Code code) {
    InsertInstructionAction iia = new InsertInstructionAction(inst, pc,
        code);
    SystemFacade.getInstance().performAction(iia, this.openFile);
    this.dispatcher.notifyObservers(new Event(EventType.CLASS_UPDATE));
  }
View Full Code Here

      AccessFlags accessFlags, int maxStackSize, int maxLocals,
      List<String> exceptions) {
    InsertMethodAction ima = new InsertMethodAction(cf, methodName, desc,
        accessFlags, maxStackSize, maxLocals, exceptions);
    SystemFacade.getInstance().performAction(ima, this.openFile);
    this.dispatcher.notifyObservers(new Event(EventType.CLASS_UPDATE));
  }
View Full Code Here

  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

  public void moveInstructionUp(Instruction instruction, Code code) {
    MoveInstructionUpAction miua = new MoveInstructionUpAction(instruction,
        code);
    SystemFacade.getInstance().performAction(miua, this.openFile);
    this.dispatcher.notifyObservers(new Event(EventType.CLASS_UPDATE));
  }
View Full Code Here

  public void moveInstructionDown(Instruction instruction, Code code) {
    MoveInstructionDownAction mida = new MoveInstructionDownAction(
        instruction, code);
    SystemFacade.getInstance().performAction(mida, this.openFile);
    this.dispatcher.notifyObservers(new Event(EventType.CLASS_UPDATE));
  }
View Full Code Here

  public void modifyClass(ClassFile cf, AccessFlags flags, String className,
      String superName, List<Interface> remainingInterfaces, List<String> newInterfaces) {
    ModifyClassPropertiesAction mcpa = new ModifyClassPropertiesAction(cf,
        flags, className, superName, remainingInterfaces, newInterfaces);
    SystemFacade.getInstance().performAction(mcpa, this.openFile);
    this.dispatcher.notifyObservers(new Event(EventType.CLASS_UPDATE));
  }
View Full Code Here

    if (this.modified) {
      this.modified = false;
      // TODO: recover from a parsing error - invalid class
      try {
        this.cf = Disassembler.readClass(this.data);
        Event event = new Event(EventType.CLASS_REPARSE);
        event.setClassFile(this.cf);
        this.dispatcher.notifyObservers(event);
      } catch (Exception e) {
        SystemFacade.getInstance().handleException(e);
        this.dispatcher.notifyObservers(new Event(EventType.CLASS_PARSE_ERROR));
      }
    } 
  }
View Full Code Here

      Descriptor desc, AccessFlags flags, int maxStack, int maxLocals,
      List exceptions) {
    ModifyMethodAction mma = new ModifyMethodAction(cp, method, name, desc,
        flags, maxStack, maxLocals, exceptions);
    SystemFacade.getInstance().performAction(mma, this.openFile);
    this.dispatcher.notifyObservers(new Event(EventType.CLASS_UPDATE));
  }
View Full Code Here

  public void modifyField(ConstantPool pool, Field field, String name,
      Descriptor desc, AccessFlags flags) {
    ModifyFieldAction mfa = new ModifyFieldAction(pool, field, name, desc,
        flags);
    SystemFacade.getInstance().performAction(mfa, this.openFile);
    this.dispatcher.notifyObservers(new Event(EventType.CLASS_UPDATE));
  }
View Full Code Here

TOP

Related Classes of net.sf.rej.gui.event.Event

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.