Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Associating extentions with editor
Associating extentions with editor [message #203903] Mon, 28 November 2005 22:40 Go to next message
Eclipse UserFriend
Originally posted by: FR.spamfree_zone.com

The shapes example mentions (somewhere in the code) that it associates
".shapes" with the editor in the plugin.xml but the plugin.xml file that is
supplied makes no mention of it. Where is this association done? I have a
feeling my prog is blowing up when I open a new file because it can't find
the editor for the .shapes file types.

TIA,

Fred
Re: Associating extentions with editor [message #203926 is a reply to message #203903] Tue, 29 November 2005 10:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lynchjack.hotmail.com

It's done in the extensions attribute in the editor extension point in
plugin.xml

Hope this helps,
Jack

"FR" <FR@spamfree_zone.com> wrote in message
news:dmg110$eus$1@news.eclipse.org...
> The shapes example mentions (somewhere in the code) that it associates
> ".shapes" with the editor in the plugin.xml but the plugin.xml file that
is
> supplied makes no mention of it. Where is this association done? I have a
> feeling my prog is blowing up when I open a new file because it can't find
> the editor for the .shapes file types.
>
> TIA,
>
> Fred
>
>
Re: Associating extentions with editor [message #203961 is a reply to message #203903] Tue, 29 November 2005 13:51 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

Extract from plugin.xml:

<extension point="org.eclipse.ui.editors">
<editor name="GEF Shapes Example"
extensions="shapes"
icon="shapes.gif"
default="true"
class="org.eclipse.gef.examples.shapes.ShapesEditor"

contributorClass="org.eclipse.gef.examples.shapes.ShapesEditorActionBarContr
ibutor"
id="GEF Shapes Editor">
</editor>
</extension>

"FR" <FR@spamfree_zone.com> wrote in message
news:dmg110$eus$1@news.eclipse.org...
> The shapes example mentions (somewhere in the code) that it associates
> ".shapes" with the editor in the plugin.xml but the plugin.xml file that
is
> supplied makes no mention of it. Where is this association done? I have a
> feeling my prog is blowing up when I open a new file because it can't find
> the editor for the .shapes file types.
>
> TIA,
>
> Fred
>
>
Previous Topic:Displaying Editor
Next Topic:GEF EditingDomain versus EMF.Edit EditDomain
Goto Forum:
  


Current Time: Tue Sep 24 04:07:11 GMT 2024

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

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

Back to the top