Skip to main content



      Home
Home » Eclipse Projects » Mylyn » How to support RepositoryAttachementEditorInput
How to support RepositoryAttachementEditorInput [message #46099] Thu, 27 March 2008 12:23 Go to next message
Eclipse UserFriend
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 #46130 is a reply to message #46099] Thu, 27 March 2008 12:46 Go to previous messageGo to next message
Eclipse UserFriend
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 #46191 is a reply to message #46130] Thu, 27 March 2008 16:09 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Large refactoring
Next Topic:JIRA custom attributes
Goto Forum:
  


Current Time: Thu May 08 17:03:51 EDT 2025

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

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

Back to the top