private void populateLists() { if (bPositionEnabled) { for (int iC = 0; iC < Position.VALUES.size(); iC++) { cmbPosition.add(Position.get(iC).getName()); if (Position.get(iC).equals(lpCurrent)) { cmbPosition.select(iC); } } } }
private void populateLists( ) { if ( bPositionEnabled ) { if ( positionScope == ALLOW_ALL_POSITION ) { for ( int iC = 0; iC < Position.VALUES.size( ); iC++ ) { cmbPosition.add( Position.get( iC ).getName( ) ); if ( Position.get( iC ).equals( lpCurrent ) ) { cmbPosition.select( iC ); } } } else {  if ( ( positionScope & ALLOW_VERTICAL_POSITION ) != 0 ) { cmbPosition.add( Position.ABOVE_LITERAL.getName( ) ); cmbPosition.add( Position.BELOW_LITERAL.getName( ) ); }  if ( ( positionScope & ALLOW_HORIZONTAL_POSITION ) != 0 ) { cmbPosition.add( Position.LEFT_LITERAL.getName( ) ); cmbPosition.add( Position.RIGHT_LITERAL.getName( ) ); }  if ( ( positionScope & ALLOW_INOUT_POSITION ) != 0 ) { cmbPosition.add( Position.INSIDE_LITERAL.getName( ) ); cmbPosition.add( Position.OUTSIDE_LITERAL.getName( ) ); }  if ( lpCurrent != null ) { for ( int iC = 0; iC < cmbPosition.getItemCount( ); iC++ ) { if ( lpCurrent.getName( ) .equals( cmbPosition.getItem( iC ) ) ) { cmbPosition.select( iC ); } } }  } } }
    private void populateLists()    {        if (bPositionEnabled)        {            for (int iC = 0; iC < Position.VALUES.size(); iC++)            {                cmbPosition.add(Position.get(iC).getName());                if (Position.get(iC).equals(lpCurrent))                {                    cmbPosition.select(iC);                }            }        }    }