aspectj for Android studio - where is AJDT plugin - aop

How do i install AJDT for android studio. I know there is one for eclipse but i cant find anything in android studio. What i would like to do is run security checks on every one of my method calls before they launch. I've tried from this site AJDT but this is for eclipse.

Android Studio is an Android-aware version of IntelliJ. IntelliJ has no tooling support for AspectJ. There are two solutions that I can think of:
Use Eclipse and ADT, but you probably don't want to do that.
Use Annotation Style AspectJ and let Android Studio treat the aspect code as Java code. You won't get any cross-references, navigation, or content assist, but the IDE will not complain of compile errors.
EDIT: There is an IntelliJ plugin for AspectJ.

Related

How to add a break point in Intelij IDEA to debug Rust code

I have installed Intellij IDEA on ubuntu with Rust plugin.
How to add a break point in Intellij IDEA to debut RUST code.
Do I need any additional plugin?
Debugging Rust code is available in CLion, IntelliJ IDEA Ultimate, PyCharm Professional, and GoLand. For IntelliJ IDEA Ultimate, PyCharm Pro, GoLand it is required to install the Native Debugging Support
plugin.
See plugin's documentation for more information: Debugging.
no need for extra plugins just add them like you would do in java (left click right of the number). but in order to debug (apply them) you'll need Native Debugging Support (i believe the ide autosuggests this plugin on the first debug run)

option to create a kotlin multiplatform project not present in idea 2019.3

i want to create a kotlin mp project in intellij idea 2019.3 Community, but the options i see in new project window for kotlin are just jvm|idea and js|idea.
In several articles there are options like mobile shared library | gradle, present even for older versions oj IJIdea.
I already have kotlin in another project, as part of a maven project
any hints?
Make sure you have latest Kotlin plugin installed and Gradle bundled plugin enabled.
See these steps about creating Kotlin MPP project.
gradle plugin was enabled, but still something smelled, so after some time spent enabling/disabling plugins, i decided to enable android support plugin - then after restart idea complained that gradle-java plugin is not enabled, after enabling that (from the error tab link, not the plugin management window in preferences) - the options to create various gradle projects appeared, including the ones for kotlin/multiplatform

How to build jar with javafx in openjdk12

I'm trying to build jar for javafx desktop application. Working in IntelijIdea, jdk 12,using javafx12, link javafx sdk, write VM-options in menu run-edit configuration. In IDE all working correctly, my app launches and works. But when I try to create artifact and then build it to jar all brokes. IDE tell, that fx:deploy isn't there. Then my app don't work even in IDE.
I got stuck here.
Can you, please, help, how to build this javafx to launch it without IDE?
p. s. Know, that in jdk8, where javafx still includes, it's easier, but is it really no other way to create independent from IDE javafx, than using jdk8?
Built GUI with swing, created artifact and then built it to jar.
There wasn't problems.
But I don't want swing...
actual error: "Error. Java FX Packager: Can't build artifact - fx:deploy is not available in this JDK.
Will be really greatfull for tricks or tips with that.

how to compile project without using Lombok plugin in intellij IDEA

i have some restriction to download the plugins for intellij.
In this case how can i compile my app using lombok.
i have tried to paas lombok jar through VM options in run configuration but no luck. any suggestion will be appreaciated.
You can still use Lombok in your code, provided you instructed your build tool to have a build-time dependency.
Without the Plugin, that will result in a lot of red wavy underlines in IntelliJ. But the code would still compile and run.
Disclosure: I am a Lombok developer.

Is there an eclipse plugin for Play2?

I know there is one for play1, but I don't find any for play2.
I hope the plugin can compile the templates to scala code automatically. It's not convenient now.
I just came across Scala IDE Play2 plugin for Eclipse Indigo/Juno and Scala IDE. The current features are
Syntax Highlighting (routes and templates)
Code completion (templates)
Formatter (routes)
Hyperlinking (routes and templates)
Note that hyperlinking to Java files is not supported for now. Also there are some limitations for the code completion feature, just take some time to read the doc. I didn't try it myself as I'm not working with Play2 right now, but thought it might be helpful for someone.
Edit: This answer is outdated. A Play Eclipse plugin has been written, as #Baztoune says.
There is no Play 2 plugin for Eclipse at the time I’m writing these lines. However, there is an eclipsify sbt command, provided by the Play 2 sbt plugin, which is able to generate an Eclipse project from a Play 2 application.
You won’t get syntax highlighting, contextual completion or code navigation inside Play 2 templates, but you can have them to be automatically compiled when saved by using the ~run sbt command (instead of just run). Check the Eclipse “General −> Workspace −> Refresh using native hooks or polling” option is enabled so it will take compiled templates changes into account.
Yes, here's how to get started:
Find the correct update site for your version of Eclipse from http://scala-ide.org/download/current.html.
In Eclipse go to Help->Install New Software. Use the update site from above to locate Scala related plugins.
Install both the Scala IDE for Eclipse plugin and the Play2 support in Scala IDE plugin. Note that the Play2 support in Scala IDE plugin is listed under the Scala IDE plugins checkbox.
I was unable to get this working at all starting from bare Eclipse, as many sources have suggested doing. The problem seems to be incompatible dependencies that only show up after much wasted time. The Scala IDE route eliminated this problem.
Yes. That's Scala IDE.
Update Site for Eclipse Juno and Kepler: http://download.scala-ide.org/sdk/e38/scala210/stable/site
Install with the following features:
Scala IDE for Eclipse
Scala IDE Plugins (incubation)
I use Scala IDE from http://scala-ide.org/ , then eclipsify my play2 project and import.
It works like a charm: it compiles my scala/java code.
You can get more details at this URL http://scala-ide.org/docs/tutorials/play20scalaide20/index.html