Commit baac8328 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

RED

refs 862
parent 888934bf
......@@ -91,6 +91,7 @@ public class AnalysisComparator extends ViewerComparator {
rc = p1.getReqId().compareTo(p2.getReqId());
break;
case 1:
// TODO (FH): use import static
rc = MiraUtils.getDisplayNameFor(p1).compareTo(MiraUtils.getDisplayNameFor(p2));
break;
case 2:
......
......@@ -67,6 +67,7 @@ public class AnalysisEditor<T extends Analysis> extends FormsEditorBase<T> {
String filterString = filterText.getText().toLowerCase().trim();
if(("" + req.getReqId()).toLowerCase().contains(filterString)) {
return true;
// TODO (FH): use import static
} else if(MiraUtils.getDisplayNameFor(req).toLowerCase().contains(filterString)) {
return true;
} else if(!isEmpty(req.getName()) &&
......@@ -84,14 +85,17 @@ public class AnalysisEditor<T extends Analysis> extends FormsEditorBase<T> {
};
/** single line label grid data factory */
// TODO (FH): use import static
protected static GridDataFactory singleLineLabelFactory = GridDataFactory.swtDefaults()
.align(SWT.RIGHT, SWT.CENTER).grab(false, false);
/** single line input grid data factory */
// TODO (FH): use import static
protected static GridDataFactory singleLineInputFactory = GridDataFactory.swtDefaults()
.align(SWT.FILL, SWT.CENTER).grab(true, false);
/** fill control grid data factory */
// TODO (FH): use import static
protected static GridDataFactory fillControlFactory = GridDataFactory.swtDefaults()
.align(SWT.FILL, SWT.FILL).grab(true, true).hint(SWT.DEFAULT, 200);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment