Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to run an Editor program
How to run an Editor program [message #225226] Fri, 27 October 2006 05:35 Go to next message
Eclipse UserFriend
Originally posted by: swetha.atc.tcs.co.in

HI

I want to know how to view the output when a class that extends EditorPart
is run...also the contents that are to be put in Plugin.xml for a editor,
where is the editor displayed after running the program as a new Eclipse
Application.
Re: How to run an Editor program [message #225230 is a reply to message #225226] Fri, 27 October 2006 05:40 Go to previous messageGo to next message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Hi, when you are configuring an Editor in your plugin.xml file. You have to
specify file extension or file name for which yours editor will be opened.

In new eclipse put File->New->New file

HTH

J.C.

>
> HI
> I want to know how to view the output when a class that extends EditorPart
> is run...also the contents that are to be put in Plugin.xml for a editor,
> where is the editor displayed after running the program as a new Eclipse
> Application.
>
Re: How to run an Editor program [message #225233 is a reply to message #225230] Fri, 27 October 2006 08:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: swetha.atc.tcs.co.in

Hi

This is what is in my Plugin.xml........I used "graph" as the
extension..and then trifed File->New->ile ..created a new file with
extension as .graph ....but couldnt get anything...

Should I run the program as a new application and then try
File->New->File in that new window ...if that is the case ,I do not see
any projects to select from in the NewFile wizard.


<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
ratio="0.5"
relative="org.eclipse.ui.views.TaskList"
relationship="right"
id="gefellipse.views.SampleView">
</view>
</perspectiveExtension>
</extension>
<extension
point="org.eclipse.ui.editors">
<editor
name="Sample Palette"
icon="icons/sample.gif"
extensions="graph"
class="example1.views.GraphEditor"
id="example1.views.GraphEditor"

contributorClass="example1.views.GraphEditorActionBarContributor ">
</editor>
</extension>
</plugin>
Re: How to run an Editor program [message #225236 is a reply to message #225233] Fri, 27 October 2006 08:49 Go to previous message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Try to do this:
click on the file you want to open with mouse right button.
Then select Open_with->Your_editor
Previous Topic:Coordinate types
Next Topic:Simple Editor Program code
Goto Forum:
  


Current Time: Mon Sep 23 02:38:07 GMT 2024

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

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

Back to the top