Home » Eclipse Projects » GEF » Graphical Editor as a view
Graphical Editor as a view [message #231274] |
Thu, 01 March 2007 21:38 |
Eclipse User |
|
|
|
Originally posted by: kathir.atc.tcs.com
Hi,
I currently extend ViewPart to create the view for my contents. I would
like to extend GraphicalEditor since GraphicalEditor provides useful
action for my app. I use eclipse 3.3
1. Is it possible to add the graphical editor within a View. When i
tried this, i could see the View available through the show view menu.
2. Is is possible to add a graphicaleditor without a extension. I just
need only one instance of this editor (as a view).
Thanks in advance.
Kathir.
|
|
| |
Re: Graphical Editor as a view [message #232384 is a reply to message #231458] |
Thu, 29 March 2007 18:07 |
Eclipse User |
|
|
|
Originally posted by: kathir.atc.tcs.com
Hi Anthony,
I looked at the source code and examples. Actually i am looking at a
different thing here.
I would like to use GraphicalEditor to create my View. But for this i
need to give an extension .shapes so every time there is a file opened
with this extension my GraphicalEditor opens.
I would just like to use the functionalities of the GraphicalEditor but
i want it to have it as a view inside my application.
If there is a specific package i need to look at the GEF source, please
do mention that !
BR,
Kathir.
Anthony Hunter wrote:
> Hi Kathir,
>
> Review the GEF source code and examples, both the palette and outline views
> are GEF based views.
>
> Cheers...
> Anthony
>
>
> "kathir" <kathir@atc.tcs.com> wrote in message
> news:es7h4l$l35$1@utils.eclipse.org...
>
>> Hi,
>> I currently extend ViewPart to create the view for my contents. I would
>> like to extend GraphicalEditor since GraphicalEditor provides useful
>> action for my app. I use eclipse 3.3
>>
>> 1. Is it possible to add the graphical editor within a View. When i tried
>> this, i could see the View available through the show view menu.
>>
>> 2. Is is possible to add a graphicaleditor without a extension. I just
>> need only one instance of this editor (as a view).
>>
>> Thanks in advance.
>>
>> Kathir.
>>
>
>
>
|
|
|
Re: Graphical Editor as a view [message #232398 is a reply to message #232384] |
Thu, 29 March 2007 23:14 |
Eclipse User |
|
|
|
Originally posted by: kathir.atc.tcs.com
More detailed !
<extension
point="org.eclipse.ui.views">
<category
name="MyCategory"
id="MyCat">
</category>
<view
category="MyCat"
class="com.mycat.MyEditor"
icon="icons/sample.gif"
id="com.mycat.MyEditor"
name="My Editor ">
</view>
</extension>
This is what i have in my plugin.xml file. The com.mycat.MyEditor
extends GraphicalEditor and it throws ClasscastExcpetion. This used to
work for me in eclipse 3.0, now i am using 3.3. Is there any way to make
this work !
BR,
Kathir.
kathir wrote:
> Hi Anthony,
>
> I looked at the source code and examples. Actually i am looking at a
> different thing here.
>
> I would like to use GraphicalEditor to create my View. But for this i
> need to give an extension .shapes so every time there is a file opened
> with this extension my GraphicalEditor opens.
>
> I would just like to use the functionalities of the GraphicalEditor
> but i want it to have it as a view inside my application.
>
> If there is a specific package i need to look at the GEF source,
> please do mention that !
>
> BR,
> Kathir.
>
>
> Anthony Hunter wrote:
>> Hi Kathir,
>>
>> Review the GEF source code and examples, both the palette and outline
>> views are GEF based views.
>>
>> Cheers...
>> Anthony
>>
>>
>> "kathir" <kathir@atc.tcs.com> wrote in message
>> news:es7h4l$l35$1@utils.eclipse.org...
>>
>>> Hi,
>>> I currently extend ViewPart to create the view for my contents. I
>>> would like to extend GraphicalEditor since GraphicalEditor provides
>>> useful action for my app. I use eclipse 3.3
>>>
>>> 1. Is it possible to add the graphical editor within a View. When i
>>> tried this, i could see the View available through the show view menu.
>>>
>>> 2. Is is possible to add a graphicaleditor without a extension. I
>>> just need only one instance of this editor (as a view).
>>>
>>> Thanks in advance.
>>>
>>> Kathir.
>>
>>
>>
|
|
|
Re: Graphical Editor as a view [message #232462 is a reply to message #232398] |
Fri, 30 March 2007 20:25 |
Anthony Hunter Messages: 446 Registered: July 2009 |
Senior Member |
|
|
Hi kathir
I am not convinced this was ever possible. GraphicalEditor extends
EditorPart and the view extension point requires you extend ViewPart, hence
your ClassCastException. At the highest level, EditorPart and ViewPart have
not changed in principle since Eclipse 1.0, they are difference beasts and
not interchangeable.
Cheers...
Anthony
"kathir" <kathir@atc.tcs.com> wrote in message
news:euhh9a$jun$1@build.eclipse.org...
> More detailed !
>
> <extension
> point="org.eclipse.ui.views">
> <category
> name="MyCategory"
> id="MyCat">
> </category>
> <view
> category="MyCat"
> class="com.mycat.MyEditor"
> icon="icons/sample.gif"
> id="com.mycat.MyEditor"
> name="My Editor ">
> </view>
> </extension>
>
> This is what i have in my plugin.xml file. The com.mycat.MyEditor extends
> GraphicalEditor and it throws ClasscastExcpetion. This used to work for me
> in eclipse 3.0, now i am using 3.3. Is there any way to make this work !
>
> BR,
> Kathir.
>
>
> kathir wrote:
>> Hi Anthony,
>>
>> I looked at the source code and examples. Actually i am looking at a
>> different thing here.
>>
>> I would like to use GraphicalEditor to create my View. But for this i
>> need to give an extension .shapes so every time there is a file opened
>> with this extension my GraphicalEditor opens.
>>
>> I would just like to use the functionalities of the GraphicalEditor but i
>> want it to have it as a view inside my application.
>>
>> If there is a specific package i need to look at the GEF source, please
>> do mention that !
>>
>> BR,
>> Kathir.
>>
>>
>> Anthony Hunter wrote:
>>> Hi Kathir,
>>>
>>> Review the GEF source code and examples, both the palette and outline
>>> views are GEF based views.
>>>
>>> Cheers...
>>> Anthony
>>>
>>>
>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>> news:es7h4l$l35$1@utils.eclipse.org...
>>>
>>>> Hi,
>>>> I currently extend ViewPart to create the view for my contents. I would
>>>> like to extend GraphicalEditor since GraphicalEditor provides useful
>>>> action for my app. I use eclipse 3.3
>>>>
>>>> 1. Is it possible to add the graphical editor within a View. When i
>>>> tried this, i could see the View available through the show view menu.
>>>>
>>>> 2. Is is possible to add a graphicaleditor without a extension. I just
>>>> need only one instance of this editor (as a view).
>>>>
>>>> Thanks in advance.
>>>>
>>>> Kathir.
>>>
>>>
>>>
|
|
|
Re: Graphical Editor as a view [message #232471 is a reply to message #232462] |
Fri, 30 March 2007 21:55 |
Eclipse User |
|
|
|
Originally posted by: kathir.atc.tcs.com
Hi Anthony !
Thanks very much for the reply !
3.0 GraphicalEditor extends the EditorPart but the 3.2 GraphicalEditor
doesnt extend EditorPart it directly extends the java.lang.Object.
I am missing something very basic here !
I want to use all the benefits (like zooming and printing) of the GEF
GraphicalEditor but i want that as a view inside my rcp application.
When i use Editors extension to add the editor into the application. I
need to give an extension for the editor extension which will be invoked
everytime i create a file with the particular extension.
Is there a way to use the editor as i mentioned !
BR,
Kathir.
Anthony Hunter wrote:
> Hi kathir
>
> I am not convinced this was ever possible. GraphicalEditor extends
> EditorPart and the view extension point requires you extend ViewPart, hence
> your ClassCastException. At the highest level, EditorPart and ViewPart have
> not changed in principle since Eclipse 1.0, they are difference beasts and
> not interchangeable.
>
> Cheers...
> Anthony
>
> "kathir" <kathir@atc.tcs.com> wrote in message
> news:euhh9a$jun$1@build.eclipse.org...
>
>> More detailed !
>>
>> <extension
>> point="org.eclipse.ui.views">
>> <category
>> name="MyCategory"
>> id="MyCat">
>> </category>
>> <view
>> category="MyCat"
>> class="com.mycat.MyEditor"
>> icon="icons/sample.gif"
>> id="com.mycat.MyEditor"
>> name="My Editor ">
>> </view>
>> </extension>
>>
>> This is what i have in my plugin.xml file. The com.mycat.MyEditor extends
>> GraphicalEditor and it throws ClasscastExcpetion. This used to work for me
>> in eclipse 3.0, now i am using 3.3. Is there any way to make this work !
>>
>> BR,
>> Kathir.
>>
>>
>> kathir wrote:
>>
>>> Hi Anthony,
>>>
>>> I looked at the source code and examples. Actually i am looking at a
>>> different thing here.
>>>
>>> I would like to use GraphicalEditor to create my View. But for this i
>>> need to give an extension .shapes so every time there is a file opened
>>> with this extension my GraphicalEditor opens.
>>>
>>> I would just like to use the functionalities of the GraphicalEditor but i
>>> want it to have it as a view inside my application.
>>>
>>> If there is a specific package i need to look at the GEF source, please
>>> do mention that !
>>>
>>> BR,
>>> Kathir.
>>>
>>>
>>> Anthony Hunter wrote:
>>>
>>>> Hi Kathir,
>>>>
>>>> Review the GEF source code and examples, both the palette and outline
>>>> views are GEF based views.
>>>>
>>>> Cheers...
>>>> Anthony
>>>>
>>>>
>>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>>> news:es7h4l$l35$1@utils.eclipse.org...
>>>>
>>>>
>>>>> Hi,
>>>>> I currently extend ViewPart to create the view for my contents. I would
>>>>> like to extend GraphicalEditor since GraphicalEditor provides useful
>>>>> action for my app. I use eclipse 3.3
>>>>>
>>>>> 1. Is it possible to add the graphical editor within a View. When i
>>>>> tried this, i could see the View available through the show view menu.
>>>>>
>>>>> 2. Is is possible to add a graphicaleditor without a extension. I just
>>>>> need only one instance of this editor (as a view).
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> Kathir.
>>>>>
>>>>
>>>>
>
>
>
|
|
|
Re: Graphical Editor as a view [message #232480 is a reply to message #232471] |
Fri, 30 March 2007 22:56 |
Eclipse User |
|
|
|
Originally posted by: kathir.atc.tcs.com
kathir wrote:
> Hi Anthony !
> Thanks very much for the reply !
>
> 3.0 GraphicalEditor extends the EditorPart but the 3.2 GraphicalEditor
> doesnt extend EditorPart it directly extends the java.lang.Object.
Its not correct, when i looked at the source code, 3.2 GraphicalEditor
still extends the EditorPart - ( Somehow API documentation shows
differently - Sorry for the wrong info.
>
> I am missing something very basic here !
> I want to use all the benefits (like zooming and printing) of the GEF
> GraphicalEditor but i want that as a view inside my rcp application.
> When i use Editors extension to add the editor into the application. I
> need to give an extension for the editor extension which will be
> invoked everytime i create a file with the particular extension.
> Is there a way to use the editor as i mentioned !
>
>
> BR,
> Kathir.
>
> Anthony Hunter wrote:
>> Hi kathir
>>
>> I am not convinced this was ever possible. GraphicalEditor extends
>> EditorPart and the view extension point requires you extend ViewPart,
>> hence your ClassCastException. At the highest level, EditorPart and
>> ViewPart have not changed in principle since Eclipse 1.0, they are
>> difference beasts and not interchangeable.
>>
>> Cheers...
>> Anthony
>>
>> "kathir" <kathir@atc.tcs.com> wrote in message
>> news:euhh9a$jun$1@build.eclipse.org...
>>
>>> More detailed !
>>>
>>> <extension
>>> point="org.eclipse.ui.views">
>>> <category
>>> name="MyCategory"
>>> id="MyCat">
>>> </category>
>>> <view
>>> category="MyCat"
>>> class="com.mycat.MyEditor"
>>> icon="icons/sample.gif"
>>> id="com.mycat.MyEditor"
>>> name="My Editor ">
>>> </view>
>>> </extension>
>>>
>>> This is what i have in my plugin.xml file. The com.mycat.MyEditor
>>> extends GraphicalEditor and it throws ClasscastExcpetion. This used
>>> to work for me in eclipse 3.0, now i am using 3.3. Is there any way
>>> to make this work !
>>>
>>> BR,
>>> Kathir.
>>>
>>>
>>> kathir wrote:
>>>
>>>> Hi Anthony,
>>>>
>>>> I looked at the source code and examples. Actually i am looking at
>>>> a different thing here.
>>>>
>>>> I would like to use GraphicalEditor to create my View. But for this
>>>> i need to give an extension .shapes so every time there is a file
>>>> opened with this extension my GraphicalEditor opens.
>>>>
>>>> I would just like to use the functionalities of the GraphicalEditor
>>>> but i want it to have it as a view inside my application.
>>>>
>>>> If there is a specific package i need to look at the GEF source,
>>>> please do mention that !
>>>>
>>>> BR,
>>>> Kathir.
>>>>
>>>>
>>>> Anthony Hunter wrote:
>>>>
>>>>> Hi Kathir,
>>>>>
>>>>> Review the GEF source code and examples, both the palette and
>>>>> outline views are GEF based views.
>>>>>
>>>>> Cheers...
>>>>> Anthony
>>>>>
>>>>>
>>>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>>>> news:es7h4l$l35$1@utils.eclipse.org...
>>>>>
>>>>>
>>>>>> Hi,
>>>>>> I currently extend ViewPart to create the view for my contents. I
>>>>>> would like to extend GraphicalEditor since GraphicalEditor
>>>>>> provides useful action for my app. I use eclipse 3.3
>>>>>>
>>>>>> 1. Is it possible to add the graphical editor within a View. When
>>>>>> i tried this, i could see the View available through the show
>>>>>> view menu.
>>>>>>
>>>>>> 2. Is is possible to add a graphicaleditor without a extension. I
>>>>>> just need only one instance of this editor (as a view).
>>>>>>
>>>>>> Thanks in advance.
>>>>>>
>>>>>> Kathir.
>>>>>>
>>>>>
>>>>>
>>
>>
>>
|
|
|
Re: Graphical Editor as a view [message #232531 is a reply to message #232480] |
Mon, 02 April 2007 18:01 |
Anthony Hunter Messages: 446 Registered: July 2009 |
Senior Member |
|
|
Hi Kathir,
I checked the CVS version history and:
2.1 GraphicalEditor extends Object
3.0 GraphicalEditor extends EditorPart
3.2 GraphicalEditor extends EditorPart
No much I can offer other than the simple fact that the API in 3.x is what
it is.
You can always create a new class to put a graphical editor in a ViewPart.
Cheers...
Anthony
"kathir" <kathir@atc.tcs.com> wrote in message
news:euk4io$8tf$1@build.eclipse.org...
>
> kathir wrote:
>> Hi Anthony !
>> Thanks very much for the reply !
>>
>> 3.0 GraphicalEditor extends the EditorPart but the 3.2 GraphicalEditor
>> doesnt extend EditorPart it directly extends the java.lang.Object.
> Its not correct, when i looked at the source code, 3.2 GraphicalEditor
> still extends the EditorPart - ( Somehow API documentation shows
> differently - Sorry for the wrong info.
>>
>> I am missing something very basic here !
>> I want to use all the benefits (like zooming and printing) of the GEF
>> GraphicalEditor but i want that as a view inside my rcp application. When
>> i use Editors extension to add the editor into the application. I need to
>> give an extension for the editor extension which will be invoked
>> everytime i create a file with the particular extension.
>> Is there a way to use the editor as i mentioned !
>>
>>
>> BR,
>> Kathir.
>>
>> Anthony Hunter wrote:
>>> Hi kathir
>>>
>>> I am not convinced this was ever possible. GraphicalEditor extends
>>> EditorPart and the view extension point requires you extend ViewPart,
>>> hence your ClassCastException. At the highest level, EditorPart and
>>> ViewPart have not changed in principle since Eclipse 1.0, they are
>>> difference beasts and not interchangeable.
>>>
>>> Cheers...
>>> Anthony
>>>
>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>> news:euhh9a$jun$1@build.eclipse.org...
>>>
>>>> More detailed !
>>>>
>>>> <extension
>>>> point="org.eclipse.ui.views">
>>>> <category
>>>> name="MyCategory"
>>>> id="MyCat">
>>>> </category>
>>>> <view
>>>> category="MyCat"
>>>> class="com.mycat.MyEditor"
>>>> icon="icons/sample.gif"
>>>> id="com.mycat.MyEditor"
>>>> name="My Editor ">
>>>> </view>
>>>> </extension>
>>>>
>>>> This is what i have in my plugin.xml file. The com.mycat.MyEditor
>>>> extends GraphicalEditor and it throws ClasscastExcpetion. This used to
>>>> work for me in eclipse 3.0, now i am using 3.3. Is there any way to
>>>> make this work !
>>>>
>>>> BR,
>>>> Kathir.
>>>>
>>>>
>>>> kathir wrote:
>>>>
>>>>> Hi Anthony,
>>>>>
>>>>> I looked at the source code and examples. Actually i am looking at a
>>>>> different thing here.
>>>>>
>>>>> I would like to use GraphicalEditor to create my View. But for this i
>>>>> need to give an extension .shapes so every time there is a file opened
>>>>> with this extension my GraphicalEditor opens.
>>>>>
>>>>> I would just like to use the functionalities of the GraphicalEditor
>>>>> but i want it to have it as a view inside my application.
>>>>>
>>>>> If there is a specific package i need to look at the GEF source,
>>>>> please do mention that !
>>>>>
>>>>> BR,
>>>>> Kathir.
>>>>>
>>>>>
>>>>> Anthony Hunter wrote:
>>>>>
>>>>>> Hi Kathir,
>>>>>>
>>>>>> Review the GEF source code and examples, both the palette and outline
>>>>>> views are GEF based views.
>>>>>>
>>>>>> Cheers...
>>>>>> Anthony
>>>>>>
>>>>>>
>>>>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>>>>> news:es7h4l$l35$1@utils.eclipse.org...
>>>>>>
>>>>>>
>>>>>>> Hi,
>>>>>>> I currently extend ViewPart to create the view for my contents. I
>>>>>>> would like to extend GraphicalEditor since GraphicalEditor provides
>>>>>>> useful action for my app. I use eclipse 3.3
>>>>>>>
>>>>>>> 1. Is it possible to add the graphical editor within a View. When i
>>>>>>> tried this, i could see the View available through the show view
>>>>>>> menu.
>>>>>>>
>>>>>>> 2. Is is possible to add a graphicaleditor without a extension. I
>>>>>>> just need only one instance of this editor (as a view).
>>>>>>>
>>>>>>> Thanks in advance.
>>>>>>>
>>>>>>> Kathir.
>>>>>>>
>>>>>>
>>>>>>
>>>
>>>
>>>
|
|
|
Re: Graphical Editor as a view [message #232539 is a reply to message #232531] |
Mon, 02 April 2007 18:03 |
Anthony Hunter Messages: 446 Registered: July 2009 |
Senior Member |
|
|
Sorry Kathir:
I checked the CVS version history and:
early versions in the repository GraphicalEditor extends Object
GEF 2.1 GraphicalEditor extends EditorPart
GEF 3.0 GraphicalEditor extends EditorPart
GEF 3.2 GraphicalEditor extends EditorPart
Cheers...
Anthony
"Anthony Hunter" <anthonyh@ca.ibm.com> wrote in message
news:eurge7$8ne$1@build.eclipse.org...
> Hi Kathir,
>
> I checked the CVS version history and:
>
> 2.1 GraphicalEditor extends Object
> 3.0 GraphicalEditor extends EditorPart
> 3.2 GraphicalEditor extends EditorPart
>
> No much I can offer other than the simple fact that the API in 3.x is what
> it is.
>
> You can always create a new class to put a graphical editor in a ViewPart.
>
> Cheers...
> Anthony
>
> "kathir" <kathir@atc.tcs.com> wrote in message
> news:euk4io$8tf$1@build.eclipse.org...
>>
>> kathir wrote:
>>> Hi Anthony !
>>> Thanks very much for the reply !
>>>
>>> 3.0 GraphicalEditor extends the EditorPart but the 3.2 GraphicalEditor
>>> doesnt extend EditorPart it directly extends the java.lang.Object.
>> Its not correct, when i looked at the source code, 3.2 GraphicalEditor
>> still extends the EditorPart - ( Somehow API documentation shows
>> differently - Sorry for the wrong info.
>>>
>>> I am missing something very basic here !
>>> I want to use all the benefits (like zooming and printing) of the GEF
>>> GraphicalEditor but i want that as a view inside my rcp application.
>>> When i use Editors extension to add the editor into the application. I
>>> need to give an extension for the editor extension which will be invoked
>>> everytime i create a file with the particular extension.
>>> Is there a way to use the editor as i mentioned !
>>>
>>>
>>> BR,
>>> Kathir.
>>>
>>> Anthony Hunter wrote:
>>>> Hi kathir
>>>>
>>>> I am not convinced this was ever possible. GraphicalEditor extends
>>>> EditorPart and the view extension point requires you extend ViewPart,
>>>> hence your ClassCastException. At the highest level, EditorPart and
>>>> ViewPart have not changed in principle since Eclipse 1.0, they are
>>>> difference beasts and not interchangeable.
>>>>
>>>> Cheers...
>>>> Anthony
>>>>
>>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>>> news:euhh9a$jun$1@build.eclipse.org...
>>>>
>>>>> More detailed !
>>>>>
>>>>> <extension
>>>>> point="org.eclipse.ui.views">
>>>>> <category
>>>>> name="MyCategory"
>>>>> id="MyCat">
>>>>> </category>
>>>>> <view
>>>>> category="MyCat"
>>>>> class="com.mycat.MyEditor"
>>>>> icon="icons/sample.gif"
>>>>> id="com.mycat.MyEditor"
>>>>> name="My Editor ">
>>>>> </view>
>>>>> </extension>
>>>>>
>>>>> This is what i have in my plugin.xml file. The com.mycat.MyEditor
>>>>> extends GraphicalEditor and it throws ClasscastExcpetion. This used to
>>>>> work for me in eclipse 3.0, now i am using 3.3. Is there any way to
>>>>> make this work !
>>>>>
>>>>> BR,
>>>>> Kathir.
>>>>>
>>>>>
>>>>> kathir wrote:
>>>>>
>>>>>> Hi Anthony,
>>>>>>
>>>>>> I looked at the source code and examples. Actually i am looking at a
>>>>>> different thing here.
>>>>>>
>>>>>> I would like to use GraphicalEditor to create my View. But for this i
>>>>>> need to give an extension .shapes so every time there is a file
>>>>>> opened with this extension my GraphicalEditor opens.
>>>>>>
>>>>>> I would just like to use the functionalities of the GraphicalEditor
>>>>>> but i want it to have it as a view inside my application.
>>>>>>
>>>>>> If there is a specific package i need to look at the GEF source,
>>>>>> please do mention that !
>>>>>>
>>>>>> BR,
>>>>>> Kathir.
>>>>>>
>>>>>>
>>>>>> Anthony Hunter wrote:
>>>>>>
>>>>>>> Hi Kathir,
>>>>>>>
>>>>>>> Review the GEF source code and examples, both the palette and
>>>>>>> outline views are GEF based views.
>>>>>>>
>>>>>>> Cheers...
>>>>>>> Anthony
>>>>>>>
>>>>>>>
>>>>>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>>>>>> news:es7h4l$l35$1@utils.eclipse.org...
>>>>>>>
>>>>>>>
>>>>>>>> Hi,
>>>>>>>> I currently extend ViewPart to create the view for my contents. I
>>>>>>>> would like to extend GraphicalEditor since GraphicalEditor provides
>>>>>>>> useful action for my app. I use eclipse 3.3
>>>>>>>>
>>>>>>>> 1. Is it possible to add the graphical editor within a View. When i
>>>>>>>> tried this, i could see the View available through the show view
>>>>>>>> menu.
>>>>>>>>
>>>>>>>> 2. Is is possible to add a graphicaleditor without a extension. I
>>>>>>>> just need only one instance of this editor (as a view).
>>>>>>>>
>>>>>>>> Thanks in advance.
>>>>>>>>
>>>>>>>> Kathir.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>
>>>>
>>>>
>
>
|
|
|
Re: Graphical Editor as a view [message #232558 is a reply to message #232539] |
Mon, 02 April 2007 20:38 |
Eclipse User |
|
|
|
Originally posted by: kathir.atc.tcs.com
Thanks Anthony !
The 3.2 Javadoc confused me with the "GraphicalEditor extends JavaObject"
Thanks & BR,
Kathir.
Anthony Hunter wrote:
> Sorry Kathir:
>
> I checked the CVS version history and:
>
> early versions in the repository GraphicalEditor extends Object
> GEF 2.1 GraphicalEditor extends EditorPart
> GEF 3.0 GraphicalEditor extends EditorPart
> GEF 3.2 GraphicalEditor extends EditorPart
>
> Cheers...
> Anthony
>
> "Anthony Hunter" <anthonyh@ca.ibm.com> wrote in message
> news:eurge7$8ne$1@build.eclipse.org...
>
>> Hi Kathir,
>>
>> I checked the CVS version history and:
>>
>> 2.1 GraphicalEditor extends Object
>> 3.0 GraphicalEditor extends EditorPart
>> 3.2 GraphicalEditor extends EditorPart
>>
>> No much I can offer other than the simple fact that the API in 3.x is what
>> it is.
>>
>> You can always create a new class to put a graphical editor in a ViewPart.
>>
>> Cheers...
>> Anthony
>>
>> "kathir" <kathir@atc.tcs.com> wrote in message
>> news:euk4io$8tf$1@build.eclipse.org...
>>
>>> kathir wrote:
>>>
>>>> Hi Anthony !
>>>> Thanks very much for the reply !
>>>>
>>>> 3.0 GraphicalEditor extends the EditorPart but the 3.2 GraphicalEditor
>>>> doesnt extend EditorPart it directly extends the java.lang.Object.
>>>>
>>> Its not correct, when i looked at the source code, 3.2 GraphicalEditor
>>> still extends the EditorPart - ( Somehow API documentation shows
>>> differently - Sorry for the wrong info.
>>>
>>>> I am missing something very basic here !
>>>> I want to use all the benefits (like zooming and printing) of the GEF
>>>> GraphicalEditor but i want that as a view inside my rcp application.
>>>> When i use Editors extension to add the editor into the application. I
>>>> need to give an extension for the editor extension which will be invoked
>>>> everytime i create a file with the particular extension.
>>>> Is there a way to use the editor as i mentioned !
>>>>
>>>>
>>>> BR,
>>>> Kathir.
>>>>
>>>> Anthony Hunter wrote:
>>>>
>>>>> Hi kathir
>>>>>
>>>>> I am not convinced this was ever possible. GraphicalEditor extends
>>>>> EditorPart and the view extension point requires you extend ViewPart,
>>>>> hence your ClassCastException. At the highest level, EditorPart and
>>>>> ViewPart have not changed in principle since Eclipse 1.0, they are
>>>>> difference beasts and not interchangeable.
>>>>>
>>>>> Cheers...
>>>>> Anthony
>>>>>
>>>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>>>> news:euhh9a$jun$1@build.eclipse.org...
>>>>>
>>>>>
>>>>>> More detailed !
>>>>>>
>>>>>> <extension
>>>>>> point="org.eclipse.ui.views">
>>>>>> <category
>>>>>> name="MyCategory"
>>>>>> id="MyCat">
>>>>>> </category>
>>>>>> <view
>>>>>> category="MyCat"
>>>>>> class="com.mycat.MyEditor"
>>>>>> icon="icons/sample.gif"
>>>>>> id="com.mycat.MyEditor"
>>>>>> name="My Editor ">
>>>>>> </view>
>>>>>> </extension>
>>>>>>
>>>>>> This is what i have in my plugin.xml file. The com.mycat.MyEditor
>>>>>> extends GraphicalEditor and it throws ClasscastExcpetion. This used to
>>>>>> work for me in eclipse 3.0, now i am using 3.3. Is there any way to
>>>>>> make this work !
>>>>>>
>>>>>> BR,
>>>>>> Kathir.
>>>>>>
>>>>>>
>>>>>> kathir wrote:
>>>>>>
>>>>>>
>>>>>>> Hi Anthony,
>>>>>>>
>>>>>>> I looked at the source code and examples. Actually i am looking at a
>>>>>>> different thing here.
>>>>>>>
>>>>>>> I would like to use GraphicalEditor to create my View. But for this i
>>>>>>> need to give an extension .shapes so every time there is a file
>>>>>>> opened with this extension my GraphicalEditor opens.
>>>>>>>
>>>>>>> I would just like to use the functionalities of the GraphicalEditor
>>>>>>> but i want it to have it as a view inside my application.
>>>>>>>
>>>>>>> If there is a specific package i need to look at the GEF source,
>>>>>>> please do mention that !
>>>>>>>
>>>>>>> BR,
>>>>>>> Kathir.
>>>>>>>
>>>>>>>
>>>>>>> Anthony Hunter wrote:
>>>>>>>
>>>>>>>
>>>>>>>> Hi Kathir,
>>>>>>>>
>>>>>>>> Review the GEF source code and examples, both the palette and
>>>>>>>> outline views are GEF based views.
>>>>>>>>
>>>>>>>> Cheers...
>>>>>>>> Anthony
>>>>>>>>
>>>>>>>>
>>>>>>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>>>>>>> news:es7h4l$l35$1@utils.eclipse.org...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>> I currently extend ViewPart to create the view for my contents. I
>>>>>>>>> would like to extend GraphicalEditor since GraphicalEditor provides
>>>>>>>>> useful action for my app. I use eclipse 3.3
>>>>>>>>>
>>>>>>>>> 1. Is it possible to add the graphical editor within a View. When i
>>>>>>>>> tried this, i could see the View available through the show view
>>>>>>>>> menu.
>>>>>>>>>
>>>>>>>>> 2. Is is possible to add a graphicaleditor without a extension. I
>>>>>>>>> just need only one instance of this editor (as a view).
>>>>>>>>>
>>>>>>>>> Thanks in advance.
>>>>>>>>>
>>>>>>>>> Kathir.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>
>>
>
>
>
|
|
|
Re: Graphical Editor as a view [message #232679 is a reply to message #232558] |
Wed, 04 April 2007 19:31 |
Anthony Hunter Messages: 446 Registered: July 2009 |
Senior Member |
|
|
Hi, just to close, I raised:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=181043
Cheers...
Anthony
"kathir" <kathir@atc.tcs.com> wrote in message
news:eurpjc$mg9$1@build.eclipse.org...
> Thanks Anthony !
>
> The 3.2 Javadoc confused me with the "GraphicalEditor extends JavaObject"
>
> Thanks & BR,
> Kathir.
>
>
> Anthony Hunter wrote:
>> Sorry Kathir:
>>
>> I checked the CVS version history and:
>>
>> early versions in the repository GraphicalEditor extends Object
>> GEF 2.1 GraphicalEditor extends EditorPart
>> GEF 3.0 GraphicalEditor extends EditorPart
>> GEF 3.2 GraphicalEditor extends EditorPart
>>
>> Cheers...
>> Anthony
>>
>> "Anthony Hunter" <anthonyh@ca.ibm.com> wrote in message
>> news:eurge7$8ne$1@build.eclipse.org...
>>
>>> Hi Kathir,
>>>
>>> I checked the CVS version history and:
>>>
>>> 2.1 GraphicalEditor extends Object
>>> 3.0 GraphicalEditor extends EditorPart
>>> 3.2 GraphicalEditor extends EditorPart
>>>
>>> No much I can offer other than the simple fact that the API in 3.x is
>>> what it is.
>>>
>>> You can always create a new class to put a graphical editor in a
>>> ViewPart.
>>>
>>> Cheers...
>>> Anthony
>>>
>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>> news:euk4io$8tf$1@build.eclipse.org...
>>>
>>>> kathir wrote:
>>>>
>>>>> Hi Anthony !
>>>>> Thanks very much for the reply !
>>>>>
>>>>> 3.0 GraphicalEditor extends the EditorPart but the 3.2 GraphicalEditor
>>>>> doesnt extend EditorPart it directly extends the java.lang.Object.
>>>>>
>>>> Its not correct, when i looked at the source code, 3.2 GraphicalEditor
>>>> still extends the EditorPart - ( Somehow API documentation shows
>>>> differently - Sorry for the wrong info.
>>>>
>>>>> I am missing something very basic here !
>>>>> I want to use all the benefits (like zooming and printing) of the GEF
>>>>> GraphicalEditor but i want that as a view inside my rcp application.
>>>>> When i use Editors extension to add the editor into the application. I
>>>>> need to give an extension for the editor extension which will be
>>>>> invoked everytime i create a file with the particular extension.
>>>>> Is there a way to use the editor as i mentioned !
>>>>>
>>>>>
>>>>> BR,
>>>>> Kathir.
>>>>>
>>>>> Anthony Hunter wrote:
>>>>>
>>>>>> Hi kathir
>>>>>>
>>>>>> I am not convinced this was ever possible. GraphicalEditor extends
>>>>>> EditorPart and the view extension point requires you extend ViewPart,
>>>>>> hence your ClassCastException. At the highest level, EditorPart and
>>>>>> ViewPart have not changed in principle since Eclipse 1.0, they are
>>>>>> difference beasts and not interchangeable.
>>>>>>
>>>>>> Cheers...
>>>>>> Anthony
>>>>>>
>>>>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>>>>> news:euhh9a$jun$1@build.eclipse.org...
>>>>>>
>>>>>>
>>>>>>> More detailed !
>>>>>>>
>>>>>>> <extension
>>>>>>> point="org.eclipse.ui.views">
>>>>>>> <category
>>>>>>> name="MyCategory"
>>>>>>> id="MyCat">
>>>>>>> </category>
>>>>>>> <view
>>>>>>> category="MyCat"
>>>>>>> class="com.mycat.MyEditor"
>>>>>>> icon="icons/sample.gif"
>>>>>>> id="com.mycat.MyEditor"
>>>>>>> name="My Editor ">
>>>>>>> </view>
>>>>>>> </extension>
>>>>>>>
>>>>>>> This is what i have in my plugin.xml file. The com.mycat.MyEditor
>>>>>>> extends GraphicalEditor and it throws ClasscastExcpetion. This used
>>>>>>> to work for me in eclipse 3.0, now i am using 3.3. Is there any way
>>>>>>> to make this work !
>>>>>>>
>>>>>>> BR,
>>>>>>> Kathir.
>>>>>>>
>>>>>>>
>>>>>>> kathir wrote:
>>>>>>>
>>>>>>>
>>>>>>>> Hi Anthony,
>>>>>>>>
>>>>>>>> I looked at the source code and examples. Actually i am looking at
>>>>>>>> a different thing here.
>>>>>>>>
>>>>>>>> I would like to use GraphicalEditor to create my View. But for this
>>>>>>>> i need to give an extension .shapes so every time there is a file
>>>>>>>> opened with this extension my GraphicalEditor opens.
>>>>>>>>
>>>>>>>> I would just like to use the functionalities of the GraphicalEditor
>>>>>>>> but i want it to have it as a view inside my application.
>>>>>>>>
>>>>>>>> If there is a specific package i need to look at the GEF source,
>>>>>>>> please do mention that !
>>>>>>>>
>>>>>>>> BR,
>>>>>>>> Kathir.
>>>>>>>>
>>>>>>>>
>>>>>>>> Anthony Hunter wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> Hi Kathir,
>>>>>>>>>
>>>>>>>>> Review the GEF source code and examples, both the palette and
>>>>>>>>> outline views are GEF based views.
>>>>>>>>>
>>>>>>>>> Cheers...
>>>>>>>>> Anthony
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> "kathir" <kathir@atc.tcs.com> wrote in message
>>>>>>>>> news:es7h4l$l35$1@utils.eclipse.org...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>> I currently extend ViewPart to create the view for my contents. I
>>>>>>>>>> would like to extend GraphicalEditor since GraphicalEditor
>>>>>>>>>> provides useful action for my app. I use eclipse 3.3
>>>>>>>>>>
>>>>>>>>>> 1. Is it possible to add the graphical editor within a View. When
>>>>>>>>>> i tried this, i could see the View available through the show
>>>>>>>>>> view menu.
>>>>>>>>>>
>>>>>>>>>> 2. Is is possible to add a graphicaleditor without a extension. I
>>>>>>>>>> just need only one instance of this editor (as a view).
>>>>>>>>>>
>>>>>>>>>> Thanks in advance.
>>>>>>>>>>
>>>>>>>>>> Kathir.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>
>>>>>>
>>>
>>
>>
>>
|
|
|
Goto Forum:
Current Time: Mon Apr 29 17:35:55 GMT 2024
Powered by FUDForum. Page generated in 0.04891 seconds
|