Home » Eclipse Projects » Rich Client Platform (RCP) » Disable RCP Preferences, ActionSets, Views
Disable RCP Preferences, ActionSets, Views [message #448684] |
Fri, 28 April 2006 04:54  |
Eclipse User |
|
|
|
Originally posted by: rpitt.ivis.com
Hi,
We have an RCP application that is quite basic and we there are some things
in the RCP that we don't use.
Therefore there are preferences, actionsets, views and perspectives that we
don't want visible.
To remove them from our application, we go into the relevant RCP jars and
comment out parts of the plugin.xml.
For example, we don't use the Resource perspective and so comment out this
in the plugin.xml of org.eclipse.ui.ide:
------------------------------------------------------------ ---------
<extension point="org.eclipse.ui.perspectives">
<perspective name="%Perspective.resourcePerspective"
icon="icons/full/eview16/resource_persp.gif"
class="org.eclipse.ui.internal.ide.ResourcePerspective"
id="org.eclipse.ui.resourcePerspective">
</perspective>
</extension>
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<showInPart
id="org.eclipse.ui.views.ResourceNavigator">
</showInPart>
</perspectiveExtension>
</extension>
------------------------------------------------------------ ---------
I have tried to do this declaratively from our plugin_customization.ini but
can't find the way to do it.
Any ideas?
Richard Pitt
|
|
|
Re: Disable RCP Preferences, ActionSets, Views [message #448715 is a reply to message #448684] |
Fri, 28 April 2006 17:14   |
Eclipse User |
|
|
|
You are making this too hard. You should just not include plug-ins like
org.eclipse.ui.ide as a dependency for your application. Also, make
sure its not included on your launch config. A basic RCP app should
only need org.eclipse.ui and org.eclipse.core.runtime.
Try using the new project wizard, saying "yes" to the question about
creating an RCP app and selecting one of the templates. Then
right-click on the project and choose Run As...Eclipse application.
That will show you the launch configuration for a barebones RCP
application.
Richard Pitt wrote:
> Hi,
>
> We have an RCP application that is quite basic and we there are some things
> in the RCP that we don't use.
> Therefore there are preferences, actionsets, views and perspectives that we
> don't want visible.
>
> To remove them from our application, we go into the relevant RCP jars and
> comment out parts of the plugin.xml.
>
> For example, we don't use the Resource perspective and so comment out this
> in the plugin.xml of org.eclipse.ui.ide:
> ------------------------------------------------------------ ---------
> <extension point="org.eclipse.ui.perspectives">
> <perspective name="%Perspective.resourcePerspective"
> icon="icons/full/eview16/resource_persp.gif"
> class="org.eclipse.ui.internal.ide.ResourcePerspective"
> id="org.eclipse.ui.resourcePerspective">
> </perspective>
> </extension>
>
> <extension point="org.eclipse.ui.perspectiveExtensions">
> <perspectiveExtension
> targetID="org.eclipse.ui.resourcePerspective">
> <showInPart
> id="org.eclipse.ui.views.ResourceNavigator">
> </showInPart>
> </perspectiveExtension>
> </extension>
> ------------------------------------------------------------ ---------
>
> I have tried to do this declaratively from our plugin_customization.ini but
> can't find the way to do it.
>
> Any ideas?
> Richard Pitt
>
>
>
|
|
|
Re: Disable RCP Preferences, ActionSets, Views [message #448777 is a reply to message #448715] |
Tue, 02 May 2006 04:40   |
Eclipse User |
|
|
|
Originally posted by: rpitt.ivis.com
Thanks for the comment, but we already have the minimum set of plugins that
are necessary for our application.
This is a problem with wanting to use a plugin, but not expose all the
actionsets and preferences that it gives us.
Another example, we use the org.eclipse.ui.editors plugin, but the menu it
contributes: "File | Convert Line Delimiters" is not used by our users. In
fact it is a confusing concept for them and should not be visible to them.
Any other suggestions out there? This must be a common use case for RCP
applications.
- Richard.
"Amber Beerends" <abeerends@cerner.com> wrote in message
news:e2u0kg$ghf$1@utils.eclipse.org...
> You are making this too hard. You should just not include plug-ins like
> org.eclipse.ui.ide as a dependency for your application. Also, make sure
> its not included on your launch config. A basic RCP app should only need
> org.eclipse.ui and org.eclipse.core.runtime.
>
> Try using the new project wizard, saying "yes" to the question about
> creating an RCP app and selecting one of the templates. Then right-click
> on the project and choose Run As...Eclipse application. That will show you
> the launch configuration for a barebones RCP application.
>
> Richard Pitt wrote:
>> Hi,
>>
>> We have an RCP application that is quite basic and we there are some
>> things in the RCP that we don't use.
>> Therefore there are preferences, actionsets, views and perspectives that
>> we don't want visible.
>>
>> To remove them from our application, we go into the relevant RCP jars and
>> comment out parts of the plugin.xml.
>>
>> For example, we don't use the Resource perspective and so comment out
>> this
>> in the plugin.xml of org.eclipse.ui.ide:
>> ------------------------------------------------------------ ---------
>> <extension point="org.eclipse.ui.perspectives">
>> <perspective name="%Perspective.resourcePerspective"
>> icon="icons/full/eview16/resource_persp.gif"
>>
>> class="org.eclipse.ui.internal.ide.ResourcePerspective"
>> id="org.eclipse.ui.resourcePerspective">
>> </perspective>
>> </extension>
>>
>> <extension point="org.eclipse.ui.perspectiveExtensions">
>> <perspectiveExtension
>> targetID="org.eclipse.ui.resourcePerspective">
>> <showInPart
>> id="org.eclipse.ui.views.ResourceNavigator">
>> </showInPart>
>> </perspectiveExtension>
>> </extension>
>> ------------------------------------------------------------ ---------
>>
>> I have tried to do this declaratively from our plugin_customization.ini
>> but
>> can't find the way to do it.
>>
>> Any ideas?
>> Richard Pitt
>>
>>
|
|
| | | | | |
Re: Disable RCP Preferences, ActionSets, Views [message #449624 is a reply to message #449623] |
Tue, 16 May 2006 23:54  |
Eclipse User |
|
|
|
Originally posted by: tmuthuku.cisco.com
Hi,
Here once again, I am explaining about my issue related to Prespectives.
In our Eclipse RCP application some perspectives like resource", "Debug"
& etc. are coming automatically. I tried with out including the plugin
org.eclipse.ui.ide. But I was getting some other errors. Because it is
necessary for our application. I think, I have to remove these through
code( like org.eclipse.ui.resourcePerspective & etc.).
Pls. let me know, if you find any solution for this.
Thanks,
M.S.Thiraviyakumar
|
|
|
Goto Forum:
Current Time: Sat Aug 30 13:07:59 EDT 2025
Powered by FUDForum. Page generated in 0.05240 seconds
|