Eclipse plugin Development- How to remove search again menu item from search result page - eclipse-plugin

I am new to eclipse plugin development.
I am creating a separate search for my project.
I have already added a new search page to existing search dialog and even getting the results in the search page.
But I am struggling to access get the search again menu to work .It always remain disabled I am not able to remove it nor able to enable it.
I am working on eclipse kepler.

This menu item cannot be removed.
The enablement of the item is controlled by your ISearchQuery.canRerun() method.

Related

remove items from navigator's context menu

In my eclipse plugin I have specified my custom navigator using the CNF (Common Navigator Framework). I got everything working except the context menu.
I have created a new viewer-extension for it in which I define a popup-Menu with the respective groups (I overtook all of the groups from the project explorer) and it does get displayed and everything I want to appear in it, does appear.
However there are a bunch of things that appear in it that I don't want to appear.
As an example there is the Run As... option in the context menu which I don't want as I have nothing to run anyway. I tried using the Plugin-Menu-Spy in order to find where this menuItem is being contributed but it won't give me any information about it.
I found out that when setting allowsPlatformContributions = false in my popUp-Extension the unwanted menuItems disappear but so do the Import and Export menus which I do want to have.
So how can I remove the Run As... menuItem from my navigator's context menu? Is there some kind of filter I can apply to it?

Displaying filtered issues in JIRA project tab

This is my first attempt to create a JIRA plugin and I'm completely lost.
I have already managed to create a project tab plugin. However, I can't find the way to populate the screen with any more than HTML.
My main goal is to display a list of filtered issues in the project tab. I saw the issues list displayed in the Versions tab (screenshot: http://cl.ly/image/0g1O3v0M0p38/Screen%20Shot%202015-03-25%20at%203.49.35%20PM.png) and I figured I could copy the code that did that on a project tab. However I can't find the code that does this.
Any pointers you can give me would be highly appreciated.
TL;DR: Need to know how to filter issues and display them in a project tab.
1) how to filter issues
Please look here: https://confluence.atlassian.com/display/JIRA/__Searching+in+JIRA
2) display them in a project tab.
Here is the answer: JIRA Plugins - How to add webwork action to a project panel?

Editor context Menu - Eclipse-RCP

I have an Eclipse RCP application. I have created an Editor. There are few context menu (default), when I right click on the Editor. I have not created these menus.
Please let me know, How to remove the context menu of the Editor?
It needs different approach by which editor you extends.
Let me know What you extends, than I can answer more efficient one.
In general way:
IWorkbenchParSite#registerContextMenu(...) will be used, So find where calls that, override it. It is not recommend. Because by doing this, Menu Extensions which is contributed for your editor will not work anymore.
If you mean the system menu that appears on editor tabs and view tabs, that menu is provided by the presentation (2.1, Classic, Default, etc). There is no tweak to simply modify it.
The 2 ways to remove it would be:
write your own presentation, using
the
org.eclipse.ui.presentations.StackPresentation
API and matching extension point.
Writing a presentation is a involved
undertaking.
Change the internal classes in the
org.eclipse.ui.workbench plugin
and patch that plugin in your RCP
app.
If you use Text or StyleText you will get the system default menu (cut,copy,paste, maybe something about encoding or input). If you are not going to supply your own menu, simply create an empty SWT Menu and set it:
Menu emptyMenu = new Menu(text);
text.setMenu(emptyMenu);
Eclipse also has a text editing framework, if you need more than a basic text box you should check it out. http://wiki.eclipse.org/The_Official_Eclipse_FAQs#Text_Editors

How to launch an SP 2010 Dialog Window Maximized

I have modified EditForm.aspx of a list in SharePoint 2010. I need to launch the dialog window (that's what EditForm.aspx seems to be launched as) maximized, but I haven't been able to find the correct setting to tweak.
A quick web search suggests to use the showMaximized:true style setting, but I am unable to find the element in EditForm.aspx to apply this attribute to.
If you want to remove ALL dialogs from a list, go to:
list settings -> advanced -> dialog -> turn them off
But if you just want to change the edit button, you will probably have to create a new edit <CustomAction> that uses javascript, see this example:
http://www.chakkaradeep.com/post/Using-the-SharePoint-2010-Modal-Dialog.aspx
Its for a different button, but you should get the idea.
And then you will need to build a <HideCustomAction> to hide the original edit button
Check this : http://www.wawawum.com/blog/post.aspx?id=66a5aed2-f530-4687-bd42-1ef0fb379544
Add a Content Editor WebPart to your EditForm, then put the code found in this blog to maximize the Dialog when opening it.
Works very well for me.

Why are some Siebel objects read only?

I want to add some extensions to an existing Siebel application, but the objects which I need to change remain (partially) read only, despite I have locked the respective parent projects.
E.g.
Add a Menu item to the application main menu. => I can edit existing items, but I cannot add new items (Tool's menu "New record" is disabled.)
Add a custom applet to view "Sales Home Page View". It's read only (Warning displayed by Tools when I click "Edit web layout").
Any ideas, why?
Seems to be a bug in Siebel Tools. After a restart of Tools I was able to perform the desired changes.