Skip to content

Add WS action support in the route editor #6

Merged
merged 1 commit into from Mar 20, 2012
View
2 source/src/org/playframework/playclipse/builder/RouteChecker.java
@@ -42,7 +42,7 @@ public void readLine(String line, int lineNumber, int offset) {
}
}
- private static Pattern METHOD = Pattern.compile("(\\*|GET|POST|PUT|DELETE|UPDATE|HEAD)");
+ private static Pattern METHOD = Pattern.compile("(\\*|GET|POST|PUT|DELETE|UPDATE|HEAD|WS)");
private void checkLine(String line, int lineNumber, int offset) throws CoreException {
String[] rule = line.split("\\s+");
View
3 source/src/org/playframework/playclipse/editors/route/RouteEditor.java
@@ -120,6 +120,9 @@ public String scan() {
if (state == "default" && isNext("HEAD")) {
return found("keyword", 0);
}
+ if (state == "default" && isNext("WS")) {
+ return found("keyword", 0);
+ }
if (state == "default" && isNext("*")) {
return found("keyword", 0);
}
Something went wrong with that request. Please try again.