Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » How to support RepositoryAttachementEditorInput
How to support RepositoryAttachementEditorInput [message #46099] Thu, 27 March 2008 16:23 Go to next message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
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 16:46 Go to previous messageGo to next message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 504
Registered: July 2009
Senior Member
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 20:09 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
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 16:46 Go to previous message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 504
Registered: July 2009
Senior Member
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 20:09 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
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: Sat Apr 20 04:27:38 GMT 2024

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

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

Back to the top