Associating extentions with editor [message #203903] |
Mon, 28 November 2005 22:40 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03739 seconds