plugins,intellij-idea,action , Creating action for Idea plugin

Creating action for Idea plugin


Tag: plugins,intellij-idea,action

It's my first experience with creating Idea plugin, so I decided to read some manuals. They say it's required to create an action class. But "OK" button is disabled. What am I doing wrong? Thank you for your answers. enter image description here


The Class Name should not contain a package.


Debugging a Dynamics CRM Plug-in

I'm having trouble debugging a Dynamics CRM Online (2015) plug-in (C#). I'm following the instructions on this MSDN article to attach to a process. In the Attach To Process window, I select "Show processes from all users" and refresh. However, I don't see any of the four service processes listed...

Is there synthetic tracking data available in CustusX?

I'm developing a plugin for custusX. I prefer developing on my own PC which is not connected to a tracking system. For video, custusX uses a webcam to generate synthetic 'example data'. Is there also a tracking source with synthetic tracking data available that can be used for developing? (Preferable...

Intellij14 and “Please Provide Missing Values dialog box”

I'm trying to run simple SQL scripts with type casting on a PostgreSQL db via IntelliJ 14. I have problem with type casting. E.g., consider the following trivial query: select '100'::INT; Everytime the following annoying panel appears: Clearly, the message "Please Provide Missing Values..." drives me crazy, since INT is...

IntelliJ correctly using Libraries

I'm using IntelliJ without a build tool for a project, I build it as a jar. Now I'm using the iText library for PDF(s), if I put all the iText jars into a folder and add it in IntelliJ, I can use the iText functions and if the program works,...

Android studio Gradle is not building the new Jar file

