Help! Adding menu items to CDT Source Editor context menu [message #78001] |
Thu, 07 August 2003 17:04  |
Eclipse User |
|
|
|
I ran into a weird issue where I was able to add menu items to the CDT
editor (or so I thought this is what it was). using the constant
<viewerContribution id="com.xxx..CDTPopupActions"
targetID="#CEditorContext">
where targetID #CEditorContext
BUT... recently the editor window seems to have changed (it now has a ruler
at the top, and the code is color highlighted) and now my pop up menu items
no longer appear... sigh... so I assume that the editor my menu was popping
up in before must have NOT been the CDT editor, though I had CDT installed.
ugggg.
Is #CEditorContext the correct define for right click context menu items, on
a source editor window such as test.cpp?
I have looked everywhere, trying to find where to get a list of
fragment.xml defines for adding menu items to various UI elements of CDT but
can't find any information anywhere.
any help is appreciated greatly
Thanks in Advance
|
|
|
|
|
Re: Help! Adding menu items to CDT Source Editor context menu [message #78062 is a reply to message #78033] |
Thu, 07 August 2003 22:33  |
Eclipse User |
|
|
|
Mike wrote:
> Ok, heres the deal.
>
> So I found under eclipse menu:
>
> Window-> preferences->Workbench->File Associations
> that the editor I was use to seeing for C and CPP files had been replaced
> by LPEX entries. After I removed the LPEX entries and got back to the
> Default C/CPP editor my menus started showing again.
>
> So...... what is LPEX? wheres it coming from? and how do I get my menus to
> show not only on the default C/CPP editor but also on these other C/CPP
> editor windows?
LPEX has been the editor component used by IBM before QNX Team took over
the CDT project ownership. LPEX AFAIK is being abandoned for a long time
now, but as I saw in CVS its still under org.eclipse.cdt.old.
>
> Thanks for the assistance here.
>
>
>
> "Mike" <mboyersmith@rational.com> wrote in message
> news:bguhjp$r3h$1@eclipse.org...
>
>>So further investigation it seems to be using the LPEX editor settings
>
> from
>
>>the preferences.
>>
>>I still can't seem to find any information on 'Legal' constants to be used
>>with fragments for viewerContribution menu items (right click context menu
>>items).
>>
>>sigh... any help is appreciated.
>>
>>
>>
>>"Mike" <mboyersmith@rational.com> wrote in message
>>news:bgueo9$off$1@eclipse.org...
>>
>>>I ran into a weird issue where I was able to add menu items to the CDT
>>>editor (or so I thought this is what it was). using the constant
>>>
>>><viewerContribution id="com.xxx..CDTPopupActions"
>>>targetID="#CEditorContext">
>>>
>>>where targetID #CEditorContext
>>>
>>>BUT... recently the editor window seems to have changed (it now has a
>>
>>ruler
>>
>>>at the top, and the code is color highlighted) and now my pop up menu
>>
>>items
>>
>>>no longer appear... sigh... so I assume that the editor my menu was
>>
>>popping
>>
>>>up in before must have NOT been the CDT editor, though I had CDT
>>
>>installed.
>>
>>>ugggg.
>>>
>>>Is #CEditorContext the correct define for right click context menu
>
> items,
>
>>on
>>
>>>a source editor window such as test.cpp?
>>>
>>>I have looked everywhere, trying to find where to get a list of
>>>fragment.xml defines for adding menu items to various UI elements of CDT
>>
>>but
>>
>>>can't find any information anywhere.
>>>
>>>any help is appreciated greatly
>>>
>>>
>>>Thanks in Advance
>>>
>>>
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08068 seconds