Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Talk:Mylyn/Integrator Reference"
Line 2: | Line 2: | ||
The Example code for Headless use of the Bugzilla API doesn't work; there is no class AbstractRepositoryTask that I can locate. The following code seems to work, but only for a few bugzilla repositories; the rest end with a core exception thrown when it parses the HTML: | The Example code for Headless use of the Bugzilla API doesn't work; there is no class AbstractRepositoryTask that I can locate. The following code seems to work, but only for a few bugzilla repositories; the rest end with a core exception thrown when it parses the HTML: | ||
− | + | <source lang=java> | |
BugzillaRepositoryConnector connector = new BugzillaRepositoryConnector(); | BugzillaRepositoryConnector connector = new BugzillaRepositoryConnector(); | ||
connector.init(new TaskList()); | connector.init(new TaskList()); | ||
Line 11: | Line 11: | ||
taskdata = handler.getTaskData(repository, "123", new NullProgressMonitor()); | taskdata = handler.getTaskData(repository, "123", new NullProgressMonitor()); | ||
}catch(CoreException e){ | }catch(CoreException e){ | ||
− | System.out.println("Couldn't get task data for bug | + | System.out.println("Couldn't get task data for bug 123"+((RepositoryStatus)e.getStatus()).getHtmlMessage()); |
e.printStackTrace(); | e.printStackTrace(); | ||
} | } | ||
− | + | </source> | |
I'm not quite sure where to go from here | I'm not quite sure where to go from here | ||
+ | --[[User:D.marple.gmail.com|D.marple.gmail.com]] 17:16, 11 June 2008 (EDT) |
Revision as of 17:16, 11 June 2008
Concerning section 2.7 (query support): DelegatingTaskExternalizer is final and cannot be subclassed. I replaced it with AbstractTaskListFactory - I hope this is ok. --Dennis.rietmann.gmail.com 06:57, 27 November 2007 (EST)
The Example code for Headless use of the Bugzilla API doesn't work; there is no class AbstractRepositoryTask that I can locate. The following code seems to work, but only for a few bugzilla repositories; the rest end with a core exception thrown when it parses the HTML:
BugzillaRepositoryConnector connector = new BugzillaRepositoryConnector(); connector.init(new TaskList()); TaskRepository repository = new TaskRepository(BugzillaCorePlugin.REPOSITORY_KIND, "https://bugzilla.redhat.com/"); AbstractTaskDataHandler handler = connector.getTaskDataHandler(); RepositoryTaskData taskdata = null; try{ taskdata = handler.getTaskData(repository, "123", new NullProgressMonitor()); }catch(CoreException e){ System.out.println("Couldn't get task data for bug 123"+((RepositoryStatus)e.getStatus()).getHtmlMessage()); e.printStackTrace(); }
I'm not quite sure where to go from here --D.marple.gmail.com 17:16, 11 June 2008 (EDT)