Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-dev] Submitting a New Task on Bugzilla

My apologies, indeed that method is package protected. The cause of
the problem appears to be due to calling the initialization of task
data before the connector is set. This circumstance doesn't usually
arise but when used as a library apparently it can.   Although this
can be worked around by calling
connector.getClientManager().getClient(repository, monitor) right
after you create the connector instance, you will hit another problem
wwithin the initializeTaskData method. There is a call in there that
assumes the plugin instance exists. I've created the following bug to
address this and will post a patch there that you can apply to your
locally checked out version of mylyn from HEAD.

-Rob


282396: BugzillaTaskDataHandler.initializeTaskData() assumes instance
of BugizllaCorePlugin exists
https://bugs.eclipse.org/bugs/show_bug.cgi?id=282396


On Fri, Jul 3, 2009 at 2:41 AM, sunhelix<sunhelix@xxxxxx> wrote:
>
> Unfortunately, setConnector() is not an existing method inside
> org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin class. Further,
> connector.canCreateNewTask(repository) returns true, so, I guess, it should
> be possible to create a new task. Also, I forgot to mention, I've managed to
> change some attribute values, and attach an attachment, for the existing
> task.
>
> Robert
>
>
> portal on behalf of Rob Elves wrote:
>>
>> Try adding BugzillaCorePlugin.setConnector(connector);  just after
>> your first line where you construct the connector.
>>
>> -Rob
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Submitting-a-New-Task-on-Bugzilla-tp24304351p24320327.html
> Sent from the Mylyn Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> mylyn-dev mailing list
> mylyn-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/mylyn-dev
>



-- 
Robert Elves
Tasktop Developer, http://tasktop.com/
Mylyn Committer, http://eclipse.org/mylyn


Back to the top