why second entension point [message #83264] |
Thu, 26 June 2003 13:31  |
Eclipse User |
|
|
|
Originally posted by: bhaskar.calavista.com
Hi all,
I just tried the sample view plugin which is provided by the Eclipse
itself. The plugin.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<plugin
id="test"
name="test Plug-in"
version="1.0.0"
provider-name=""
class="test.testPlugin">
<runtime>
<library name="test.jar"/>
</runtime>
<requires>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.ui"/>
</requires>
<extension
point="org.eclipse.ui.views">
<category
name="Sample Category"
id="test">
</category>
<view
name="Sample View"
icon="icons/sample.gif"
category="test"
class="test.views.SampleView"
id="test.views.SampleView">
</view>
</extension>
<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="test.views.SampleView">
</view>
</perspectiveExtension>
</extension>
</plugin>
As u can see there are two extension points. What is the need for the
second one (perspectiveExtensions) because when I am removing this second
one there is no effect on the plugin. Also if I change the relationship to
any other (left, top, bottom) then also there is no effect. Why is this so?
I have already read the definition of the perspectiveExtensions Extension
point and I know that it is used to enhance (or work on) the previous
plugins.
Thanks,
Bhaskar
|
|
|
Re: why second entension point [message #87496 is a reply to message #83264] |
Wed, 02 July 2003 12:09  |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
The perspectiveExtensions extension point is used to add things to
perspetives defined by other plugins. In the sample, it is adding the
sample view to the resources perspective.
--
Bhaskat wrote:
> Hi all,
> I just tried the sample view plugin which is provided by the Eclipse
> itself. The plugin.xml looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <plugin
> id="test"
> name="test Plug-in"
> version="1.0.0"
> provider-name=""
> class="test.testPlugin">
>
> <runtime>
> <library name="test.jar"/>
> </runtime>
> <requires>
> <import plugin="org.eclipse.core.resources"/>
> <import plugin="org.eclipse.ui"/>
> </requires>
>
>
> <extension
> point="org.eclipse.ui.views">
> <category
> name="Sample Category"
> id="test">
> </category>
> <view
> name="Sample View"
> icon="icons/sample.gif"
> category="test"
> class="test.views.SampleView"
> id="test.views.SampleView">
> </view>
> </extension>
>
> <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="test.views.SampleView">
> </view>
> </perspectiveExtension>
> </extension>
> </plugin>
>
>
> As u can see there are two extension points. What is the need for the
> second one (perspectiveExtensions) because when I am removing this second
> one there is no effect on the plugin. Also if I change the relationship to
> any other (left, top, bottom) then also there is no effect. Why is this so?
> I have already read the definition of the perspectiveExtensions Extension
> point and I know that it is used to enhance (or work on) the previous
> plugins.
>
> Thanks,
> Bhaskar
>
|
|
|
Powered by
FUDForum. Page generated in 0.03545 seconds