how to hide files from package explorer - eclipse-plugin

Hi all
I am developing a plugin where i m creating project through my own wizard.
I have used javaElementFilters to hide my file named device-configs.xml.
It only works with eclipse helios sdk versions.
Can anyone suggest me better way to hide file?
Or other extension point that can work in all eclipse versions of 3.6 & also in MyEclipse also?

Make sure that you have Package Explorer opened
Select View Menu on the top of the Package Explorer view
Select filters
Enter your pattern and click OK
Files should be hidden.

Right click on the project, then go Properties, then Resource > Resource Filters and add a exclude filter.

The javaElementFilters work only in the Views supplied by JDT and it should work in all the versions. What do you mean by "only works with eclipse helios sdk versions"?

Related

Groovy cannot be enabled for project its library isn't configured

I'm following some tutorial to explore creating IntelliJ Platform Plugin. The interface as below
Upon clicking the Groovy checkbox, and click next, an error as below appear.
Clearly it needs some library. Where could I get the library? (I click Create..., it open the current folder. I don't know what to select from there)
You need to download library from official site: http://groovy-lang.org/download.html and them select it after pressing "Create..."

Eclipse PDE - how to find method usages

I've just started developing my first plugin so apologies if this is obvious.
I'm trying to write a plugin that gets method usages and does something with them.
I've seen references to CallHierarchy and SearchEngine. Which is the correct one to use these days and why, when I use "Open Type", can it not be found? Is there a dependency I'm missing or something?
These classes are part of the Eclipse JDT plugins and are not normally included in the search done by Open Type.
To get 'Open Type' to look everywhere for the classes open the Preferences and go to the 'Plug-in Development' page. Select the 'Include all plug-ins from target in Java search' option.
You will also need to install the Eclipse SDK to get the source of these plug-ins. The SDK is part of the Eclipse update site http://download.eclipse.org/eclipse/updates/4.7 for Eclipse Oxygen.

How do you load a custom JAR into the SceneBuilder that's built into IntelliJ?

I'm trying to load a custom Control into the SceneBuilder that's running inside of IntelliJ. I downloaded the plugin from Gluon. In the stand-alone version I have installed, the option to import a custom JAR is available by clicking the gear icon under 'Library'. I see nothing like that when SceneBuilder is run from inside of IntelliJ in a tabbed editor view.
I would think that importing the JAR would allow me to see it show up in IntelliJ, but no such luck. It only shows up when SceneBuilder is ran stand-alone.
IntelliJ built-in Scene Builder is not the same as uses Gluon's Scene Builder. The former is a version embeddded in the IDE, introduced with IntelliJ IDEA 14, two years ago, but without several features or even menus or recent improvements, while the latter is the complete and updated version 8.1.1, that allows you using the latest features available and or adding custom controls, as you have already done.
If you check IntelliJ help, they also recommend using the stand-alone version (though they still point to the old 2.0 Oracle's version), they don't refer to the one they embed.
If you want to use custom controls, the only option here is the Gluon's version.
Note: I've edited the answer to clarify that IntelliJ built-in Scene Builder does use Gluon's Scene Builder, by scanning the content folder with the dist.jar. It is recommended having the latest version installed.

Is there a way to perform autosave in netbeans 8?

I wonder if there is a way to tell to the IDE to autosave any file if modified. I've searched the web but I haven't find anything. There was a module on NetBeans 7 but it is not available now on NB 8. Anyway it appears that the old plugin can be set to execute save all on a given interval. What I want is a feature to save when you modify something just like in Intellij IDEA.
Thanks
This plugin also saves when the file loses focus: Plugin
I would also prefer something like IntelliJ's Android Studio, but I don't think it exists for Netbeans.
I downloaded the below netbeans plugin. It will automatically save after every 1 second once installed. it was built for Netbeans 8.1 and not tested for the version 8.2 but it worked for me.
Netbeans 8.2 AutoSave Download Link
Install in Netbeans via Tools > Plugins > Downloaded and click on add "Add plugins..." button
In NetBeans 12.4 the module options can be changed from the section below and you don't have to download a plugin.
Tools > Options > Editor > Autosave section.
(also it is in version 12.5. I didn't find it in version 12.0)

New>Generic problem in Eclipse Helios no other attributes

When I am trying to use eclipse Helios for plug-in development,I am not getting any attributes beside generic in any new RCL option. I have gone through net and found to download the source code but there is no way to append the same in Helios. Please suggest
You can install Eclipse RCP Plug-in Developer Resources via Eclipse update site
The shortest way to do it is:
Download the helios version for RCP developers from the eclipse web site.
Open target platform from the preferences menu.
Click "add" to add a new target platform.
"Nothing" is chosen for default target platform creation. Click next
On the new window click on the locations tab.. Click add , on the pop up window click directory and browse the plugin directory of eclipse for RCP developers (This version of helios includes the necessary plugin sources inside) and click finish
On the "implicit dependencies" tab show all the plugins added (choose all plugins)
and then click finish and close the wizard window.
Finally choose the new target platform configuration you have just created.
Now you can see all the new attributes beside generics (related to the plugin)
Download the SDK plugins from:
http://download.eclipse.org/eclipse/updates/4.3/