Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Questions on the org.eclipse.core.filebuffers.documentCreation extension point
Questions on the org.eclipse.core.filebuffers.documentCreation extension point [message #213324] Fri, 19 March 2004 01:05 Go to next message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

Greetings,

(this is about doing Plugin development for 3.0M7)

I'm curious about how this extension point is meant to be used. The
documentation on it is currently a little spare.

My question is this: what is supposed to happen if two plugins claim
the same file extension? I'm working on a specialized subclass of
CompilationUnitEditor and I need my specialized Document class to
back the editor.

Experimenting around, I've found that my DocumentFactory "wins" if no
editors were opened during workbench startup, but the JDT
JavaDocumentFactory "wins" if there were some (either my Editor or the
JDT CompilationUnitEditor).


Any clarification on what's supposed to happen would be very helpful.

I'm also open to other suggestions on how to get the framework to create
and use my own Document objects for local .java files.

Thanks,
mike

--
http://zclipse.org
Re: Questions on the org.eclipse.core.filebuffers.documentCreation extension point [message #213489 is a reply to message #213324] Fri, 19 March 2004 08:45 Go to previous messageGo to next message
Eclipse UserFriend
See org.eclipse.core.internal.filebuffers.ExtensionsRegistry.

It does not look like a particular order is ensured, but always the
first element from a HashMap is returned. If this is a problem for you,
you should probably file a bug report against platform-text.

-tom

Michael R Head wrote:
> Greetings,
>
> (this is about doing Plugin development for 3.0M7)
>
> I'm curious about how this extension point is meant to be used. The
> documentation on it is currently a little spare.
>
> My question is this: what is supposed to happen if two plugins claim
> the same file extension? I'm working on a specialized subclass of
> CompilationUnitEditor and I need my specialized Document class to
> back the editor.
>
> Experimenting around, I've found that my DocumentFactory "wins" if no
> editors were opened during workbench startup, but the JDT
> JavaDocumentFactory "wins" if there were some (either my Editor or the
> JDT CompilationUnitEditor).
>
>
> Any clarification on what's supposed to happen would be very helpful.
>
> I'm also open to other suggestions on how to get the framework to create
> and use my own Document objects for local .java files.
>
> Thanks,
> mike
>
Re: Questions on the org.eclipse.core.filebuffers.documentCreation extension point [message #213692 is a reply to message #213489] Fri, 19 March 2004 14:23 Go to previous message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

On Fri, 19 Mar 2004 14:45:19 +0100, Tom Eicher wrote:

> See org.eclipse.core.internal.filebuffers.ExtensionsRegistry.

Right.

> It does not look like a particular order is ensured, but always the
> first element from a HashMap is returned. If this is a problem for you,
> you should probably file a bug report against platform-text.

I think I will. The behavior should at least be defined or documented.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=55415

> -tom
>

--
http://zclipse.org
Previous Topic:Content Formatting
Next Topic:Listen to changes in a PropertySheet
Goto Forum:
  


Current Time: Thu Jun 05 02:26:46 EDT 2025

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

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

Back to the top