Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Editor extensions(Editor extensions)
Editor extensions [message #974725] Wed, 07 November 2012 09:21 Go to next message
preeti baviskar is currently offline preeti baviskar
Messages: 11
Registered: July 2012
Junior Member
Hi,
I have two separate plugins which has editor org.eclipse.ui.editor as extension.
Both editors has only one extensions 'GIdentifiable' in 'Extension Elements Details'.

('GIdentifiable' is an Interface)

On doubleclick of file, I need to check few conditions and then need to decide in which editor file should open.

How to do this?

Currenly its opening in editor-plugin which is on top in product depencency.

Could someone help me, please ?

Thanks,
Preeti
Re: Editor extensions [message #976308 is a reply to message #974725] Thu, 08 November 2012 13:30 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 07.11.2012 10:21, preeti baviskar wrote:
> Hi,
> I have two separate plugins which has editor org.eclipse.ui.editor as
> extension.
> Both editors has only one extensions 'GIdentifiable' in 'Extension
> Elements Details'.
>
> ('GIdentifiable' is an Interface)
>
> On doubleclick of file, I need to check few conditions and then need
> to decide in which editor file should open.
>
> How to do this?
>
> Currenly its opening in editor-plugin which is on top in product
> depencency.
>
> Could someone help me, please ?

Two possible solutions:

1) use the 'org.eclipse.ui.editors' extension point to contribute a
launcher. That launcher could then make the decision and open the
preferred editor.

2) see
help.eclipse.org/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_ui_ide_editorAssociationOverride.html

Dani
> Thanks,
> Preeti
Re: Editor extensions [message #977401 is a reply to message #976308] Fri, 09 November 2012 08:55 Go to previous message
preeti baviskar is currently offline preeti baviskar
Messages: 11
Registered: July 2012
Junior Member
Thanks for the reply Dani.
Can you littlebit in detail?

Thanks,
Preeti
Previous Topic:two instances of file opened in editor
Next Topic:general approach for "conflicting dependency" problem on updating plugins
Goto Forum:
  


Current Time: Tue Oct 21 07:15:22 GMT 2014

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

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