Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHPAM-1257 - Process Definitions: Project and Deployment Name coupled (#… #1172

Merged
merged 1 commit into from
Jul 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ public DefaultSelectionEventManager.SelectAction translateSelectionEvent(CellPre
public void initColumns(ExtendedPagedTable extendedPagedTable) {
Column processNameColumn = initProcessNameColumn();
Column versionColumn = initVersionColumn();
Column projectColumn = initProjectColumn();
Column deploymentColumn = initDeploymentColumn();
ColumnMeta<ProcessSummary> actionsColumnMeta = initActionsColumn();

List<ColumnMeta<ProcessSummary>> columnMetas = new ArrayList<ColumnMeta<ProcessSummary>>();
columnMetas.add(new ColumnMeta<>(processNameColumn,
constants.Name()));
columnMetas.add(new ColumnMeta<>(versionColumn,
constants.Version()));
columnMetas.add(new ColumnMeta<>(projectColumn,
constants.Project()));
columnMetas.add(new ColumnMeta<>(deploymentColumn,
constants.Deployment_Name()));
columnMetas.add(actionsColumnMeta);

extendedPagedTable.addSelectionIgnoreColumn(actionsColumnMeta.getColumn());
Expand Down Expand Up @@ -166,16 +166,16 @@ public String getValue(ProcessSummary object) {
return versionColumn;
}

private Column initProjectColumn() {
Column<ProcessSummary, String> projectColumn = new Column<ProcessSummary, String>(new TextCell()) {
private Column initDeploymentColumn() {
Column<ProcessSummary, String> deploymentColumn = new Column<ProcessSummary, String>(new TextCell()) {
@Override
public String getValue(ProcessSummary object) {
return object.getDeploymentId();
}
};
projectColumn.setSortable(true);
projectColumn.setDataStoreName(COL_ID_PROJECT);
return projectColumn;
deploymentColumn.setSortable(true);
deploymentColumn.setDataStoreName(COL_ID_PROJECT);
return deploymentColumn;
}

private ColumnMeta<ProcessSummary> initActionsColumn() {
Expand Down