Skip to content
Snippets Groups Projects
Commit 4412f924 authored by Andreas Bayha's avatar Andreas Bayha
Browse files

Annotations: Background column green for selected element

The line with the selected element has a green background.

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


Signed-off-by: default avatarAndreas Bayha <bayha@fortiss.org>
parent b7937426
No related branches found
No related tags found
1 merge request!1254014
AnnotationFxViewPart.java 6b65210913c150420f4fe67d055a0051d1d37a4e YELLOW
AnnotationViewFXController.java c83d79c19d8be7de81c648a413e8527d48294005 YELLOW
AnnotationViewFXController.java c7b53405c1e135c8e4195ed68173570d88c79f48 YELLOW
FXAnnotationFilterContentProvider.java 80fa6e9cc2f5ba3a255cab7061edca5fa368451a YELLOW
......@@ -19,6 +19,7 @@ import static java.util.Collections.emptyList;
import static java.util.stream.Collectors.toList;
import static javafx.scene.paint.Color.ALICEBLUE;
import static javafx.scene.paint.Color.LIGHTGREY;
import static javafx.scene.paint.Color.LIGHTSEAGREEN;
import static javafx.scene.paint.Color.WHITE;
import static org.fortiss.tooling.base.ui.annotation.view.fx.FXAnnotationFilterContentProvider.HIERARCHY_LEVELS_ALL;
import static org.fortiss.tooling.base.ui.annotation.view.fx.FXAnnotationFilterContentProvider.HIERARCHY_LEVELS_CURRENT;
......@@ -510,6 +511,10 @@ public class AnnotationViewFXController extends CompositeFXControllerBase<SplitP
/** {@inheritDoc} */
@Override
public Color getBackgroundColor(AnnotationEntry element, int column) {
if(element.getModelElement().equals(selected)) {
return LIGHTSEAGREEN;
}
if(column > 1 && colIdxAnnotationMap.containsKey(column)) {
IAnnotatedSpecification spec =
colIdxAnnotationMap.get(column).getAnnotatedSpecification();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment