Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Unable to display task editor in connector
Unable to display task editor in connector [message #36737] Mon, 19 November 2007 16:34 Go to next message
Eclipse UserFriend
Originally posted by: googelybear.gmail.com

This is a multi-part message in MIME format.
--------------000306080207040601030004
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello everyone,

I'm implementing a new connector for the origo project (at
origo.ethz.ch) but I have trouble displaying my tasks in the task editor.
The connector is currently in a very early stage and I'm trying to
display existing tasks via the "Open Repository Tasks" command
(available in the context menu of the repository) in the task editor
(web view already works if getTaskDataHandler from the repository
connector returns null). Whenever I do this I get an
AssertionFailedException in
org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695).
Attached you can find the complete stacktrace.
I did the mapping from my task attributes to TaskData like that (to tell
the UI where to display what):
data.setAttributeValue(RepositoryTaskAttribute.<attribute_name >, <value>);

Do you have any idea why this does not work? What did I miss?

After it works with the default editor, I'd like to create my own
editor, or extend the existing - Is there somewhere a description/ howto
available about that?

Thanks for any help!

Dennis

--------------000306080207040601030004
Content-Type: text/plain;
name="stacktrace.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="stacktrace.txt"

eclipse.buildId=M20070921-1145
java.version=1.5.0_13
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments: -product org.eclipse.sdk.ide
Command-line arguments: -product org.eclipse.sdk.ide -data /Users/dennisri/Documents/workspace/../runtime-EclipseApplic ation -dev file:/Users/dennisri/Documents/workspace/.metadata/.plugins/ org.eclipse.pde.core/Eclipse Application/dev.properties -os macosx -ws carbon -arch x86

Error
Mon Nov 19 16:55:18 CET 2007
Unable to create editor ID org.eclipse.mylyn.tasks.ui.editors.task: assertion failed:

org.eclipse.core.runtime.AssertionFailedException: assertion failed:
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95)
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695)
at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEdi tor.java:628)
at org.eclipse.ui.forms.editor.SharedHeaderFormEditor.createPag es(SharedHeaderFormEditor.java:105)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:283)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
at org.eclipse.mylyn.tasks.ui.TasksUiUtil.openEditor(TasksUiUti l.java:413)
at org.eclipse.mylyn.internal.tasks.ui.OpenRepositoryTaskJob$3. run(OpenRepositoryTaskJob.java:110)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3214)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2958)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)


--------------000306080207040601030004--
Re: Unable to display task editor in connector [message #37007 is a reply to message #36737] Wed, 21 November 2007 20:16 Go to previous messageGo to next message
maarten meijer is currently offline maarten meijerFriend
Messages: 146
Registered: July 2009
Senior Member
Dennis R. wrote:
> Hello everyone,
>
> I'm implementing a new connector for the origo project (at
> origo.ethz.ch) but I have trouble displaying my tasks in the task editor.
You may find useful the Repository spy, Properties View for repository,
task and category as now part of the sandbox. See bug 208275: Task,
Category and Repository should fill the standard Properties view:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=208275
> The connector is currently in a very early stage and I'm trying to
> display existing tasks via the "Open Repository Tasks" command
> (available in the context menu of the repository) in the task editor
> (web view already works if getTaskDataHandler from the repository
> connector returns null). Whenever I do this I get an
> AssertionFailedException in
> org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695).
> Attached you can find the complete stacktrace.
> I did the mapping from my task attributes to TaskData like that (to tell
> the UI where to display what):
> data.setAttributeValue(RepositoryTaskAttribute.<attribute_name >, <value>);
>
> Do you have any idea why this does not work? What did I miss?
>
> After it works with the default editor, I'd like to create my own
> editor, or extend the existing - Is there somewhere a description/ howto
> available about that?
Please refer to http://wiki.eclipse.org/Mylyn_Integrator_Reference

