/** * Gets the layer interaction property relevant to the supplied key (or toolCategoryId). * * @param layerInteraction * @return interaction */ public static Interaction getInteraction(String layerInteraction) { // check for deprecated ProjectBlackboardConstants if (layerInteraction.equals(ProjectBlackboardConstants.LAYER__EDIT_APPLICABILITY) || layerInteraction.equals(ProjectBlackboardConstants.LAYER__FEATURES_ADD_APPLICABILITY) || layerInteraction.equals( ProjectBlackboardConstants.LAYER__FEATURES_MODIFY_APPLICABILITY) || layerInteraction.equals( ProjectBlackboardConstants.LAYER__FEATURES_REMOVE_APPLICABILITY)) { return Interaction.EDIT; } for (Interaction interaction : Interaction.values()) { if (layerInteraction.equals(interaction.getKey())) { return interaction; } } return null; }