How to support RepositoryAttachementEditorInput [message #46099] |
Thu, 27 March 2008 12:23  |
Eclipse User |
|
|
|
Hi,
How can I support Mylyn's RepositoryAttachementEditorInput in a custom
editor ? (This input is used to open an attached file in a task)
My editor can open an IFileEditorInput.
Do I need to explicitly support RepositoryAttachementEditorInput or can
it be adapted to another input type using getAdaptable() ?
Thanks,
--
Nicolas
|
|
|
|
Re: How to support RepositoryAttachementEditorInput [message #46191 is a reply to message #46130] |
Thu, 27 March 2008 16:09  |
Eclipse User |
|
|
|
Thanks, I switched to IStorageEditorInput, and it worked.
--
Nicolas
Eugene Kuleshov a écrit :
> Nicolas Richeton wrote:
>> How can I support Mylyn's RepositoryAttachementEditorInput in a custom
>> editor ? (This input is used to open an attached file in a task)
>>
>> My editor can open an IFileEditorInput.
>>
>> Do I need to explicitly support RepositoryAttachementEditorInput or
>> can it be adapted to another input type using getAdaptable() ?
> Nicolas, I would strongly recommend to use IStorageEditorInput as a
> base interface for any custom editor inputs. In that case you would be
> able to work with content that is not represented with local files or
> resources (that include stuff from task attachments and also from
> version control systems, like things you can open from CVS Repositories
> or History views). RepositoryAttachmentEditorInput implements
> IStorageEditorInput.
>
> regards,
> Eugene
>
|
|
|
Re: How to support RepositoryAttachementEditorInput [message #588720 is a reply to message #46099] |
Thu, 27 March 2008 12:46  |
Eclipse User |
|
|
|
Nicolas Richeton wrote:
> How can I support Mylyn's RepositoryAttachementEditorInput in a custom
> editor ? (This input is used to open an attached file in a task)
>
> My editor can open an IFileEditorInput.
>
> Do I need to explicitly support RepositoryAttachementEditorInput or
> can it be adapted to another input type using getAdaptable() ?
Nicolas, I would strongly recommend to use IStorageEditorInput as a
base interface for any custom editor inputs. In that case you would be
able to work with content that is not represented with local files or
resources (that include stuff from task attachments and also from
version control systems, like things you can open from CVS Repositories
or History views). RepositoryAttachmentEditorInput implements
IStorageEditorInput.
regards,
Eugene
|
|
|
Re: How to support RepositoryAttachementEditorInput [message #588743 is a reply to message #46130] |
Thu, 27 March 2008 16:09  |
Eclipse User |
|
|
|
Thanks, I switched to IStorageEditorInput, and it worked.
--
Nicolas
Eugene Kuleshov a écrit :
> Nicolas Richeton wrote:
>> How can I support Mylyn's RepositoryAttachementEditorInput in a custom
>> editor ? (This input is used to open an attached file in a task)
>>
>> My editor can open an IFileEditorInput.
>>
>> Do I need to explicitly support RepositoryAttachementEditorInput or
>> can it be adapted to another input type using getAdaptable() ?
> Nicolas, I would strongly recommend to use IStorageEditorInput as a
> base interface for any custom editor inputs. In that case you would be
> able to work with content that is not represented with local files or
> resources (that include stuff from task attachments and also from
> version control systems, like things you can open from CVS Repositories
> or History views). RepositoryAttachmentEditorInput implements
> IStorageEditorInput.
>
> regards,
> Eugene
>
|
|
|
Powered by
FUDForum. Page generated in 0.05260 seconds