>
>
> ------------------------------------------------------------ ------------
>
> eclipse.buildId=M20070921-1145
> java.version=1.5.0_13
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
> Framework arguments: -product org.eclipse.sdk.ide
> Command-line arguments: -product org.eclipse.sdk.ide -data /Users/dennisri/Documents/workspace/../runtime-EclipseApplic ation -dev file:/Users/dennisri/Documents/workspace/.metadata/.plugins/ org.eclipse.pde.core/Eclipse Application/dev.properties -os macosx -ws carbon -arch x86
>
> Error
> Mon Nov 19 16:55:18 CET 2007
> Unable to create editor ID org.eclipse.mylyn.tasks.ui.editors.task: assertion failed:
>
> org.eclipse.core.runtime.AssertionFailedException: assertion failed:
> at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
> at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95)
> at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695)
> at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEdi tor.java:628)
> at org.eclipse.ui.forms.editor.SharedHeaderFormEditor.createPag es(SharedHeaderFormEditor.java:105)
> at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:283)
> at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
> at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
> at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
> at org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
> at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at org.eclipse.mylyn.tasks.ui.TasksUiUtil.openEditor(TasksUiUti l.java:413)
> at org.eclipse.mylyn.internal.tasks.ui.OpenRepositoryTaskJob$3. run(OpenRepositoryTaskJob.java:110)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3214)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2958)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
Re: Unable to display task editor in connector [message #37141 is a reply to message #37007] Fri, 23 November 2007 12:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: googelybear.gmail.com

Hi Maarten,

Thanks for your link. I already looked at the wiki (specifically section
2.8). But I thought if I only use the attributes in
RepositoryTaskAttributes I could use the default task editor. In other
words: Is it mandatory to write my own subclass of
AbstractRepositotyTaskEditor in every case?

Thanks!

Dennis

Maarten Meijer wrote:
> Dennis R. wrote:
>> Hello everyone,
>>
>> I'm implementing a new connector for the origo project (at
>> origo.ethz.ch) but I have trouble displaying my tasks in the task editor.
> You may find useful the Repository spy, Properties View for repository,
> task and category as now part of the sandbox. See bug 208275: Task,
> Category and Repository should fill the standard Properties view:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=208275
>> The connector is currently in a very early stage and I'm trying to
>> display existing tasks via the "Open Repository Tasks" command
>> (available in the context menu of the repository) in the task editor
>> (web view already works if getTaskDataHandler from the repository
>> connector returns null). Whenever I do this I get an
>> AssertionFailedException in
>> org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695).
>> Attached you can find the complete stacktrace.
>> I did the mapping from my task attributes to TaskData like that (to
>> tell the UI where to display what):
>> data.setAttributeValue(RepositoryTaskAttribute.<attribute_name >,
>> <value>);
>>
>> Do you have any idea why this does not work? What did I miss?
>>
>> After it works with the default editor, I'd like to create my own
>> editor, or extend the existing - Is there somewhere a description/
>> howto available about that?
> Please refer to http://wiki.eclipse.org/Mylyn_Integrator_Reference
>
>>
>>
Re: Unable to display task editor in connector [message #37243 is a reply to message #37141] Sat, 24 November 2007 18:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rob.elves.eclipse.org

Dennis,

I've added another section to 2.8
( http://wiki.eclipse.org/Mylyn_Integrator_Reference#Task_edit or)
describing the steps required to add rich editor support for new
connectors. In short, it is required to implement your own editor but it
is relatively straight forward. If I've missed something in my
description, don't hesitate to ask for clarification and we will build
up that section of the wiki.

There is another option, that is to open your tasks via a browser page
if they are being served vi the web but I've glossed over that option in
the current documentation. Let me know if this is an option for you and
we can expand on that.

-Rob


Dennis R. wrote:
> Hi Maarten,
>
> Thanks for your link. I already looked at the wiki (specifically section
> 2.8). But I thought if I only use the attributes in
> RepositoryTaskAttributes I could use the default task editor. In other
> words: Is it mandatory to write my own subclass of
> AbstractRepositotyTaskEditor in every case?
>
> Thanks!
>
> Dennis
>
> Maarten Meijer wrote:
>> Dennis R. wrote:
>>> Hello everyone,
>>>
>>> I'm implementing a new connector for the origo project (at
>>> origo.ethz.ch) but I have trouble displaying my tasks in the task
>>> editor.
>> You may find useful the Repository spy, Properties View for
>> repository, task and category as now part of the sandbox. See bug
>> 208275: Task, Category and Repository should fill the standard
>> Properties view:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=208275
>>> The connector is currently in a very early stage and I'm trying to
>>> display existing tasks via the "Open Repository Tasks" command
>>> (available in the context menu of the repository) in the task editor
>>> (web view already works if getTaskDataHandler from the repository
>>> connector returns null). Whenever I do this I get an
>>> AssertionFailedException in
>>> org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695).
>>> Attached you can find the complete stacktrace.
>>> I did the mapping from my task attributes to TaskData like that (to
>>> tell the UI where to display what):
>>> data.setAttributeValue(RepositoryTaskAttribute.<attribute_name >,
>>> <value>);
>>>
>>> Do you have any idea why this does not work? What did I miss?
>>>
>>> After it works with the default editor, I'd like to create my own
>>> editor, or extend the existing - Is there somewhere a description/
>>> howto available about that?
>> Please refer to http://wiki.eclipse.org/Mylyn_Integrator_Reference
>>
>>>
>>>
Re: Unable to display task editor in connector [message #37413 is a reply to message #37243] Mon, 26 November 2007 11:46 Go to previous message
Eclipse UserFriend
Originally posted by: googelybear.gmail.com

Hi Rob,

Thanks a lot for the addition, I now got a very basic version working
which uses the existing fields (RepositoryTaskAttribute.* constants). I
will now go and figure out how to customize the task editor to display
additional connector-specific data.
I would very much like to use the Eclipse UI to display tasks.
Nonetheless I will have a look at web integration (maybe I will make it
an option).

Dennis

Robert Elves wrote:
> Dennis,
>
> I've added another section to 2.8
> ( http://wiki.eclipse.org/Mylyn_Integrator_Reference#Task_edit or)
> describing the steps required to add rich editor support for new
> connectors. In short, it is required to implement your own editor but it
> is relatively straight forward. If I've missed something in my
> description, don't hesitate to ask for clarification and we will build
> up that section of the wiki.
>
> There is another option, that is to open your tasks via a browser page
> if they are being served vi the web but I've glossed over that option in
> the current documentation. Let me know if this is an option for you and
> we can expand on that.
>
> -Rob
>
>
> Dennis R. wrote:
>> Hi Maarten,
>>
>> Thanks for your link. I already looked at the wiki (specifically
>> section 2.8). But I thought if I only use the attributes in
>> RepositoryTaskAttributes I could use the default task editor. In other
>> words: Is it mandatory to write my own subclass of
>> AbstractRepositotyTaskEditor in every case?
>>
>> Thanks!
>>
>> Dennis
>>
>> Maarten Meijer wrote:
>>> Dennis R. wrote:
>>>> Hello everyone,
>>>>
>>>> I'm implementing a new connector for the origo project (at
>>>> origo.ethz.ch) but I have trouble displaying my tasks in the task
>>>> editor.
>>> You may find useful the Repository spy, Properties View for
>>> repository, task and category as now part of the sandbox. See bug
>>> 208275: Task, Category and Repository should fill the standard
>>> Properties view:
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=208275
>>>> The connector is currently in a very early stage and I'm trying to
>>>> display existing tasks via the "Open Repository Tasks" command
>>>> (available in the context menu of the repository) in the task editor
>>>> (web view already works if getTaskDataHandler from the repository
>>>> connector returns null). Whenever I do this I get an
>>>> AssertionFailedException in
>>>> org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695).
>>>> Attached you can find the complete stacktrace.
>>>> I did the mapping from my task attributes to TaskData like that (to
>>>> tell the UI where to display what):
>>>> data.setAttributeValue(RepositoryTaskAttribute.<attribute_name >,
>>>> <value>);
>>>>
>>>> Do you have any idea why this does not work? What did I miss?
>>>>
>>>> After it works with the default editor, I'd like to create my own
>>>> editor, or extend the existing - Is there somewhere a description/
>>>> howto available about that?
>>> Please refer to http://wiki.eclipse.org/Mylyn_Integrator_Reference
>>>
>>>>
>>>>
Re: Unable to display task editor in connector [message #585020 is a reply to message #36737] Wed, 21 November 2007 20:16 Go to previous message
maarten meijer is currently offline maarten meijerFriend
Messages: 146
Registered: July 2009
Senior Member
Dennis R. wrote:
> Hello everyone,
>
> I'm implementing a new connector for the origo project (at
> origo.ethz.ch) but I have trouble displaying my tasks in the task editor.
You may find useful the Repository spy, Properties View for repository,
task and category as now part of the sandbox. See bug 208275: Task,
Category and Repository should fill the standard Properties view:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=208275
> The connector is currently in a very early stage and I'm trying to
> display existing tasks via the "Open Repository Tasks" command
> (available in the context menu of the repository) in the task editor
> (web view already works if getTaskDataHandler from the repository
> connector returns null). Whenever I do this I get an
> AssertionFailedException in
> org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695).
> Attached you can find the complete stacktrace.
> I did the mapping from my task attributes to TaskData like that (to tell
> the UI where to display what):
> data.setAttributeValue(RepositoryTaskAttribute.<attribute_name >, <value>);
>
> Do you have any idea why this does not work? What did I miss?
>
> After it works with the default editor, I'd like to create my own
> editor, or extend the existing - Is there somewhere a description/ howto
> available about that?
Please refer to http://wiki.eclipse.org/Mylyn_Integrator_Reference

