to remove icons coming with package explorer [message #461558] |
Fri, 12 January 2007 06:01 |
Eclipse User |
|
|
|
Originally posted by: anubhav.pande.tcs.com
Hi,
in my RCP Application I have used package explorer. But when I select the
package explorer view automatically Refactor menu and couple of icons (run
and debug) are added. I cant exclude jdt.debug.ui as i need that plugin to
run other things.
I tried by making the perspective layout tight but that too dint help.
How can I hide these things?
Also I want to hide icon of org.eclipse.ui.externaltools, but again i cant
get rid of this plugin
|
|
|
|
Re: to remove icons coming with package explorer [message #461606 is a reply to message #461574] |
Sat, 13 January 2007 09:08 |
Eclipse User |
|
|
|
Originally posted by: anubhav.pande.tcs.com
I tried this extension point but unfortunately I was not able to
understand it.Actually iam not able to figure out how to use the filters
and what will be the patterns.
Sir Iam new to rcp development, if you can give me a specific example it
will be very kind of you.
Scott Hathaway wrote:
> I removed a number of menu items and toolbar items from my RCP that were
> contributed by plug-ins my application depended upon by using the
> org.eclipse.ui.activitie extension point. Do a search for "activities"
> in the 3.2.1 Help Contents. If you need an example let me know.
> ANUBHAV PANDE wrote:
>> Hi,
>> in my RCP Application I have used package explorer. But when I select
>> the package explorer view automatically Refactor menu and couple of
>> icons (run and debug) are added. I cant exclude jdt.debug.ui as i need
>> that plugin to run other things.
>> I tried by making the perspective layout tight but that too dint help.
>> How can I hide these things?
>> Also I want to hide icon of org.eclipse.ui.externaltools, but again i
>> cant get rid of this plugin
>>
|
|
|
Re: to remove icons coming with package explorer [message #461983 is a reply to message #461606] |
Fri, 19 January 2007 16:22 |
Scott Hathaway Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Sorry it took me so long to reply, but I have been out of town.
This example removes the search action/icon from the coolbar. One note
on running in debug. I have noticed that sometimes the changes I make to
my extensions don't take effect when I run the RCP in debug mode. One
way to fix this is to clear the configuration area by checking "Clear
the configuration area.." from the Configuration tab of the debug window.
1. Add the extension org.eclipse.ui.activities to your Extensions in
your manifest for your RCP.
2. Create a new activity on the activities extension. You can give it
any id or name that makes sense.
3. Create a new activityPatternBinding on the activities extension. Set
the activityId to the activity you created in step 2.
4. Set the pattern to
"org\.eclipse\.search/org\.eclipse\.search\.OpenSearchDialog ".
5. Save and debug an you should no longer see the search icon on the
coolbar.
Notes about patterns:
All the patterns I use consist of <plug-in id>/<extension id>. So in the
example above if you look at the manifest for org.eclipse.search, which
can be done by importing the plug-in into your workspace, you will
notice under the "org.eclipse.ui.actionSets" extension a "Search"
actionSet. Under the Search actionSet there is a Se&arch action. By
setting the second half of the pattern to the id of the Se&arch action
it can be removed from installation. Also, every . must be preceded with
a \.
Let me know if this doesn't work. I wrote it on the run, so I could have
missed something.
Cheers,
Scott
ANUBHAV PANDE wrote:
> I tried this extension point but unfortunately I was not able to
> understand it.Actually iam not able to figure out how to use the filters
> and what will be the patterns.
> Sir Iam new to rcp development, if you can give me a specific example it
> will be very kind of you.
>
> Scott Hathaway wrote:
>
>> I removed a number of menu items and toolbar items from my RCP that
>> were contributed by plug-ins my application depended upon by using
>> the org.eclipse.ui.activitie extension point. Do a search for
>> "activities" in the 3.2.1 Help Contents. If you need an example let me
>> know.
>
>
>> ANUBHAV PANDE wrote:
>>> Hi,
>>> in my RCP Application I have used package explorer. But when I select
>>> the package explorer view automatically Refactor menu and couple of
>>> icons (run and debug) are added. I cant exclude jdt.debug.ui as i
>>> need that plugin to run other things.
>>> I tried by making the perspective layout tight but that too dint help.
>>> How can I hide these things?
>>> Also I want to hide icon of org.eclipse.ui.externaltools, but again i
>>> cant get rid of this plugin
>>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04293 seconds