How to remove the 'File Search' dialog page - eclipse-plugin

Does anybody know how to disable the "File Search" page from the Search Dialog in an Eclipse.
I've just implemented my own ISearchPage using the org.eclipse.search.searchPages extension. It works perfectly but I wasn't able to remove the "File Seach" dialog page which is shown by default in the Search Dialog.
Any ideeas?

It seems like using the extension org.eclipse.ui.activities does the trick.
1.Add extension org.eclipse.ui.activities
2.Add a new activity to this extension with id (ex. disable.default.search)
3.Add a new "activityPatternBinding to this extension and set the activity id to the id of the activity (ex. disable.default.search) and set the pattern to org.eclipse.search.*
Doing this you will remove the "File Search" TabItem in the Search Dialog and also the Search menu from your Applicaiton.

Related

Can I customize the "New File" menu in PhpStorm?

I would like to add some other options, like "PHP Enum" or "PHP Interface" directly to this menu. Also, I would like to put PHP-related options first. It is possible tu customize this in PhpStorm? I'm using last version (2022.3.2) with the new UI enabled.
I tried using Appearance & Behaviour -> Menus & Toolbars but that didn't work for me.
Do you know that you can use the universal PHP Class entry and just change the type of the object (and therefore the file template) there? That can be done right away when typing the file or class name -- just use Arrow Up / Down keys:
(GREEN rectangle area is where that Up / Down key will work; RED rectangle shows my custom file templates)
P.S. The template for PHP Enums is also there, it just the screenshot was taken in a project with PHP 8.0 language level (need 8.1 for enums to appear).
P.P.S. The IDE will remember the last used template when you invoke this dialog again.
https://www.jetbrains.com/help/phpstorm/creating-php-classes.html
You can add new entries to this menu by creating custom File Templates at Settings/Preferences | Editor | File and Code Templates
https://www.jetbrains.com/help/phpstorm/settings-file-and-code-templates.html
Here are my test custom file templates:
And this is how they appear in that menu:
Customizing this menu (removing items, changing their order)
This is not possible at the moment. https://youtrack.jetbrains.com/issue/IDEA-143090 -- watch this ticket (star/vote/comment) to get notified with any progress.

How append Resx into the project ressources list?

How to add my resx named "ImagesParametres.resx" into the list of "My Project*.resx" ?.
I tried many settings without success. When i open the dialog that shows resources via BackgroundImage property of my button, he never appears.
Default ressources choosen

Customise <control>+ click action on Strings in Eclipse

I am working on a plugin and I want that when I click on some String Literal, it opens a text file editor having the same string.
Sequence of Action:
1. Click on the String
2. Search a Folder for all the text files
3. Search the existence of the clicked string.
4. If the String exists open the text editor in eclipse.
I am new to plugin development , I found that we may use Extension-points for this namely hyperlinkDetector, but I am not able to understand how can I use it. I modified the plugin.xml and also craeted two classes implementing IHyperlinkDetector and IHyperlinkAny but when I debug the plugin and perform control click my code is not reached.

How do I change the displayed file templates on new file creation in WebStorm?

When trying to create a new file in WebStorm, I can't see the file template I'd like to use (in this case - Less). It exists in my File templates, but doesn't show up in the New File selector dropdown.
Here's my New File selector dropdown:
And here are my File templates:
To reduce "New File" menu size, some of the bundled (default) similar file templates are grouped under the single menu entry which has drop down box where you can choose the particular kind of template to use. Examples of such grouped/gateway entries are: "HTML File", "Stylesheet", "JavaScript File", "PHP Class" etc.
In your particular case you need to use "Stylesheet" entry where you can choose "Less File":
Some notes:
IDE will remember the "Kind" value that you have used when you use this dialog again.
There is no need to use mouse or keyboard to switch to the "Kind" filed at all -- just use Arrow Up/Down keys when typing file name -- they will switch the "Kind" directly from there.
If you create custom file template (e.g. "Less file 2") it will not be grouped/accessible via such dialog -- it will be listed as separate entry in "New" menu.

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.