1 package com
.intellij
.openapi
.vcs
.changes
.ui
;
3 public class ChangeListRemoteState
{
5 private final boolean[] myChangeStates
;
7 public ChangeListRemoteState(final int size
) {
8 myChangeStates
= new boolean[size
];
9 for (int i
= 0; i
< myChangeStates
.length
; i
++) {
10 myChangeStates
[i
] = true;
14 public void report(final int idx
, final boolean state
) {
15 myChangeStates
[idx
] = state
;
18 public boolean getState() {
19 boolean result
= true;
20 for (boolean state
: myChangeStates
) {
26 public static class Reporter
{
27 private final int myIdx
;
28 private final ChangeListRemoteState myState
;
30 public Reporter(int idx
, ChangeListRemoteState state
) {
35 public void report(final boolean state
) {
36 myState
.report(myIdx
, state
);