Skip to content

Commit

Permalink
Service cut generator: improve labels on UI (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-ka authored Dec 5, 2019
1 parent c14721d commit 7530b29
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void widgetSelected(SelectionEvent e) {
GridData functionalCriteriaGroupGridData = new GridData(GridData.FILL_HORIZONTAL);
functionalCriteriaGroupGridData.horizontalSpan = 2;
functionalCriteriaGroup.setLayoutData(functionalCriteriaGroupGridData);
functionalCriteriaGroup.setText("Functional / Domain Model - Criteria Priorities");
functionalCriteriaGroup.setText("Functional / Domain Model Criteria");

createCriteriaPrioritySelectionCombo(functionalCriteriaGroup, IDENTITY_LIFECYCLE);
createCriteriaPrioritySelectionCombo(functionalCriteriaGroup, SEMANTIC_PROXIMITY);
Expand All @@ -144,7 +144,7 @@ public void widgetSelected(SelectionEvent e) {

new Label(functionalCriteriaGroup, SWT.NONE);
Button prioritizeFunctionalGroupButton = new Button(functionalCriteriaGroup, SWT.NONE);
prioritizeFunctionalGroupButton.setText("Prioritize criteria of this group");
prioritizeFunctionalGroupButton.setText("Prioritize functional / domain model criteria");
prioritizeFunctionalGroupButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
prioritizeFunctionalGroupButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
Expand All @@ -167,7 +167,7 @@ public void widgetSelected(SelectionEvent e) {
GridData runtimeQualityCriteriaGroupGridData = new GridData(GridData.FILL_HORIZONTAL);
runtimeQualityCriteriaGroupGridData.horizontalSpan = 2;
runtimeQualityCriteriaGroup.setLayoutData(runtimeQualityCriteriaGroupGridData);
runtimeQualityCriteriaGroup.setText("Runtime Quality - Criteria Priorities");
runtimeQualityCriteriaGroup.setText("Runtime Quality Criteria");

createCriteriaPrioritySelectionCombo(runtimeQualityCriteriaGroup, LATENCY);
createCriteriaPrioritySelectionCombo(runtimeQualityCriteriaGroup, AVAILABILITY);
Expand All @@ -177,7 +177,7 @@ public void widgetSelected(SelectionEvent e) {

new Label(runtimeQualityCriteriaGroup, SWT.NONE);
Button prioritizeRuntimeQualityGroupButton = new Button(runtimeQualityCriteriaGroup, SWT.NONE);
prioritizeRuntimeQualityGroupButton.setText("Prioritize criteria of this group");
prioritizeRuntimeQualityGroupButton.setText("Prioritize runtime quality criteria");
prioritizeRuntimeQualityGroupButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
prioritizeRuntimeQualityGroupButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
Expand All @@ -201,15 +201,15 @@ public void widgetSelected(SelectionEvent e) {
GridData dataCriteriaGroupGridData = new GridData(GridData.FILL_HORIZONTAL);
dataCriteriaGroupGridData.horizontalSpan = 2;
dataCriteriaGroup.setLayoutData(dataCriteriaGroupGridData);
dataCriteriaGroup.setText("Data - Criteria Priorities");
dataCriteriaGroup.setText("Data Criteria");

createCriteriaPrioritySelectionCombo(dataCriteriaGroup, CONSISTENCY);
createCriteriaPrioritySelectionCombo(dataCriteriaGroup, CONSISTENCY_CONSTRAINT);
createCriteriaPrioritySelectionCombo(dataCriteriaGroup, STORAGE_SIMILARITY);

new Label(dataCriteriaGroup, SWT.NONE);
Button prioritizeDataGroupButton = new Button(dataCriteriaGroup, SWT.NONE);
prioritizeDataGroupButton.setText("Prioritize criteria of this group");
prioritizeDataGroupButton.setText("Prioritize data criteria");
prioritizeDataGroupButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
prioritizeDataGroupButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
Expand All @@ -231,14 +231,14 @@ public void widgetSelected(SelectionEvent e) {
GridData organizationalCriteriaGroupGridData = new GridData(GridData.FILL_HORIZONTAL);
organizationalCriteriaGroupGridData.horizontalSpan = 2;
organizationalCriteriaGroup.setLayoutData(organizationalCriteriaGroupGridData);
organizationalCriteriaGroup.setText("Organizational - Criteria Priorities");
organizationalCriteriaGroup.setText("Organizational Criteria");

createCriteriaPrioritySelectionCombo(organizationalCriteriaGroup, SHARED_OWNER);
createCriteriaPrioritySelectionCombo(organizationalCriteriaGroup, PREDEFINED_SERVICE);

new Label(organizationalCriteriaGroup, SWT.NONE);
Button prioritizeOrganizationalGroupButton = new Button(organizationalCriteriaGroup, SWT.NONE);
prioritizeOrganizationalGroupButton.setText("Prioritize criteria of this group");
prioritizeOrganizationalGroupButton.setText("Prioritize organizational criteria");
prioritizeOrganizationalGroupButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
prioritizeOrganizationalGroupButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
Expand All @@ -251,7 +251,7 @@ public void widgetSelected(SelectionEvent e) {
});

Button restoreDefaultPrioritiesButton = new Button(container, SWT.NONE);
restoreDefaultPrioritiesButton.setText("Restore Default Priorities");
restoreDefaultPrioritiesButton.setText("Restore default priorities");
restoreDefaultPrioritiesButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
for (Map.Entry<String, Combo> priorityComboEntry : allPriorityCombos.entrySet()) {
Expand All @@ -260,8 +260,6 @@ public void widgetSelected(SelectionEvent e) {
}
});

container.setLayout(new GridLayout(1, false));
container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
scrollComp.setMinSize(container.computeSize(SWT.DEFAULT, SWT.DEFAULT));

setControl(mainComposite);
Expand Down

0 comments on commit 7530b29

Please sign in to comment.