Skip to content

Commit

Permalink
Add priority to the SAR actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shroffk committed Aug 2, 2024
1 parent 12df56b commit 153d9e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class OpenFilterAction extends ActionInfoBase {

public static final String OPEN_SAR_FILTER = "open_sar_filter";
private static final String FILTER_ID_TAG = "filter_id";
private static final Integer PRIORITY = 55;

private OpenFilterActionController openFilterActionController;

Expand All @@ -49,6 +50,11 @@ public Image getImage() {
return ImageCache.getImage(OpenFilterAction.class, "/icons/bookcase.png");
}

@Override
public Integer getPriority() {
return PRIORITY;
}

@Override
public void readFromXML(ModelReader modelReader, Element actionXml) throws Exception {
filterId = XMLUtil.getChildString(actionXml, FILTER_ID_TAG).orElse("");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class OpenNodeAction extends ActionInfoBase {

public static final String OPEN_SAR_NODE = "open_sar_node";
private static final String NODE_ID_TAG = "node_id";
private static final Integer PRIORITY = 56;

private OpenNodeActionController openNodeActionController;

Expand All @@ -48,6 +49,11 @@ public Image getImage() {
return ImageCache.getImage(OpenNodeAction.class, "/icons/bookcase.png");
}

@Override
public Integer getPriority() {
return PRIORITY;
}

@Override
public void readFromXML(ModelReader modelReader, Element actionXml) {
nodeId = XMLUtil.getChildString(actionXml, NODE_ID_TAG).orElse("");
Expand Down

0 comments on commit 153d9e9

Please sign in to comment.