Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to disable jdt UI contributions with org.eclipse.activities?
How to disable jdt UI contributions with org.eclipse.activities? [message #515589] Fri, 19 February 2010 08:34 Go to next message
Eclipse UserFriend
Hello everyone,

for my eclipse application, I defined a custom activity using the
org.eclipse.activities extension point in order to filter out all UI
contributions that I don't need. Basically it works fine, except for the
contributions made by org.eclipse.jdt.ui. I defined a pattern binding
like this:

<activityPatternBinding
activityId="com.example.activity1"
isEqualityPattern="false"
pattern="org\.eclipse\.jdt/.*">
</activityPatternBinding>

I also tried several variations of the regular expression like
".\/org\.eclipse\.jdt\.ui\..*" etc., but none of them caused my
application to disable any JDT button, view or menu entry.

Are there any special issues to keep in mind when trying to filter
JDT-related UI stuff?

Greetings,
Patrick Oppermann
Re: How to disable jdt UI contributions with org.eclipse.activities? [message #515590 is a reply to message #515589] Fri, 19 February 2010 08:41 Go to previous message
Eclipse UserFriend
Patrick Oppermann wrote:
> Hello everyone,
>
> for my eclipse application, I defined a custom activity using the
> org.eclipse.activities extension point in order to filter out all UI
> contributions that I don't need. Basically it works fine, except for
> the contributions made by org.eclipse.jdt.ui. I defined a pattern
> binding like this:
>
> <activityPatternBinding
> activityId="com.example.activity1"
> isEqualityPattern="false"
> pattern="org\.eclipse\.jdt/.*">
> </activityPatternBinding>
>
> I also tried several variations of the regular expression like
> ".\/org\.eclipse\.jdt\.ui\..*" etc., but none of them caused my
> application to disable any JDT button, view or menu entry.
>
> Are there any special issues to keep in mind when trying to filter
> JDT-related UI stuff?
Note that the SDK download already has a capability that disables JDT
and it works just fine. Also, why do you download a package with JDT if
you don't need it?

Dani
>
> Greetings,
> Patrick Oppermann
Re: How to disable jdt UI contributions with org.eclipse.activities? [message #515645 is a reply to message #515590] Fri, 19 February 2010 05:54 Go to previous message
Eclipse UserFriend
Hi Dani,

I need a "simplified" version of my application where the Java
functionalities are not supposed to be visible (or even available for
the user), but my own plugins (some of which depend on jdt) still need
to be active.

However, the mistery has been solved. The runtime workspace I was using
still had the jdt views persisted in its metadata. Creating a new
runtime workspace did the trick. The expression that eventually worked
for me is .*/org\.eclipse\.jdt\..*

Greetings,
Patrick

Am 19.02.2010 14:41, schrieb Daniel Megert:
> Patrick Oppermann wrote:
>> Hello everyone,
>>
>> for my eclipse application, I defined a custom activity using the
>> org.eclipse.activities extension point in order to filter out all UI
>> contributions that I don't need. Basically it works fine, except for
>> the contributions made by org.eclipse.jdt.ui. I defined a pattern
>> binding like this:
>>
>> <activityPatternBinding
>> activityId="com.example.activity1"
>> isEqualityPattern="false"
>> pattern="org\.eclipse\.jdt/.*">
>> </activityPatternBinding>
>>
>> I also tried several variations of the regular expression like
>> ".\/org\.eclipse\.jdt\.ui\..*" etc., but none of them caused my
>> application to disable any JDT button, view or menu entry.
>>
>> Are there any special issues to keep in mind when trying to filter
>> JDT-related UI stuff?
> Note that the SDK download already has a capability that disables JDT
> and it works just fine. Also, why do you download a package with JDT if
> you don't need it?
>
> Dani
>>
>> Greetings,
>> Patrick Oppermann
Previous Topic:Preferences dialog doesnt work
Next Topic:TextEditor - need correct approach for dynamic update of regions and markers
Goto Forum:
  


Current Time: Wed Jun 18 21:21:46 EDT 2025

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

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

Back to the top