Commit 68d6b0f1 authored by Andreas Bayha's avatar Andreas Bayha
Browse files

Requirements: Added ID column to overview editor

The old and new Requirements overview editor did not have a column for
the requirement id. Now added to the fx column provider.

Issue-Ref: 4014
Issue-Url: https://af3-developer.fortiss.org/issues/4014

Signed-off-by: Andreas Bayha's avatarAndreas Bayha <bayha@fortiss.org>
parent 3464a774
RequirementsOverviewFXEditor.java 1dd6ec50837cd05bb8799466f8738b282b964e95 GREEN RequirementsOverviewFXEditor.java b84de1ee72efde3a2496c18128059fbe2df5c8f2 YELLOW
RequirementsOverviewFXEditorBinding.java 3346106642d7dbd68e6328e4cbd33f6569c6f6ff GREEN RequirementsOverviewFXEditorBinding.java 3346106642d7dbd68e6328e4cbd33f6569c6f6ff GREEN
RequirementsOverviewFXEditorContentProvider.java 5783fa0720cc1454acc0285eb056fd97933549fe GREEN RequirementsOverviewFXEditorContentProvider.java 2f9b6874d6d7063ba2d3acd49f77f36052d75a5b YELLOW
RequirementsOverviewFXEditorUIProvider.java adece2e83a54cb9094618cd7830358cb6e601d97 GREEN RequirementsOverviewFXEditorUIProvider.java 219b4bb77260b82aa28c84a04935426d7b8e1a7f YELLOW
...@@ -78,6 +78,7 @@ public class RequirementsOverviewFXEditor<T extends IHierarchicElement> extends ...@@ -78,6 +78,7 @@ public class RequirementsOverviewFXEditor<T extends IHierarchicElement> extends
treeTableViewer.addColumn("Type", 160); treeTableViewer.addColumn("Type", 160);
treeTableViewer.addColumn("Status", 160); treeTableViewer.addColumn("Status", 160);
treeTableViewer.addColumn("ID", 100);
treeTableViewer.addColumn("Name", 160); treeTableViewer.addColumn("Name", 160);
treeTableViewer.addColumn("Description", 280); treeTableViewer.addColumn("Description", 280);
treeTableViewer.addColumn("Comment", 250); treeTableViewer.addColumn("Comment", 250);
......
...@@ -111,7 +111,7 @@ public class RequirementsOverviewFXEditorContentProvider ...@@ -111,7 +111,7 @@ public class RequirementsOverviewFXEditorContentProvider
if(element instanceof Requirement) { if(element instanceof Requirement) {
Requirement req = (Requirement)element; Requirement req = (Requirement)element;
String checkStr = req.getName() + req.getDescription() + req.getComment() + String checkStr = req.getName() + req.getDescription() + req.getComment() +
req.getStatus().getName(); req.getStatus().getName() + req.getId();
return checkStr.toLowerCase().contains(filterValue.toLowerCase()); return checkStr.toLowerCase().contains(filterValue.toLowerCase());
} }
......
...@@ -111,10 +111,12 @@ public class RequirementsOverviewFXEditorUIProvider ...@@ -111,10 +111,12 @@ public class RequirementsOverviewFXEditorUIProvider
case 1: case 1:
return req.getStatus().toString(); return req.getStatus().toString();
case 2: case 2:
return req.getName(); return req.getReqId();
case 3: case 3:
return req.getDescription(); return req.getName();
case 4: case 4:
return req.getDescription();
case 5:
return req.getComment(); return req.getComment();
default: default:
return "-"; return "-";
......
Markdown is supported
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