I just wanted to try the new android lib, so i just added the dependency like this in my new version of android studio. its not at all building the project only. Below is my gradle file, new lib added is compile '' `apply plugin: '' android { compileSdkVersion 22...

Import jQuery Plugin with JSPM

I'm trying to import the jQuery plugin jQuery.scrollTo with JSPM. So far I installed it with jspm install npm:jquery.scrollto and now I'm trying to import it with import $ from 'jquery'; import scrollTo from 'jquery.scrollto'; Now I'm only getting $(...).scrollTo is not a function errors. I tried to shim it,...

Cordova plugin development - adding aar

I am new to the cordova plugin development stuff. I want to write a plugin which is able to open a new android activty and showing some advertisement. So I followed a simple tutorial here. That works very well and as expected. Next step is to include this Android Studio...

IntelliJ IDEA: Open test result tab only on failure

Can I setup IntelliJ to open the "Run" tab with the test results only if a unit test fails and keep it hidden otherwise?

Intellij IDEA long processing for grails app with warning “too much output to process”

I new to Intellij for Grails app while run the app it execute lot of thing with the warning "Too much output to process" & takes comparatively more time to start the server. Below is the log screen ( at at$1.getObject( at...

Can i use font-awesome in android's edittext?

I have added font-awesome .tff file to the assets folder, initlaized some of the icons in the strings.xml file, changed the typefaces of the entities i will use font-awesome in and tried using font-awesome on buttons and it worked, but i did the same for edittexts but there are strings...

Java - duplicate case label

I found some time ago a function to replace polish characters in text with "normal" version of this character. I used this in some projects earlier without problems, but now, when i just copied it, this doesn't want to work. But when I try to compile old projects in the...

How to keep IntelliJ IDEA from rearranging javadoc tags?

/** * Comment. * * <p>Hello * * @author me ([email protected]) * @version $Id$ * @since 0.1 * @checkstyle ClassDataAbstractionCoupling (500 lines) * @checkstyle ClassFanOutComplexity (500 lines) */ When I reformat my code with Ctrl+Alt+L, the @since is placed after the @checkstyle tags. Is there any way to disable javadoc...

IntelliJ Sync Eclipse files - Where is this setting saved?

In IntelliJ there is the option of linking IntelliJ-files with Eclipse-files. So that changes to dependencies make IntelliJ readjust .project-files and the other way around. This setting is chosen when importing the project into IntelliJ. Now, i wonder: Where is this setting saved and is it possible that i can...

Visualizing gradle dependencies in Intellij

Is there a way to visualize project dependencies for a gradle project in Intellij? For a maven project, if you right click in the pom.xml you get a Show dependencies option but there I don't see such an option for a gradle project. Does this feature exist for gradle project?...

How can IntelliJ refactor class constants to an external class?

I have a series of 30 or so private class constants declared and used in I want to refactor the declarations into public declarations in such that all occurrences of VARIABLE_NAME in are replaced with Constants.VARIABLE_NAME Tips appreciated on how to use this. I am using Android...

How to copy a photo from gallery to dataDirectory?

I'm trying to copy a file from photo gallery to dataDirectory on Android 5.0 device. Unfortunely Cordova camera plugin returns path in format like: content://media/external/images/media/8793 var options = { quality: 50, destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.PHOTOLIBRARY, saveToPhotoAlbum: false }; return $cordovaCamera.getPicture(options).then(function (result) { return handlePictureResult(result); }) $cordovaFile.copyFile('content://media/external/images/media/8793', null,...

IntelliJ Plugin written in Scala - doesn't work

I want to develop my own IntelliJ plugin and I would like to do it using Scala language. When I use Java, everything work perfectly, but I'm not able to run a simple AnAction implemented in Scala. Have a look at these code samples, I have two AnAction implementations, one...

Is it possible to highlight ObjC code in Intellij IDEA?

Intellij IDEA have IDE AppCode for iOS projects on ObjC/Swift. I am develop crossplatform app (android and ios supports) on Cordova which contain Java, JS and ObjC as base languages. And unforunately IDEA do not highlight ObjC code. I have not found a plugin that would it did. Is it...

ESLint: How to set .eslintrc to recognize 'require'?

I am new to ESLint, and I have successfully integrated ESLint with IntelliJ. Out of the box, my integration of ESLint did not recognize node, but basic review of documentation made clear that by creating the configuration file named .eslintrc at the root of my project folder (with the proper...

Is it legal to use IntelliJ's EAP versions for commercial use? [closed]

From my understanding, the EAP version has the ultimate features included in it. I am curious whether this version can be used for commercial use. I have no been able to find a definite answer. Thanks....

Unexpected top level exception: bad class file magic, in Android

I am trying to compile my android program via command line, using ANT. And the code compiles fine. But when the target -dex is executed, I get the following error: [dex] input: /Users/aditya/Desktop/workspace/Java/Play/bin/classes [dex] input: /Library/Java/Android/tools/support/annotations.jar [dex] Using Pre-Dexed annotations-5bd0afe28d834ceff67df1063f0f145b.jar <- /Library/Java/Android/tools/support/annotations.jar [dex] Converting compiled files and external libraries into...

Display artifact in Jenkins Build description

I would like to automatically display a artifact as part of the build description. Now I can do this by manually editing the build description but that would mean I have to do this for every build. Is there a way to automate this? This is what I would like...

How to inactivate an eclipse plug-in without uninstall it?

How to inactivate an plug-in in Eclipse Kepler SR2 without uninstalling it? I have a plug-in for Android, which is pretty big and causes eclipse starting slow. But I need the plug-in on some other projects. In Help -> About Eclipse > Installation Details -> Installed Software, there is only...

need wordpress plugin to show 3 type of different kind of text, image and 2 buttons

I have slider image on page in "featured work" section. I need plugin to create dynamic slider like image in section.I use many sliders like cyclone-slider but they show only title, description and image.

Why Intellij deletes obsolete files when trying to run DevMode?

I'm currently working on a GWT project in my company. Although DevMode works perfectly fine in eclipse, I still want to use Intellij Ultimate Edition for development. But after all setups were done (Facet, Run/Debug configuration) I'm getting this weird processing window saying "Deleting Obsolete Files..." when I run the...

JavaFX: Artifact displays empty window only

Preface: I am pretty new to JavaFX Made an simple image resizing application and need to build an artifact of the application. Using IntelliJ and Eclipse (tried both), i built normal JAR artifacts and JavaFX artifacts. Both are executable, but only show an empty window. When starting the application out...

Intellij JAVA_HOME variable

I started using Gradle and Intellij but I am having problems to configure Gradle's JVM. When I start a new Gradle project I am not allowed to define JVM as my JAVA_HOME variable. The following screenshots show what is happening: As you can see Intellij says that my JAVA_HOME variable...

Minecraft plugin sign reading

I've got problem trying to get values of sign lines in minecraft plugin. Here is my code: package pl.maccraft.regssal; import; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.block.Sign; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.block.SignChangeEvent; import org.bukkit.event.player.PlayerInteractEvent; public final class rgs...

Implementing one page scroll by Pete R

Im not good with jquery, js, scripts overall and i´m trying implementing this onepagescroll puglin by Pete R. but till now no sucess. Thinks i´ve done: body { margin: 0; font-family: 'Open Sans', Helvetica, sans-serif; min-width: 900px; } .header { background-image: url("img/fundo1.jpg"); background-size: cover; background-color: rgb(21, 21, 21); color:...

How to make a discourse plugin available for public posts?

I've developed a discourse plugin successfully. However, I need to be logged in into discourse in order to see the plugin working. Any ideas?...

How to disable plugin suggestions in Intellij IDEA?

In Intellij IDEA how can I disable plugin suggestions? Whenever I create a yml plugin in a NEW project it will suggest a plugin to me that I have already ignored and is annoying.

Install Ultimate edition IntelliJ plugins in Android Studio

I have Ultimate edition of IntelliJ Idea w/ a valid licence. There is a very useful plugin only available in full edition named Database Tools and SQL support that allows the developer to browse and run queries on sqlite database stored in phone. Now i need to use this plugin...

spring boot switching from in-memory database to persistent database

I have developed my web-application using spring-boot and spring-data-jpa and and in-memory database, and I have a couple questions: how can i now switch to a persistent, let's say, MySQL database? What do I have to change in my configuration? Can spring-boot set a database up for me with a...

Intellij web application on tomcat server shows http://localhost:8080/index.jsp instead of http://localhost:8080/myapp/index.jsp

I'm following a tutorial on udemy. In the tutorial he is using eclipse. But i'm following the course with intellij. Every thing works fine but one thing i keep noticing is that when he runs the servlets or jsp pages it is always shows the project name before the servlet(http://localhost:8080/myapp/index.jsp)....

Why main generation template is named psvm in IntelliJ?

According to help, main generation template is named psvm. Why didn't they name it just main?...

How to analyze code from other class than currently analyzed in SonarQube?

Case: I'm writing SonarQube rule that needs to check if manually created object is being closed. When it's not, issue should be raised. Let's assume that part related to determining if object is created manually (or not) is easy and not relevant. For purpose of this example it'll be...

Code styling without modifying the binaries

On the WebStorm for example and I believe in any Intellij product. You can easily refeactor the code and style it as you like from the setting 'Code Style'. But, the styling and refactoring actually change the binaries of the file. for example if you decide you want new line...

Why store the function on the element using data()?

I am trying to understand some code from the Swipebox plugin. There is a function declared. $.swipebox = function( elem, options ){ // plugin Jquery codes.. } Now this codes below I really do not understand. What is the main purpose of this code? Why does it save function to...

IntelliJ/Webstorm not finding import reference

I have the following project structure: root src scripts main.js foo.js Inside of my main.js file, I'm importing foo.js like so: import 'src/scripts/foo.js' When I click on the import statement above and go to Navigate -> Declaration I get a super helpful message that says Cannot find declaration to go....

Create a hyperlink to a project file in console output

Is there a way for me to write out a link to the console output that when clicked on directs to a project file in Intellij? For example, this happens when a run-time exception occurs. I see the stack trace and I can click on a link in the console...

Unable to run Java code with Intellij IDEA

I have just downloaded the IDE, and I want to edit my first Java file with it, I'm not interested in creating a whole project, just editing the single file. So I opened the file from my desktop with Intellij IDEA as I set it as my default program for...

Best to use Android Studio or Intellij Idea wth plugins?

We have an existing java code base where we use intellij idea for development. We are building an android application where we will be sharing code and other resources with the pre-existing code and resource base. As Android Studio seems mainly to be a modified version of Intellij my question...

Idea 14 - Maven 3 - pass parameters

I am looking for most efficient way to pass parameters to maven through idea 14 (I have just started working with idea). When I want to compile and deploy my application through maven itself, I just run this command mvn clean package tomcat7:redeploy -P localhost -Daugage_env=local. I dont know, how...

IntelliJ IDEA - Syntax Highlighting of SQL Inside Java Code

I am using IntelliJ 13 as an IDE for a project where communication with DB is done via Spring's JDBC Template. When I have code fragments in Java like the following one: getJdbcTemplate().queryForObject("SELECT CONVERT(VARCHAR(255), NEWID())", String.class); where getJdbcTemplate() returns initialized JdbcTemplate object, the IDE has proper syntax highlighting for the...

Intellij isn't catching non-exhaustive matches that use functions as guards

I found this block of code in our codebase: val appId: (String, Option[String]) = match { case Some(app) if hasAppId(app) => (Constants.AppId, case None => (Constants.AppId, None) } hasAppId returns a boolean. Clearly this match is non-exhaustive, but there's no compiler warning for it. If I change the...

Add project on outer level as dependency to module

I have a project that looks something like this: mainProject/ mainModule proj1/ module1 proj2/ module2 and what I'm trying to do is add proj1 and proj2 as dependencies to mainProject. I've gotten it to the point where I can import classes from the projects and everything seems to work fine...

IntelliJ - use imported modules as dependencies like maven projects in Eclipse

I've been asking myself this question for a couple of years but never really found the solution. I used to work with eclipse (on maven java projects). I could import a project -let's call it 'proj-A'- and if one of proj-A's dependencies was found in the workspace with the same...

Why IDEA shows java files as invalid in my Android project?

I am trying to build apk from this repository. I have problem: idea show .java files as invalid, you can see it on this pic: What am I doing? I download mentioned (git) sources and copy sources to some directory I open this directory from IDEA as directory In project...

Fluentd parser plugin

I am trying to implement a parser plugin for fluentd. Below are the configuration file and the plugin file. Fluentd config file. <source> type syslog port 9010 bind x.x.x.x tag flog format flog_message </source> Plugin file module Fluent class TextParser class ElogParser < Parser Plugin.register_parser("flog_message", self) config_param :delimiter, :string, :default...

Eclipse extension point for Open Resource/Open Type dialogs

Is there an extension point where I can customize the search behavior of these dialog boxes? Or am I better off making an extensions that just overrides those hotkeys with dialog boxes that subclass FilteredResourcesSelectionDialog?...