mknittig / googlecode-mylyn-connector

Automatically exported from code.google.com/p/googlecode-mylyn-connector
0 stars 0 forks source link

Cannot use canned queries when multiple projects used in workspace #75

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
This is a duplicate of 69, I propose closing this.

Original comment by meijerf...@gmail.com on 23 Feb 2011 at 1:20