Skip to content

Commit

Permalink
Minor fixes and improvements.
Browse files Browse the repository at this point in the history
Override toString for Targets, so it's easier to use from the outside.
Fix test by overriding notify so log is not filled.

Minor description improvements.
  • Loading branch information
zapov committed Apr 8, 2016
1 parent 72b43d8 commit e922f54
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ public String getShortDescription() {

@Override
public String getDetailedDescription() {
return "Always download missing dependencies.";
return "Always download missing dependencies.\n" +
"Dependencies will be checked for latest version.\n" +
"Dependencies will be downloaded through Maven or from DSL Platform website.";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public String getShortDescription() {

@Override
public String getDetailedDescription() {
return "This library doesn't contain parser for DSL.\n" +
"Use other libraries for Eclipse or Visual Studio which provide syntax highlighting and basic parsing for DSL.\n" +
return "This library uses external parser for DSL. Parser can be started through: DslCompiler.setupServer method.\n" +
"Eclipse, IntelliJ IDEA and other IDE plugins use such setup for syntax highlighting.\n\n" +
"DSL Platform compiler can be used to validate current DSL. Error descriptions will be provided in case of errors.";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ private static Option from(final String value) {
}
return null;
}

@Override
public String toString() {
return value;
}
}

private static void listOptions(final Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ public void error(final Exception ex) {
public boolean canInteract() {
return false;
}

@Override
public <T> T notify(final String action, final T target) {
return target;
}
}

static class MockMigration implements CompileParameter {
Expand Down

0 comments on commit e922f54

Please sign in to comment.