Problems with <visibility> [message #299510] |
Sun, 19 February 2006 21:08  |
Eclipse User |
|
|
|
This problem occurs on 3.1.2.
I have a popup menu item whose visibility is controlled by a content type
specified in my plugin (the content type uses
XMLRootElementContentDescriber).
Everything works great when I install my plugin by itself. However, if I
install other plugins that have XML related plugins (like oXygen or
MyEclipseIDE), my popup menu item is never visible again.
If I remove the <visibility> element in my plugin.xml, then the popup menu
item is always there - but that's not what I want - I only want the item
visible on certein types of XML files.
I'm at a loss for how to debug this. I really appreciate a pointer.
Thanks!
Jeff Butler
|
|
|
|
Re: Problems with <visibility> [message #299592 is a reply to message #299590] |
Mon, 20 February 2006 21:27  |
Eclipse User |
|
|
|
Finally figured it out. My plugin and another plugin both registered valid
content types at medium priority. So the one that was first alphabetically
won. The solution was to make my content type high priority.
Jeff Butler
"Jeff Butler" <jeffgbutler@gmail.com> wrote in message
news:dtdkrl$j59$1@utils.eclipse.org...
> Here's a little more information....
>
> I started thinking this was some sort of naming conflict, and I think it
> is.
>
> It works if I use the plugin id "apache.abator.ui". It fails if I use the
> plugin id "org.apache.abator.ui". (With corresponding changes in the fully
> qualified content type id)
>
> From what I can tell, certain plugin ids work OK, others don't. I don't
> know how to predict what will work.
>
> Are there any limitations on the length of an ID?
> Are there any limitations on the number of elements in an ID?
> Is there any tool to trace the decisions made when calculating popup
> menus?
> Does anyone have an idea of how to debug this and find what's causing the
> conflict?
>
> Thanks -
> Jeff Butler
>
>
>
> "Jeff Butler" <jeffgbutler@gmail.com> wrote in message
> news:dtb8a3$6gs$1@utils.eclipse.org...
>> This problem occurs on 3.1.2.
>>
>> I have a popup menu item whose visibility is controlled by a content type
>> specified in my plugin (the content type uses
>> XMLRootElementContentDescriber).
>>
>> Everything works great when I install my plugin by itself. However, if I
>> install other plugins that have XML related plugins (like oXygen or
>> MyEclipseIDE), my popup menu item is never visible again.
>>
>> If I remove the <visibility> element in my plugin.xml, then the popup
>> menu item is always there - but that's not what I want - I only want the
>> item visible on certein types of XML files.
>>
>> I'm at a loss for how to debug this. I really appreciate a pointer.
>>
>> Thanks!
>> Jeff Butler
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03018 seconds