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 12:23 Go to next message
Nicolas Richeton is currently offline Nicolas Richeton
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 12:46 Go to previous messageGo to next message
Eugene Kuleshov is currently offline Eugene Kuleshov
Messages: 505
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 16:09 Go to previous message
Nicolas Richeton is currently offline Nicolas Richeton
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 12:46 Go to previous message
Eugene Kuleshov is currently offline Eugene Kuleshov
Messages: 505
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 16:09 Go to previous message
Nicolas Richeton is currently offline Nicolas Richeton
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:JIRA custom attributes
Next Topic:JIRA custom attributes
Goto Forum:
  


Current Time: Fri Apr 18 16:49:45 EDT 2014

Powered by FUDForum. Page generated in 0.03232 seconds