void BuildComponents() { IncomingChangesTreeHeaderState incomingChangesHeaderState = IncomingChangesTreeHeaderState.Default; TreeHeaderSettings.Load(incomingChangesHeaderState, UnityConstants.GLUON_INCOMING_CHANGES_TABLE_SETTINGS_NAME, (int)IncomingChangesTreeColumn.Path, true); mIncomingChangesTreeView = new IncomingChangesTreeView( mWkInfo, incomingChangesHeaderState, IncomingChangesTreeHeaderState.GetColumnNames(), new IncomingChangesViewMenu(this, this), UpdateProcessMergesButtonText); mIncomingChangesTreeView.Reload(); ErrorsListHeaderState errorsListHeaderState = ErrorsListHeaderState.Default; TreeHeaderSettings.Load(errorsListHeaderState, UnityConstants.GLUON_INCOMING_ERRORS_TABLE_SETTINGS_NAME, UnityConstants.UNSORT_COLUMN_ID); mErrorsListView = new ErrorsListView(errorsListHeaderState); mErrorsListView.Reload(); }
static void UpdateIncomingChangesTree( IncomingChangesTreeView incomingChangesTreeView, IncomingChangesTree tree) { incomingChangesTreeView.BuildModel( UnityIncomingChangesTree.BuildIncomingChangeCategories(tree)); incomingChangesTreeView.Sort(); incomingChangesTreeView.Reload(); }