Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions src/main/java/ecdar/controllers/ComponentController.java
Original file line number Diff line number Diff line change
Expand Up @@ -371,23 +371,6 @@ private void initializeContextMenu() {
}, "Added inconsistent location '" + newLocation + "' to component '" + component.getName() + "'", "add-circle");
});

contextMenu.addSpacerElement();

contextMenu.addClickableListElement("Contains deadlock?", event -> {
// Generate the query
final String deadlockQuery = BackendHelper.getExistDeadlockQuery(getComponent());

// Add proper comment
final String deadlockComment = "Does " + component.getName() + " contain a deadlock?";

// Add new query for this component
final Query query = new Query(deadlockQuery, deadlockComment, QueryState.UNKNOWN);
query.setType(QueryType.REACHABILITY);
Ecdar.getProject().getQueries().add(query);
Ecdar.getQueryExecutor().executeQuery(query);
contextMenu.hide();
});

contextMenu.addSpacerElement();
contextMenu.addColorPicker(component, component::dye);
};
Expand Down