public void init(IWorkbench workbench) {
ReviewModel reviewModel = ReviewModel.getInstance();
String reviewPhaseNameKey = reviewModel.getPhaseManager().getPhaseNameKey();
ColumnDataModelManager columnDataModelManager = ColumnDataModelManager.getInstance();
ColumnDataModel columnDataModel = columnDataModelManager.getModel(reviewPhaseNameKey);
PrefResource configManager = PrefResource.getInstance();
// Sets the initial phase to display in the view preference page.
if (columnDataModel.allSize() <= 0) {
this.reviewPhaseNameKey = configManager.getDefaultPhaseNameKey();
}
else {
this.reviewPhaseNameKey = reviewPhaseNameKey;
}
this.tempReviewPhaseNameKey = this.reviewPhaseNameKey;
String[] reviewPhaseNameKeys = configManager.getPhaseArray(true);
this.reviewPhaseMap = new HashMap<String, List<ColumnData>>();
for (int i = 0; i < reviewPhaseNameKeys.length; i++) {
columnDataModel = columnDataModelManager.getModel(reviewPhaseNameKeys[i]);
ColumnData[] columnDataArray = columnDataModel.getAllColumnDataArray();
ArrayList<ColumnData> columnDataList = new ArrayList<ColumnData>(Arrays