Quantcast
Channel: JetBrains Developer Community : All Content - IntelliJ IDEA Users
Viewing all 5481 articles
Browse latest View live

Any JavaDocs preview window to preview the JavaDocs I write?

$
0
0

Hi

I am looking for a JavaDocs preview window or ability so that I could see a preview of the JavaDocs I am writing for a class or method. Any such option?

Thanks.


IntelliJ IDEA 12 is with all the functionality of WebStorm EAP 6?

$
0
0

I am hoping to buy IntelliJ 12 license soon. I work alot on Java & HTML5 + Javascript now a days.

 

If I purchase IDEA 12 do I get all the goodies of WebStorm 6 (once release) for HTML5+Javascript development or do I need to buy WebStorm 6 as well?

 

Thanks

How to use CVS -kk options in IDEA when performing a diff?

$
0
0

Hi there,

 

I have a CVS project that I checked out files using -kk option (only keywords and no values expanded). After I modified a file, and then I perform a CVS diff inside the IDEA, it will compare the server files as with -kkv (expanded values) to my modified files. Thus the result always has a section marked as changed lines due those these expended keyword values. Is there way to tell IDEA to compare with the modes I used during checkout and not expand the keyword values?

 

Thanks,

Zemian

Tomcat config question...

$
0
0

Hi all..

 

I'm playing around with the Web4J framework and can get it to run just fine outside of the IDE per the tutorial on that site.  However, I'm not sure what to do with the following XML tomcat config material --

 

<!-- Example of a Tomcat configuration file for this application. -->

<!-- The 'YOUR_MYSQL_...' items refer to a MySQL account. The given values are phony. Please change them. -->

<!-- Assumes MySQL is running on the default port 3306. Please change if necessary. -->

 

<!-- Maps a URL context under Tomcat to a location on your file system. Please change 'docBase': -->

<Context docBase="/Users/nrf/projects/electricity" reloadable="true">

<Resource

   name="jdbc/electricity"

   auth="Container"

   type="javax.sql.DataSource"

   username="test"

   password="test"

   driverClassName="org.postgresql.Driver"

   url=" jdbc:postgresql://localhost:5432/electricity?useServerPrepStmts=false"

   maxActive="10"

   maxIdle="5"

/>

</Context>

In the standalone tutorial, the reader is responsible for installing the above xml file into the tomcat directory [TOMCAT_HOME]\conf\Catalina\localhost\

 

If I'm using Idea Ultimate, do I need to still do that by hand or is that something the IDE does for me?

Groovy @SuppressWarnings("unused") goes unused

$
0
0

I keep trying to put @SuppressWarnings("unused") on a few class variables in my Groovy class that are unused. But it doesn't remove the warning from IntelliJ. Not sure if I have a typo or something wrong on my end.

 

Some short examples where it doesn't work

 

@SuppressWarnings("unused")
def createPot ={ handDocument -> 

 

 

@SuppressWarnings("unused")publicinterface MongoDBRepository {   @SuppressWarnings("unused"publicstaticfinal String JOURNAL_SAFE = "JOURNAL_SAFE"  publicstaticfinal String SAFE = "SAFE"  publicstaticfinal String MAJORITY = "MAJORITY"  publicstaticfinal String NORMAL = "NORMAL" }

 

 

Thanks

 

Mark

How do i convert literal/field from camelcase to underscore and back?

$
0
0

Hi All

Could you pls help with the subj

 

Thanks in advance, Alex

Working on plugin for IntelliJ, question about com.intellij.tools.Tool class

$
0
0

Hi!

 

I'm writing a plugin for IntellJ IDEA to convert Eclipse specific launchers, and one of the functions will be an ability to create external tools configuration. For that I'm using com.intellij.tools.Tools object and com.intellij.tools.ToolManager combination. Unfortunately, Tool class has default accessors on a few methods, such as setName(), setEnabledOnMainMenu() and so on and those attributes are required

 

Right now I have a workaround, with wrapper class, which overrides original getName() and isEnabled() with my implementation, so the object can be saved by ToolManager. All works great, new external tool is created, it is displayed in the menu and works as expected. Yet if the user decides to update configuration immediately after it was created, he/she will be greeted with unwelcoming blank External Tools configuration dialog. It happens because UI panel is using method copyFrom() on Tools object and that method copies field-by-field, wihout accessor methods (doh!), the resulting Tool will have null name and UI panel is not ready for that.

 

Nevertheless, when someone restarts IDEA and then reopens the dialog, all works just fine, because all tools are saved with ToolsProcessor in XML and then retrieved back, using accessor methods (yay!). That class is also not available outside of the package.

 

To make the story short, how do I get around it, should I open support ticket or get contributor access and just change it myself?

 

Thank you,

Andrey

 

---

Original message URL: http://devnet.jetbrains.net/message/5474585#5474585

 

line length limit format

$
0
0

Hi,

 

Is there a way so that when Code (menu) -> Reformat Code... command is used, all the lines are automatically trimmed down to the specified length and the remaining code is moved to next line? Thanks

 

The right margin for editing windows was set in the the Code Style section.


run ALL unit tests in ALL modules?

$
0
0

hi..

 

is there a way to run a unit test (with and without code coverage analasys) in ALL modules of the project?

IDEA and Subversion: show current active branch somewhere

$
0
0

I'm using IDEA 12.0, we have Subversion and a strict policy about changes to trunk, any change should go to a separate branch first, and after closing a ticket merge master merges changes back to trunk.

So my workflow looks like:

1) Create a new branch

2) Work in this branch