>
>
> ------------------------------------------------------------ ------------
>
> eclipse.buildId=M20070921-1145
> java.version=1.5.0_13
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
> Framework arguments: -product org.eclipse.sdk.ide
> Command-line arguments: -product org.eclipse.sdk.ide -data /Users/dennisri/Documents/workspace/../runtime-EclipseApplic ation -dev file:/Users/dennisri/Documents/workspace/.metadata/.plugins/ org.eclipse.pde.core/Eclipse Application/dev.properties -os macosx -ws carbon -arch x86
>
> Error
> Mon Nov 19 16:55:18 CET 2007
> Unable to create editor ID org.eclipse.mylyn.tasks.ui.editors.task: assertion failed:
>
> org.eclipse.core.runtime.AssertionFailedException: assertion failed:
> at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
> at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95)
> at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695)
> at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEdi tor.java:628)
> at org.eclipse.ui.forms.editor.SharedHeaderFormEditor.createPag es(SharedHeaderFormEditor.java:105)
> at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:283)
> at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
> at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
> at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
> at org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
> at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at org.eclipse.mylyn.tasks.ui.TasksUiUtil.openEditor(TasksUiUti l.java:413)
> at org.eclipse.mylyn.internal.tasks.ui.OpenRepositoryTaskJob$3. run(OpenRepositoryTaskJob.java:110)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3214)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2958)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
Re: Unable to display task editor in connector [message #585072 is a reply to message #37007] Fri, 23 November 2007 12:08 Go to previous message
Eclipse UserFriend
Originally posted by: googelybear.gmail.com

Hi Maarten,

Thanks for your link. I already looked at the wiki (specifically section
2.8). But I thought if I only use the attributes in
RepositoryTaskAttributes I could use the default task editor. In other
words: Is it mandatory to write my own subclass of
AbstractRepositotyTaskEditor in every case?

Thanks!

Dennis

Maarten Meijer wrote:
> Dennis R. wrote:
>> Hello everyone,
>>
>> I'm implementing a new connector for the origo project (at
>> origo.ethz.ch) but I have trouble displaying my tasks in the task editor.
> You may find useful the Repository spy, Properties View for repository,
> task and category as now part of the sandbox. See bug 208275: Task,
> Category and Repository should fill the standard Properties view:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=208275
>> The connector is currently in a very early stage and I'm trying to
>> display existing tasks via the "Open Repository Tasks" command
>> (available in the context menu of the repository) in the task editor
>> (web view already works if getTaskDataHandler from the repository
>> connector returns null). Whenever I do this I get an
>> AssertionFailedException in
>> org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695).
>> Attached you can find the complete stacktrace.
>> I did the mapping from my task attributes to TaskData like that (to
>> tell the UI where to display what):
>> data.setAttributeValue(RepositoryTaskAttribute.<attribute_name >,
>> <value>);
>>
>> Do you have any idea why this does not work? What did I miss?
>>
>> After it works with the default editor, I'd like to create my own
>> editor, or extend the existing - Is there somewhere a description/
>> howto available about that?
> Please refer to http://wiki.eclipse.org/Mylyn_Integrator_Reference
>
>>
>>
Re: Unable to display task editor in connector [message #585119 is a reply to message #37141] Sat, 24 November 2007 18:50 Go to previous message
Robert Elves is currently offline Robert ElvesFriend
Messages: 87
Registered: July 2009
Member
Dennis,

I've added another section to 2.8
( http://wiki.eclipse.org/Mylyn_Integrator_Reference#Task_edit or)
describing the steps required to add rich editor support for new
connectors. In short, it is required to implement your own editor but it
is relatively straight forward. If I've missed something in my
description, don't hesitate to ask for clarification and we will build
up that section of the wiki.

There is another option, that is to open your tasks via a browser page
if they are being served vi the web but I've glossed over that option in
the current documentation. Let me know if this is an option for you and
we can expand on that.

-Rob


Dennis R. wrote:
> Hi Maarten,
>
> Thanks for your link. I already looked at the wiki (specifically section
> 2.8). But I thought if I only use the attributes in
> RepositoryTaskAttributes I could use the default task editor. In other
> words: Is it mandatory to write my own subclass of
> AbstractRepositotyTaskEditor in every case?
>
> Thanks!
>
> Dennis
>
> Maarten Meijer wrote:
>> Dennis R. wrote:
>>> Hello everyone,
>>>
>>> I'm implementing a new connector for the origo project (at
>>> origo.ethz.ch) but I have trouble displaying my tasks in the task
>>> editor.
>> You may find useful the Repository spy, Properties View for
>> repository, task and category as now part of the sandbox. See bug
>> 208275: Task, Category and Repository should fill the standard
>> Properties view:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=208275
>>> The connector is currently in a very early stage and I'm trying to
>>> display existing tasks via the "Open Repository Tasks" command
>>> (available in the context menu of the repository) in the task editor
>>> (web view already works if getTaskDataHandler from the repository
>>> connector returns null). Whenever I do this I get an
>>> AssertionFailedException in
>>> org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695).
>>> Attached you can find the complete stacktrace.
>>> I did the mapping from my task attributes to TaskData like that (to
>>> tell the UI where to display what):
>>> data.setAttributeValue(RepositoryTaskAttribute.<attribute_name >,
>>> <value>);
>>>
>>> Do you have any idea why this does not work? What did I miss?
>>>
>>> After it works with the default editor, I'd like to create my own
>>> editor, or extend the existing - Is there somewhere a description/
>>> howto available about that?
>> Please refer to http://wiki.eclipse.org/Mylyn_Integrator_Reference
>>
>>>
>>>
Re: Unable to display task editor in connector [message #585213 is a reply to message #37243] Mon, 26 November 2007 11:46 Go to previous message
Eclipse UserFriend
Originally posted by: googelybear.gmail.com

Hi Rob,

Thanks a lot for the addition, I now got a very basic version working
which uses the existing fields (RepositoryTaskAttribute.* constants). I
will now go and figure out how to customize the task editor to display
additional connector-specific data.
I would very much like to use the Eclipse UI to display tasks.
Nonetheless I will have a look at web integration (maybe I will make it
an option).

Dennis

Robert Elves wrote:
> Dennis,
>
> I've added another section to 2.8
> ( http://wiki.eclipse.org/Mylyn_Integrator_Reference#Task_edit or)
> describing the steps required to add rich editor support for new
> connectors. In short, it is required to implement your own editor but it
> is relatively straight forward. If I've missed something in my
> description, don't hesitate to ask for clarification and we will build
> up that section of the wiki.
>
> There is another option, that is to open your tasks via a browser page
> if they are being served vi the web but I've glossed over that option in
> the current documentation. Let me know if this is an option for you and
> we can expand on that.
>
> -Rob
>
>
> Dennis R. wrote:
>> Hi Maarten,
>>
>> Thanks for your link. I already looked at the wiki (specifically
>> section 2.8). But I thought if I only use the attributes in
>> RepositoryTaskAttributes I could use the default task editor. In other
>> words: Is it mandatory to write my own subclass of
>> AbstractRepositotyTaskEditor in every case?
>>
>> Thanks!
>>
>> Dennis
>>
>> Maarten Meijer wrote:
>>> Dennis R. wrote:
>>>> Hello everyone,
>>>>
>>>> I'm implementing a new connector for the origo project (at
>>>> origo.ethz.ch) but I have trouble displaying my tasks in the task
>>>> editor.
>>> You may find useful the Repository spy, Properties View for
>>> repository, task and category as now part of the sandbox. See bug
>>> 208275: Task, Category and Repository should fill the standard
>>> Properties view:
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=208275
>>>> The connector is currently in a very early stage and I'm trying to
>>>> display existing tasks via the "Open Repository Tasks" command
>>>> (available in the context menu of the repository) in the task editor
>>>> (web view already works if getTaskDataHandler from the repository
>>>> connector returns null). Whenever I do this I get an
>>>> AssertionFailedException in
>>>> org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:695).
>>>> Attached you can find the complete stacktrace.
>>>> I did the mapping from my task attributes to TaskData like that (to
>>>> tell the UI where to display what):
>>>> data.setAttributeValue(RepositoryTaskAttribute.<attribute_name >,
>>>> <value>);
>>>>
>>>> Do you have any idea why this does not work? What did I miss?
>>>>
>>>> After it works with the default editor, I'd like to create my own
>>>> editor, or extend the existing - Is there somewhere a description/
>>>> howto available about that?
>>> Please refer to http://wiki.eclipse.org/Mylyn_Integrator_Reference
>>>
>>>>
>>>>
Previous Topic:Bugzilla and "local repository" trouble
Next Topic:Removing a Task Repository
Goto Forum:
  


Current Time: Fri Apr 19 14:18:55 GMT 2024

Powered by FUDForum. Page generated in 0.02692 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top