Package net.sf.rej.util

Examples of net.sf.rej.util.Wrapper


        int value = 0;
        if (o instanceof String) {
            // parse into ClassInfo, RefInfo NameAndTypeInfo etc
            throw new RuntimeException("Editing not implemented.");
        } else {
            Wrapper wrapper = (Wrapper)o;
            Object content = wrapper.getContent();
            if(content instanceof MethodLocator) {
                MethodLocator ml = (MethodLocator)content;
                return ml;
            } else {
                RefInfo ri = (RefInfo) ( (Wrapper) o).getContent();
View Full Code Here


    }

    public void done() {
        this.selectedClass = (ClassLocator)this.cls.getSelectedItem();
        this.selectedField = null;
        Wrapper wrapper = (Wrapper)this.field.getSelectedItem();
        if(wrapper != null) {
            this.selectedField = (Field) wrapper.getContent();
        }
        this.setVisible(false);
    }
View Full Code Here

        DefaultComboBoxModel model = new DefaultComboBoxModel(array);
        this.combo.setModel(model);
    }

    public Object getValue() {
        Wrapper wrapper = (Wrapper) this.combo.getSelectedItem();

        return wrapper.getContent();
    }
View Full Code Here

    }

    public void done() {
        this.selectedClass = (ClassLocator)this.cls.getSelectedItem();
        this.selectedMethod = null;
        Wrapper wrapper = (Wrapper)this.method.getSelectedItem();
        if(wrapper != null) {
            this.selectedMethod = (Method) wrapper.getContent();
        }
        this.setVisible(false);
    }
View Full Code Here

            ConstantPoolTab.this.table.getSelectedRow(), 2);

        if (me.getClickCount() == 2
            && me.getButton() == MouseEvent.BUTTON1
            && obj instanceof Wrapper) {
          Wrapper wrapper = (Wrapper) obj;
          ConstantPoolInfo cpi = (ConstantPoolInfo) wrapper
              .getContent();
          launchEditor(cpi);

        } else if (me.getButton() == MouseEvent.BUTTON3) {
          // TODO: Context menu
View Full Code Here

    if (selectedRow == -1) {
      return null;
    } else {
      Object obj = ConstantPoolTab.this.table.getValueAt(selectedRow, 2);
      if (obj instanceof Wrapper) {
        Wrapper wrapper = (Wrapper) obj;
        return (ConstantPoolInfo) wrapper.getContent();
      } else {
        return null;
      }
    }
  }
View Full Code Here

        int value = 0;
        if (o instanceof String) {
            // TODO: parse into ClassInfo, RefInfo NameAndTypeInfo etc
            throw new RuntimeException("Editing not implemented.");
        } else {
            Wrapper wrapper = (Wrapper)o;
            Object content = wrapper.getContent();
            if(content instanceof FieldLocator) {
                FieldLocator fl = (FieldLocator)content;
                return fl;
            } else {
                RefInfo ri = (RefInfo) ( (Wrapper) o).getContent();
View Full Code Here

TOP

Related Classes of net.sf.rej.util.Wrapper

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.