Minor bug.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@548 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
fed3c87fa6
commit
3ae72ea630
@ -9,6 +9,7 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
import com.metaweb.gridworks.commands.Command;
|
import com.metaweb.gridworks.commands.Command;
|
||||||
import com.metaweb.gridworks.history.HistoryEntry;
|
import com.metaweb.gridworks.history.HistoryEntry;
|
||||||
import com.metaweb.gridworks.model.Project;
|
import com.metaweb.gridworks.model.Project;
|
||||||
|
import com.metaweb.gridworks.model.changes.RowFlagChange;
|
||||||
import com.metaweb.gridworks.model.changes.RowStarChange;
|
import com.metaweb.gridworks.model.changes.RowStarChange;
|
||||||
import com.metaweb.gridworks.process.QuickHistoryEntryProcess;
|
import com.metaweb.gridworks.process.QuickHistoryEntryProcess;
|
||||||
|
|
||||||
@ -110,7 +111,7 @@ public class AnnotateOneRowCommand extends Command {
|
|||||||
_project,
|
_project,
|
||||||
(flagged ? "Flag row " : "Unflag row ") + (rowIndex + 1),
|
(flagged ? "Flag row " : "Unflag row ") + (rowIndex + 1),
|
||||||
null,
|
null,
|
||||||
new RowStarChange(rowIndex, flagged)
|
new RowFlagChange(rowIndex, flagged)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,8 +43,8 @@ public class RowFlagChange implements Change {
|
|||||||
|
|
||||||
static public RowFlagChange load(LineNumberReader reader, Pool pool) throws Exception {
|
static public RowFlagChange load(LineNumberReader reader, Pool pool) throws Exception {
|
||||||
int row = -1;
|
int row = -1;
|
||||||
boolean oldStarred = false;
|
boolean oldFlagged = false;
|
||||||
boolean newStarred = false;
|
boolean newFlagged = false;
|
||||||
|
|
||||||
String line;
|
String line;
|
||||||
while ((line = reader.readLine()) != null && !"/ec/".equals(line)) {
|
while ((line = reader.readLine()) != null && !"/ec/".equals(line)) {
|
||||||
@ -55,14 +55,14 @@ public class RowFlagChange implements Change {
|
|||||||
if ("row".equals(field)) {
|
if ("row".equals(field)) {
|
||||||
row = Integer.parseInt(value);
|
row = Integer.parseInt(value);
|
||||||
} else if ("oldFlagged".equals(field)) {
|
} else if ("oldFlagged".equals(field)) {
|
||||||
oldStarred = Boolean.parseBoolean(value);
|
oldFlagged = Boolean.parseBoolean(value);
|
||||||
} else if ("newFlagged".equals(field)) {
|
} else if ("newFlagged".equals(field)) {
|
||||||
oldStarred = Boolean.parseBoolean(value);
|
oldFlagged = Boolean.parseBoolean(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RowFlagChange change = new RowFlagChange(row, newStarred);
|
RowFlagChange change = new RowFlagChange(row, newFlagged);
|
||||||
change.oldFlagged = oldStarred;
|
change.oldFlagged = oldFlagged;
|
||||||
|
|
||||||
return change;
|
return change;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user