Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Pop Up Menus in eclipse plug ins
Pop Up Menus in eclipse plug ins [message #157388] Mon, 19 June 2006 13:03 Go to next message
Eclipse UserFriend
Originally posted by: jebinjohanson.gmail.com

Hi,

While enabling popup action for my plugin, in the Plugin.xml file i
added the following entry.

<extension
point="org.eclipse.ui.popupMenus">

<objectContribution

objectClass="org.eclipse.core.resources.IFile"

nameFilter=*.*

Here The plugin doesnt work. if i change the filter to either "*.java or
*.xml" then it works. Can anyone please explain.

When I added the following entry to plugin.xml

<extension point="org.eclipse.ui.popupMenus">
<viewerContribution
id="org.eclipse.ui.articles.action.contribution.popup.editor "
targetID="#TextEditorContext">


The popup action is executed only for a text editor. What i have to do in
order to make it work for Java editor also. Also please explain the meaning
of "#TextEditorContext"

Any help will be highly appreciated.



Thanks in advance,

Jebin





  • Attachment: tag_a.jpg
    (Size: 0.89KB, Downloaded 85 times)
  • Attachment: tag_b.jpg
    (Size: 0.90KB, Downloaded 100 times)
Re: Pop Up Menus in eclipse plug ins [message #157420 is a reply to message #157388] Mon, 19 June 2006 14:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: newcome.gmail.com

I got a similar problem: trying to activate the action only for IFolder
object with name = XXX_ABC_YYY using nameFilter = "XXX_*_YYY" doesn't work
properly.

Could someone explain this too?
Re: Pop Up Menus in eclipse plug ins [message #158185 is a reply to message #157420] Fri, 23 June 2006 04:50 Go to previous message
Eclipse UserFriend
Originally posted by: jebinjohanson.gmail.com

One solution is not to use the namefilter at all. i know its not the correct
way...but u can try it..


Jebin




"newcome" <newcome@gmail.com> wrote in message
news:2f29154c39a241b7d078adc7b8b66a10$1@www.eclipse.org...
>I got a similar problem: trying to activate the action only for IFolder
>object with name = XXX_ABC_YYY using nameFilter = "XXX_*_YYY" doesn't work
>properly.
>
> Could someone explain this too?
>
Previous Topic:Unable to see %> on JSP Expression, using MyEclipseIDE plug-in...
Next Topic:context menu positinging
Goto Forum:
  


Current Time: Wed Jul 03 10:32:19 GMT 2024

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

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

Back to the top