Package net.sf.rej.files

Examples of net.sf.rej.files.ClassIndex


  }

  public void gotoMethodDefinition(String className, String methodName,
      Descriptor desc) {
    try {
      ClassIndex ci = SystemFacade.getInstance().getClassIndex();
      ClassLocator cl = ci.getLocator(className);
      if (cl != null && cl.getFileSet().equals(this.openProject.getFileSet())) {
        ClassFile cf = SystemFacade.getInstance().getClassFile(cl);
        List methods = cf.getMethods();
        Method method = null;
        for (int i = 0; i < methods.size(); i++) {
View Full Code Here


  }

  public void gotoFieldDefinition(String className, String fieldName,
      Descriptor desc) {
    try {
      ClassIndex ci = SystemFacade.getInstance().getClassIndex();
      ClassLocator cl = ci.getLocator(className);
      if (cl != null && cl.getFileSet().equals(this.openProject.getFileSet())) {
        ClassFile cf = SystemFacade.getInstance().getClassFile(cl);
        List fields = cf.getFields();
        Field field = null;
        for (int i = 0; i < fields.size(); i++) {
View Full Code Here

    }
  }

  public void gotoClassDefinition(String className) {
    try {
      ClassIndex ci = SystemFacade.getInstance().getClassIndex();
      ClassLocator cl = ci.getLocator(className);

      if (cl != null && cl.getFileSet().equals(this.openProject.getFileSet())) {
        ClassFile cf = SystemFacade.getInstance().getClassFile(cl);
        Link link = new Link();
        link.setText("Class definition : " + cf.getFullClassName());
View Full Code Here

    if (addButton == null) {
      addButton = new JButton();
      addButton.setText("+");
      addButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
                ClassIndex cpIndex = SystemFacade.getInstance().getClassIndex();
                ClassChooseDialog ccd = new ClassChooseDialog(MainWindow.getInstance(), cpIndex);
                ccd.invoke();
                ClassLocator cl = ccd.getSelected();
                if (cl != null) {
                    ClassEditor.this.interfaceModel.addElement(cl.getFullName());
View Full Code Here

    if (addButton == null) {
      addButton = new JButton();
      addButton.setText("Add..");
      addButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
                ClassIndex cpIndex = SystemFacade.getInstance().getClassIndex();
                ClassChooseDialog ccd = new ClassChooseDialog(ExceptionChooseDialog.this, cpIndex);
                ccd.invoke();
                ClassLocator cl = ccd.getSelected();
                if (cl != null) {
            ExceptionChooseDialog.this.model.addElement(cl.getFullName());
View Full Code Here

      editButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
          Object obj = ExceptionChooseDialog.this.paramList.getSelectedValue();
          if (obj != null) {
            int index = ExceptionChooseDialog.this.paramList.getSelectedIndex();
                  ClassIndex cpIndex = SystemFacade.getInstance().getClassIndex();
                  ClassChooseDialog ccd = new ClassChooseDialog(ExceptionChooseDialog.this, cpIndex);
                  ccd.invoke();
                  ClassLocator cl = ccd.getSelected();
                  if (cl != null) {
              ExceptionChooseDialog.this.model.remove(index);
View Full Code Here

    if (typeChooserButton == null) {
      typeChooserButton = new JButton();
      typeChooserButton.setText("...");
      typeChooserButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
                ClassIndex cpIndex = SystemFacade.getInstance().getClassIndex();
                ClassChooseDialog ccd = new ClassChooseDialog(TypeChooseDialog.this, cpIndex);
                ccd.invoke();
                ClassLocator cl = ccd.getSelected();
                if (cl != null) {
                    TypeChooseDialog.this.typeModel.addElement(cl);
View Full Code Here

    throw new AssertionError("Method not found: " + methodName + " " + desc);

  }
 
  private void openStackFrame(IStackFrame sf) {
    ClassIndex ci = SystemFacade.getInstance().getClassIndex();
    ClassLocator cl = ci.getLocator(sf.location().declaringType().name());
    if (cl != null) {
      try {
        ClassFile cf = SystemFacade.getInstance().getClassFile(cl);
        IMethod bpMethod = sf.location().method();
        for (net.sf.rej.java.Method method : cf.getMethods()) {
View Full Code Here

    if (selectClassButton == null) {
      selectClassButton = new JButton();
      selectClassButton.setText("...");
      selectClassButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
          ClassIndex classIndex = SystemFacade.getInstance().getClassIndex();
          ClassChooseDialog ccd = new ClassChooseDialog(MainWindow.getInstance(), classIndex);
          ccd.invoke();
          ClassLocator locator = ccd.getSelected();
          if (locator != null) {
            DebugTab.this.mainClassField.setText(locator.getFullName());
View Full Code Here

TOP

Related Classes of net.sf.rej.files.ClassIndex

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.