Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm writing a plugin to IntelliJ, and need to hook into some of the existing actions that already exist, like when a file is saved, the code is compiled, or a refactoring happens. I wasn't able to find any info on the plugin site about existing actions, only new actions.
These posts are similar:
Save actions in IntelliJ IDEA
Intellij reformat on file save
but since they don't include actually writing a plugin, I'm hoping there may be some internal hook for doing so.
Here's the code example of how to intercept 'on save' event by a custom plugin.
You can hook into 'flush changes to file system' processing via FileDocumentManagerListener registered at the FILE_DOCUMENT_SYNC topic.
You can get more information about IJ messaging here.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last month.
Improve this question
I have developed a game with Java in Eclipse, I would now like to take this 1 to 1 and make it into an app, how can I do this? Is that possible? Can I transfer this to Andriod Studio?
I donĀ“t know how i could make this. Do you know a video or an intruduction?
The android JAVA is kinda tricky. It violates the Java principle of Write Once Run Anywhere
To transfer any java project to android, it is best to:
Separate your Java code that handle UI from the one that handles the logique (its even better to wisely organize the project into packages
create a new blank android project
copy the logique Java code/classes to java resource folder
Convert the UI Java code/classes into android activities
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 months ago.
Improve this question
I'm pretty new to netbeans and I've ran into this problem:
When i try to open my netbeans project this shows
It also gives me A LOT of exceptions
I have no clue on how to solve this
Tysm
maybe it works.
First, go to Tools-> Choose Option->In Advanced Options->Click Option then Editing and GUI Builder, where you need to set the Layout Generation.
To ensure the Swing Layout Extension library is not part of project
you can clean build/remove project/check java is in correct path/reinstall net beans
BTW why dont you try intellij community edition
A shot in the dark since I had a similar problem once: I tried to pre-inialize a combobox with some values. Those values were supposed to come out of a (in-memory) database. The database was not available when using the NetBeans designer and therefore the designer could not construct the form and crashed.
So, check if your constructor contains code that has any dependency that works only in a certain environment.
Do NOT use "Allow Editing" if you are not knowing what you are doing / don't have a copy of your source. NetBeans will mess up your form.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Is there a way to add custom rules to languageTool java API just by appending rules to grammar.xml and keeping it external to the java project?
I want to deploy my java project only once, but keep updating the grammar rules whenever required. I would like to keep the xml file (say grammar.xml) separately from the project, and access it through java code.
Thanks !
It should be possible to load XML rules with PatternRuleLoader and then activate them using JLanguageTool.addRule(). I'm not sure what will happen when you insert the same rule (i.e. a rule with the same id) more than once.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I write project. In this project, when user click on some links - I call via my custom protocol("jpck") My Java Application(Java plugin) - and do something
So I show to User always popup when I write if you don't have a plugin - Install Plugin
Now I want check If he has this plugin
Its need work against MAC and PC
I'm not sure if I can do that on C#, because MAC have protection from all
Let's say your user install your plugin with an installer.
Ask this installer to write in some well defined file the location selected by user (either default location or a custom one).
Then from your program, check this well defined file.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have created a java based project using Netbeans as an IDE. Now I want to obfuscate my project. How can this be done?
You need to use a source obfuscator.
I have used Zelix Klassmaster in the past and it is pretty good.
I have used RetroGuard and i was really happy with it. The thing I really liked was the ability to use it from my build file, so that I could deploy the project directly obfuscated.
Take a look at proguard - you can integrate it into ANT.