Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions tmc-plugin/src/fi/helsinki/cs/tmc/actions/PastebinAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ public boolean enable(Project... projects) {
}
}

@Override
protected boolean enabledFor(Exercise exercise) {
return exercise.getReturnable();
}

@Override
protected void performAction(Node[] nodes) {
List<Project> project = projectsFromNodes(nodes);
Expand Down
4 changes: 4 additions & 0 deletions tmc-plugin/src/fi/helsinki/cs/tmc/data/Exercise.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ public void setReturnable(boolean returnable) {
this.returnable = returnable;
}

public boolean getReturnable() {
return this.returnable;
}

public boolean requiresReview() {
return requiresReview;
}
Expand Down