Maybe its good to prefix the canned query name by something unique to the task
repository.
Like this in com/googlecode/mylyn/ui/wizard/GoogleCodeQuerySelectionPage.java
@Override
public String getQueryTitle() {
if (this.selectedIdentifier != null) {
// TODO canned query needs a repository prefixto make unique in task list
String prefix = camelCase(getTaskRepository().getRepositoryLabel(), 4);
return prefix + this.selectedIdentifier.getDescription();
} else {
return null;
}
}
private String camelCase(String labelText, int symbols) {
// TODO Auto-generated method stub
String[] parts = labelText.split(" ", symbols);
String prefix = "";
for (String part : parts) {
prefix += part.subSequence(0, 1);
}
prefix += ":";
return prefix.toUpperCase();
}
Original issue reported on code.google.com by meijerf...@gmail.com on 5 Jul 2010 at 10:34
Original issue reported on code.google.com by
meijerf...@gmail.com
on 5 Jul 2010 at 10:34