3) Ask merge master to merge my changes back to trunk

 

I have found 2 ways for this workflow in IDEA: checkout each branch to a new dir or update/switch to a branch and then back to trunk.

First approach is quite slow, and I also have to manually copy project files and redefine some config files. So I end up with second approach.

But the problem is that IDEA doesn't show current branch in some good visible area, and sometimes I forget what branch aI'm working on, and have to go to Changes -> Working copy info -> Refresh

 

Is there a way to show current branch in a window titile or in a status bar (as IDEA does for git)?

Why IntelliJ gives red errors when source compiled fine?

$
0
0

Hi there,

 

Attached please find a strippled down java-demo case that I have. This project (4 java files) compiles under Oracle JDK6 using Maven. The IntelliJ IDEA (12 CE) also able to "Make" the project without errors. However when I open the FooMain.java file in editor, it shows a RED error line that says something like "The parameter can not be applied". So I have two questions:

 

1) Why IntelliJ proceed to tell me RED errors when the source files compiled fine? Is this a bug or expected? I am using default settings from the IDEA CE 12.0, and I have not change any validation rules.

 

2) I understand that the provided Java demo code is not the best way to use generics, but it compiles and I am not able to change the similar usage in my real code due to many reasons. So now, how do I disable this RED error in IntelliJ so I can view the rest of the project code without hindering?

 

Thanks,

Zemian

How to reference sources in a separate IntelliJ project

$
0
0

How should I go about adding a link to the sources for a library if the source is part of another IntelliJ IDEA project? If I create a Path Variable for the library sources, Intellij will automatically update any paths in the project files (.iml files) of the library project to use the new path variable, which is problematic.

 

Some possible solutions which do not appear to be supported:

 

  1. Use an environment variable instead of a path variable. IntelliJ does not support using environment variables in file references (in .iml files or library .xml files).
  2. Limit the scope of a path variable to a single project. Path variables are global to all projects and all instances of IntelliJ. There does not appear to be any sort of per-project path variables.
  3. Force IntelliJ to not substitute a path variable for a given project. IntelliJ will always automatically update the paths in .iml files to use a path variable whenever possible.

 

As an example, I have a repository named /CollaboRhythm with a library /CollaboRhythm/CollaboRhythm.Shared. I also have a fork of the repository at /CollaboRhythm2. I have a plugin project named /DiabetesPlugin which has a dependency on /CollaboRhythm/out/production/CollaboRhythm.Shared/CollaboRhythm_Shared.swc and the sources /CollaboRhythm/CollaboRhythm.Shared/src. If I make a path variable COLLABORHYTHM_HOME for /CollaboRhythm, then /CollaboRhythm/CollaboRhythm.Shared/CollaboRhythm.Shared.iml will be updated to use COLLABORHYTHM_HOME (which is problematic). If I then change COLLABORHYTHM_HOME to point to /CollaboRhythm2, /CollaboRhythm/CollaboRhythm.Shared/CollaboRhythm.Shared.iml will now use /CollaboRhythm2/out/production/CollaboRhythm.Shared/ for the output folder instead of /CollaboRhythm/out/production/CollaboRhythm.Shared/

 

As a workaround I am currently placing my plugin project (DiabetesePlugin) in a subdirectory of CollaboRhythm (/CollaboRhythm/contrib/DiabetesPlugin) and then when I want to use the plugin with a different fork of the CollaboRhythm I have to move the folder (for example, to /CollaboRhythm2/contrib/DiabetesPlugin).

Customer Support Question and PHP Woes

$
0
0

Edit: I went ahead and bought IntelliJ IDEA. I look forward to tinkering with it.

 

