How to make file template in intellij idea plugin - intellij-idea

As you can see from the title I'm trying to create a plugin for android studio with intellij-idea which generate Java and xml files, but I don't know how because I never find any document or tutorial about this subject so how to make intellij-idea plugin that create files

Related

Intellij search in .class files hybris project

I am trying to adapt the UncategorizedConditionAdapter in SAP Hybris, but all of its code is in the backoffice.jar.
Sadly Intellij is not searching in .class files.
Is there a way to tell Intellij to search in thouse files too?
The SAP Commerce Plugin has an "hybris Source Code" feature, when importing an project. But it does not decompile the .jar files and scan them afterwards.

Intellij custom plugin not working it says manifest missing or unable to recognize main class

I have created jar file for Intellij custom plugin and while trying to check it by running it like
java -jar it says no main manifest attribute, or some time says not able to recognize main class.
Looking for solution to create intellij custom plugin jar
Because this is not how you should create and build plugin.
Please follow the Creating Your First Plugin guide in the official IntelliJ Platform SDK DevGuide for more details.

How to use my own plugin into an existing eclipse tool

I used to develope my own plugins to add some funcionalities to an existing eclipse tool. I just used to add my plugin (jar file) into the plugin folder's tool and it contributed fine adding my own menus into the tool but it's not working anymore since they migrated.
The eclipse tool migrated from 3.x version to some hibrid between 3.x and 4.x. My old plugin used extentions to contribute menus. I tried a test plugin with e4 but it seems like if the eclipse tool is not reading anymore the plugin folder when I drop my plugin there... I cannot modify the eclipse tool, just try to add my own plugins to contribute with the application. Could somebody give a hand with it?

How to create a JAXB project in IntelliJ IDEA 13?

I am learning JAXB.
I need to know how should I create a simple java project for JAX-B in IntelliJ IDEA13. If anyone have idea, please update me and also update me with any plugin for IDEA
Thanks.
You don't need to do anything special when you create your project. Just a simple java project will do.
There are however some tricks that can help you. There are 2 built-in live templates for jaxb :
typing mjo + hit tab-key: will generate the code for a marshaller.
typing ujo + hit tab-key: will generate the code for an unmarshaller.
Intellij has built-in functionality for generating an xsd file for any xml file. Just right-click on any xsd file and you will see a button "Generate xsd schema from xml file".
JAXB also offers a tool (xjc.exe) to generate JAXB code stubs. There is a simple way to add this functionality to IntelliJ. I prefer to add a button for xsd to java source conversion, using the configuration in the "External Tools" menu.
After this configuration, you can right-click on an xsd file and there will be a button "JAXB (XSD->JAVA)".
Note: According to some websites, there is also a dialog/wizard for generating jaxb stubs. However, I haven't found this wizard yet. Maybe it's only available in more recent IntelliJ versions (14+), maybe only in the commercial edition, or it may require some plugins. My solution works fine in IntelliJ 13.0.3 - Community Edition.

Eclipse plugin view does not show up after install

I created a sample plugin which includes a simple view in eclipse and ran the plugin from inside the workbench, my plugin is installed and I get my view showing up in Window/Show View/Other... . I packaged the plugin as a jar file and installed it under the plugins directory of eclipse and restarted my eclipse workbench. I am not able to find my plugin view. I dont know whats is wrong
I am using eclipse RCP SR2 (3.6) for developing plugins and my packaged jar file includes the code, META-INF/MANIFEST.MF and plugin.xml files.
I created the plugin from the book 'Eclipse Plug-ins, 3rd Edition'. I followed the steps outright and am not able to set up the plugin as a jar file.
I got it to work somehow? The plug-in project was created using Execution Environment JavaSE-1.6. 'It was given in the book I referred'. Now the manifest editor had the entry 'Bundle-RequiredExecutionEnvironment: JavaSE-1.6'. Now I ran the application with-in eclipse, it was working. But when I bundled the plugin as jar and copied the plug-in jar under plugins folder and restarted eclipse the plugin was not working, I dont know why, I thought my eclipse is not running under JRE1.6, but I checked my Windows->Preferences->Java->Installed JREs-> I have only jdk1.6.0_27 checked (So I assume that the eclipse is running under JavaSE1.6). This is bit confusing for me! I removed the Execution Environment entry in the Manifest editor Overview tab. Now there is no 'Bundle-RequiredExecutionEnvironment' entry in my Manifest, I created the bundle jar again and installed in eclipse plugins folder and restarted eclipse using -clean option. It started working in my eclipse. I got it to work somehow but with no understanding! I am still looking for answers from some one who can help me figure out what went wrong?
Open an OSGI console and type 'ss'. It should list all of the plugins. Can you see it? What is the state of it.
You can use Preferences/plug-in development/target platform edit running 'running platform' content tab to list and check/uncheck plugins. I hope it helps.
You could try copying your jar file to the eclipse/dropins folder.