Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [mylyn-integrators] TaskEditorPage

Thank you very much Robert. It is very much working now :-)

I also realized that my problem was that I was trying to update the wrong part. I was working with the planing-part of the taskEditor thinking that it was my own editor. What actually happenes is that a third editor-page is added to the default task-editor with has and updates all the data of MY task.

I thought I should post this in case somebody else is about to repeat my misstake :-)

Kind regards,
Avin

________________________________________
From: mylyn-integrators-bounces@xxxxxxxxxxx [mylyn-integrators-bounces@xxxxxxxxxxx] On Behalf Of Schenkenfelder Robert [robert.schenkenfelder@xxxxxxxxxxxxxx]
Sent: Thursday, July 31, 2008 10:15 AM
To: Mylyn Integrators list
Subject: RE: [mylyn-integrators] TaskEditorPage

If you are developing with Mylyn 3.0, then your extension point should
look like this:

        <extension
                        point="org.eclipse.mylyn.tasks.ui.editors">
                <pageFactory

class="org.eclipse.mylyn.consol.ui.editor.ConsolTaskEditorPageFactory"
                id="consol"
                name="Consol Task Editor Page Factory"/>

        </extension>

With Consol as your Connector name. This way it works, at least for me
=)
In Mylyn 2.3 the extension's name is editorFactory.

Kind regards,
Robert

-----Original Message-----
From: mylyn-integrators-bounces@xxxxxxxxxxx
[mailto:mylyn-integrators-bounces@xxxxxxxxxxx] On Behalf Of Avin Ismail
Sent: Donnerstag, 31. Juli 2008 09:48
To: Mylyn Integrators list
Subject: RE: [mylyn-integrators] TaskEditorPage

Thanks alot Steffen. That did help me understands how it is being done.

However, in my connector, I still have the "un-used subclass"-problem.
When I run my plugin it still does not use my subclasses of
AbstractTaskEditorPage and AbstractTaskEditorPageFactory :-(

Avin

________________________________________
From: mylyn-integrators-bounces@xxxxxxxxxxx
[mylyn-integrators-bounces@xxxxxxxxxxx] On Behalf Of Steffen Pingel
[steffenp@xxxxxx]
Sent: Thursday, July 31, 2008 8:28 AM
To: Mylyn Integrators list
Subject: Re: [mylyn-integrators] TaskEditorPage

AbstractTaskEditorPageFactory.canCreatePageFor() is invoked by
TaskEditor to determine whether the factory provides a page for a
particular task. To trace how this works you can set breakpoints in
BugzillaTaskEditorPageFactory and BugzillaTaskEditorPage and open a
Bugzilla task from the task list.

Steffen


On Tuesday 29 July 2008, Avin Ismail wrote:
> What method in which class is invoked to start the taskEditor when I
> double-click on a task in the task-view?
>
> I tried to override methods in AbstractTaskEditorPage and
> AbstractTaskEditorPageFactory to see if anything I do there make any
> effect on my editor, and it turned out that none of the methods I
> override are being invoked. I though that methods like doSave(),
> createPage(),
> canCreatePageFor() and init() would be invoked at some point, but they

> don't. I'm thinking that there maybe something wrong with the
> editor-Extensions. I checked the Porting_Guide/3.0 and did something
> similar, so my Extension looks like this:
>
>
> <extension
>
>        point="org.eclipse.mylyn.tasks.ui.editors">
>
>       <pageFactory
>
>
> class="org.eclipse.mylyn.MyConnector.ui.MyConnectorTaskEditorPage">
>
>       </pageFactory>
>
> </extension>
>
>
>
>
>
> Can somebody please tell me if this looks wrong?
>
>
>
> I also tried exactly as it says on the porting guide:
>
>
>
> <extension
>      point="org.eclipse.mylyn.tasks.ui.editors">
>      <pageFactory
>
>
>class="org.eclipse.mylyn.internal.web.tasks.MyConnectorTaskEditorPageFa
>ctor y" id="org.eclipse.mylyn.web.tasks.pageFactory">
>      </pageFactory>
> </extension>
>
>
>
> But that did not make any difference.
>
>
>
> Best regards,
>
> Avin



--
Steffen Pingel - steffenp@xxxxxx - http://steffenpingel.de
_______________________________________________
mylyn-integrators mailing list
mylyn-integrators@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
_______________________________________________
mylyn-integrators mailing list
mylyn-integrators@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
_______________________________________________
mylyn-integrators mailing list
mylyn-integrators@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators


Back to the top