Examples of BitSet


Examples of java.util.BitSet

   */
  private final void findGotos(ByteSequence bytes, Method method, Code code)
       throws IOException
  {
    int index;
    goto_set = new BitSet(bytes.available());
    int opcode;

    /* First get Code attribute from method and the exceptions handled
     * (try .. catch) in this method. We only need the line number here.
     */
 
View Full Code Here

Examples of java.util.BitSet

    // Reset multi selected rows
    // Best would be to remove the unnecessary bits, but how can we know if
    // a row has been added or deleted? Most save action is to clear the selections
    // and start fresh. But we will loose the selections this way.
    // Any better ideas?
    multiSelectSelectedRows = new BitSet();
  }
View Full Code Here

Examples of java.util.BitSet

   *
   */
  private void updateMultiSelectState(UserRequest ureq) {
    String[] sRowIds = ureq.getHttpReq().getParameterValues(TableRenderer.TABLE_MULTISELECT_GROUP);
    if (sRowIds == null) {
      multiSelectSelectedRows = new BitSet(); //if all deselected create new multiSelectSelectedRows
      return;
    }
    List rowIds = new ArrayList();
    for (int i = 0; i < sRowIds.length; i++) {
      String sRowId = sRowIds[i];
View Full Code Here

Examples of java.util.BitSet

      startRowId = 0;
      endRowId = rows;
      usePageing = false;
    }
       
    BitSet multiSelectSelectedRows = table.getMultiSelectSelectedRows();
    int lastVisibleRowId = endRowId-1;
    for (int i = startRowId; i < endRowId; i++) {
      // the position of the selected row in the tabledatamodel
      int currentPosInModel = table.getSortedRow(i);
      boolean isMark = selRowUnSelectable && (selRowId == currentPosInModel);
View Full Code Here

Examples of java.util.BitSet

    /**
     * The constructor.
     */
    public BytecodeOutlineView() {
        super();
        modes = new BitSet();
        globalActions = new HashMap();
        selectionActions = new ArrayList();
    }
View Full Code Here

Examples of java.util.BitSet

        setEditorContextMenuId("#ClassFileEditorContext"); //$NON-NLS-1$
        setRulerContextMenuId("#ClassFileRulerContext"); //$NON-NLS-1$
        setOutlinerContextMenuId("#ClassFileOutlinerContext"); //$NON-NLS-1$
        // don't set help contextId, we install our own help context

        decompilerFlags = new BitSet();
        // TODO take from preferences and/or last editor memento
        decompilerFlags.set(BCOConstants.F_SHOW_LINE_INFO, true);
        decompilerFlags.set(BCOConstants.F_SHOW_VARIABLES, true);
        decompilerFlags.set(BCOConstants.F_SHOW_RAW_BYTECODE, false);
        setSourceAttachmentPossible(true);
View Full Code Here

Examples of java.util.BitSet

     *
     * @return converted boolean array as BitSet
     */
    public static BitSet getBitSetFromBooleanArray(boolean[] buf)
    {
        BitSet set = new BitSet();
        for (int i = 0; i < buf.length; i++)
        {
            if( buf[i] )
            {
                set.set(i);
            }
        }

        return set;
    }   
View Full Code Here

Examples of java.util.BitSet

        }
        else if ((miscFlags&MISC_RETRIEVING_DETACHED_STATE)!=0)
        {
            // Retrieving the detached state from the detached object
            // Don't need the id or version since they can't change
            BitSet jdoLoadedFields = (BitSet)currentState[2];
            for (int i = 0; i < this.loadedFields.length; i++)
            {
                this.loadedFields[i] = jdoLoadedFields.get(i);
            }

            BitSet jdoModifiedFields = (BitSet)currentState[3];
            for (int i = 0; i < dirtyFields.length; i++)
            {
                dirtyFields[i] = jdoModifiedFields.get(i);
            }
            setVersion(currentState[1]);
            return currentState;
        }
        else
        {
            // Updating the detached state in the detached object with our state
            Object[] state = new Object[4];
            state[0] = myID;
            state[1] = getVersion(myPC);

            // Loaded fields
            BitSet loadedState = new BitSet();
            for (int i = 0; i < loadedFields.length; i++)
            {
                if (loadedFields[i])
                {
                    loadedState.set(i);
                }
                else
                {
                    loadedState.clear(i);
                }
            }
            state[2] = loadedState;

            // Modified fields
            BitSet modifiedState = new BitSet();
            for (int i = 0; i < dirtyFields.length; i++)
            {
                if (dirtyFields[i])
                {
                    modifiedState.set(i);
                }
                else
                {
                    modifiedState.clear(i);
                }
            }
            state[3] = modifiedState;

            return state;
View Full Code Here

Examples of java.util.BitSet

    /**
     * @see de.loskutov.branchview.connection.Command#exec(java.lang.Object)
     */
    protected void exec(IJavaElement element1, IJavaElement element2) throws Exception {
        final BitSet modes = getModes();
        CompareUI.openCompareEditor(new BytecodeCompare(
            createTypedElement(element1, modes),
            createTypedElement(element2, modes)));
    }
View Full Code Here

Examples of java.util.BitSet

        return new TypedElement(name, methodName, TypedElement.TYPE_BYTECODE, javaElement, modes);
    }

    private BitSet getModes() {
        IPreferenceStore store = BytecodeOutlinePlugin.getDefault().getPreferenceStore();
        BitSet modes = new BitSet();
        modes.set(BCOConstants.F_LINK_VIEW_TO_EDITOR, store.getBoolean(BCOConstants.LINK_VIEW_TO_EDITOR));
        modes.set(BCOConstants.F_SHOW_ONLY_SELECTED_ELEMENT, store.getBoolean(BCOConstants.SHOW_ONLY_SELECTED_ELEMENT));
        modes.set(BCOConstants.F_SHOW_RAW_BYTECODE, store.getBoolean(BCOConstants.SHOW_RAW_BYTECODE));
        modes.set(BCOConstants.F_SHOW_LINE_INFO, store.getBoolean(BCOConstants.DIFF_SHOW_LINE_INFO));
        modes.set(BCOConstants.F_SHOW_VARIABLES, store.getBoolean(BCOConstants.DIFF_SHOW_VARIABLES));
        modes.set(BCOConstants.F_SHOW_ASMIFIER_CODE, store.getBoolean(BCOConstants.DIFF_SHOW_ASMIFIER_CODE));
        modes.set(BCOConstants.F_SHOW_ANALYZER, store.getBoolean(BCOConstants.SHOW_ANALYZER));
        modes.set(BCOConstants.F_SHOW_STACKMAP, store.getBoolean(BCOConstants.DIFF_SHOW_STACKMAP));
        modes.set(BCOConstants.F_EXPAND_STACKMAP, store.getBoolean(BCOConstants.DIFF_EXPAND_STACKMAP));
        return modes;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.