Hello. My name is Mooney and I just heard about IntelliJ IDEA today from Google+. I saw that this software was 75% off today and that it does everything I need: Android and easy PHP development. My machine is running Ubuntu. I was able to install IntelliJ IDEA and run it perfectly fine. My problem came in when I tried to install the PHP plugin here: http://plugins.jetbrains.com/plugin/?idea&pluginId=6610. Using the latest version of the plugin and IntelliJ.

 

My Question

Is the customer support sufficient enough to get me full PHP support with debugging, intellitrace, etc? If the support is good, I will definitely buy IntelliJ. I'm not worried about fixing my current installation right now, just purchasing the software.

 

Thank you,

Mooney

 

Message was edited by: Justin Mooney

Resource Bundle editor issues.

$
0
0

Good morning,

 

I have two issues (well, one issue and one feature request actually) regarding the resource bundle/property editor. I just wanted to make sure that I don't miss anything nor that there are already a bug/feature request filed.

 

1. So the bug:

 

When I edit my resource bundles in IDEA I can switch between the property editor (where I can edit a single file) and the resource bundle editor. Now, each time I switch from the property editor to the resource bundle view the panel on the left side (where all your resource keys are listed) will be re-layouted to it minimum horizontal size. That is really annoying. I added a screenshot where you can see how it looks.

 

I'm using Ubuntu 12.04, JDK 1.7u10 and Idea IU 12.0. But i had the same behavior under previous versions of IDEA as well. So it is clearly not a regression bug.

 

2. About the feature request:

 

It would be really great if there would be a way to link the property editor with the resource bundle editor. So if I edit the line with key "a.b.c" in the property editor that key would also be selected in the resource bundle editor as well so I can see immediately all the other values for that key.

 

So my question is: is this already possible in IDEA?

 

Regards,

Stefan

Status IDETalk


Optimal JSDoc annotations for JS code completion

$
0
0

I have a large JS project with namespacing and inheritance. I'm looking for some tips for the optimal JSDoc annotations to use to get code completion working in IDEA 12.

 

Here are some quick classes for demonstration.

ClassA
// ...namespace setup here...

/**
 * @class ClassA
 */
com.demo.jstest.ClassA = function ClassA() {
    this.functionOnClassA = function() {};
};
ClassB
// ...namespace setup here...

/**
 * @class ClassB
 * @extends ClassA
 */
com.demo.jstest.ClassB = function ClassB() {
    // ...inheritance setup here...    this.functionOnClassB = function() {};
};
Client
// ...namespace setup here...

/**
 * @param {ClassA} classAInstance
 * @param {ClassB} classBInstance
 * @class Client
 */
com.demo.jstest.Client = function Client(classAInstance, classBInstance) {
    // Want to use code completion here
};

In Client, code completion works as expected for the direct members of each class; i.e. classAInstance has functionOnClassA and classBInstance has functionOnClassB. But classBInstance does not have functionOnClassA, despite the @extends annotation.

 

If I replace all of the class names in the JSDoc annotations with fully-qualified names (i.e. com.demo.jstest.ClassA, com.demo.jstest.ClassB, etc.), the code completion does start including functionOnClassA on the classBInstance.

 

Do I really need to put fully-qualified names everywhere in my JSDoc annotations, or can I use some other combination of JSDoc tags to get the desired result?

How to install java7 docs?

$
0
0

I have recently purchased IntelliJ IDEA and I am struggling to install java7 docs , so that I can use them in the editor , but I've had no luck with this task so far.

I would appreciate any help on this topic.

Thank you.

What is "Roots Switches" used for?

$
0
0

Hi there,

 

I have a question and a sugestion to Intellij.

 

Question) What is the purpose and usage of "Roots Switches" item under Tool Windows > Changes > Local tab?

 

Suggestion) When working with CVS, the only place to show me what branch I am working on is under this "Roots Switches" tree item. I think the name and the way it is hidden is so user unfriendly. Should it be display some where more easily seen and related to CVS menu item?

 

Thanks

- Zemian

Prefer non-active background spinner icon not displayed

$
0
0

Hi,

 

In version 12, we have an grayed out spiky spinner icon on bottom of status bar even if there is no active background tasks. Of course we see it spin when active, but when nothing is running, I prefer it not to show at all. Having the icon (even if it's grayed out) is distracting.

 

Do other users feel the same? Should Intellij improve this?

 

Thanks,

- Zemian

Ordered products

$
0
0

I'm from Poland and I tried to buy IntelliJ 12 license, but I had problems with paying via paypal. After I tried to refresh site I got information that my order need to be checked. I can't pay for it, neither can I see what actual went to my cart and I lost web page with order id, so I have no clue what I will be charged for.

 

Is there any way to see productes I ordered? Because I want to buy license before "End of the World" promotion ends.

Viewing all 5481 articles
Browse latest View live