Все вопросы: [intellij-idea]

139 вопросов

11
голосов
3ответов
9188 просмотров

IDEA Community Edition versus Eclipse

How does the IDEA Community Edition compare with Eclipse?

147
голосов
4ответов
47863 просмотров

How do I switch to another subversion branch in Intellij?

What is the concept of switching branches in IntelliJ? I must be either blind or an idiot... I would assume there'd be a "switch to copy" option or something like that, but there is none... EDIT for clarification: my prev IDE had a simple "switch to copy" option, which updated all files being d...

35
голосов
3ответов
28157 просмотров

Am I missing something about the Intellij announcement?

There seems to be a lot of press regarding the announcement that Intellij is being made available for free as an open source tool. Yet from what I read of the licenses, that's only true if the end product is open source and free. If you plan on selling your end product, you can't use the free c...

4
голосов
3ответов
1177 просмотров

IntelliJ Community Edition - How to import an Eclipse project?

There seems to be no eclipse support in the IntelliJ Community Edition. Do you know a smart way to import an eclipse project into IntelliJ Community Edition? See also http://blogs.jetbrains.com/idea/2009/10/intellij-idea-open-sourced/

7
голосов
4ответов
6531 просмотров

How to use Intellij IDEA to its full functionality?

Ok. I need to use Intellij to its full functionality and I want to buy this book: IntelliJ IDEA in Action http://www.amazon.com/IntelliJ-IDEA-Action-Stephen-Saunders/dp/1932394443/ref=sr_1_1?ie=UTF8&s=books&qid=1254945349&sr=8-1 The last version of Intellij is v8 (v9 very soon), but...

6
голосов
2ответов
10182 просмотров

IntelliJ "Debug info unavailable" - how to fix?

I have a Java Tomcat web application built in IntelliJ that calls code in another module called "Stuff". I've attached the source of the relevant code to "Stuff" so I can step into it and hit breakpoints, but I cannot see variables or their values. Watches don't work either. All I get is "Debu...

2
голосов
1ответов
232 просмотров

Intellij module wide error analysis like R# solution wide analysis

Does IDEA have module wide error analysis like R#'s solution wide analysis? I'd like to hit F2/Alt-F12 and jump to the next error in my module.

23
голосов
1ответов
11792 просмотров

How do I turn off error validation for annotations in Intellij IDEA?

I have a developer counterpart who uses Eclipse, which inserts annotations in various positions automatically in our JUnit tests. However, when I open the test in IDEA, the annotation is underlined red, and the annotation reads "@Override is not allowed when implementing interface method". I don'...

6
голосов
4ответов
2014 просмотров

What features do you miss most when switching from IntelliJ to XCode?

I've started to use XCode several months ago, after using IntelliJ for several years, and there are quite a few features that I really miss. XCode is not that bad, but it is lacking some basic stuff. To trigger the discussion, here are some of the features that I miss most, who knows maybe someo...

2
голосов
2ответов
900 просмотров

IntelliJ navigation

I'm using IntelliJ to do Java Development for an application where we use JSF in a few places. In the .jsp file I have defined my backing class and the code runs properly. My question is: How do I set up my environment so that when I center click on the method names, which use EL format, Intelli...

15
голосов
5ответов
15668 просмотров

Keyboard shortcut synchronization with Eclipse and IDEA?

My time spent programming is split between what I do at work, and the programming I do at home in my spare time. At work, we use Vista machines and IntelliJ IDEA 8, whilst at home I use Mac OS X and Eclipse. As you can imagine, my ability to easily switch between the two is getting more difficul...

1
голосов
1ответов
2527 просмотров

Struts 2 integration with Tiles issue

I started to integrate struts 2 with tiles on IntelliJ environment. I searched several tutorial on the web, but I still see some wierd symbol not found issue. This is the web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi=...

4
голосов
1ответов
2639 просмотров

How can I download sources for particular Maven artifact in IDEA?

In Eclipse there is an opportunity to select a Maven artifact you have a dependency on and download sources or documentation only for it. Now I am struggling to find that functionality in IDEA. But seems to be it provides only opportunity to download sources for ALL dependencies. Or I am wrong?

9
голосов
3ответов
2125 просмотров

Idea Live Template to Log Method Args

I would like to be able to create a live template in Jetbrain's Idea that will log the method's arguments. Let's call it "larg". It would work like: public void get(String one, String two) { larg<tab> to create public void get(String one, String two) { log.info("get: one = " + o...

5
голосов
6ответов
6345 просмотров

Why use Intellij, or what to do during the evaluation

I downloaded IntelliJ IDEA and started with the 30 day evaluation. Now I'm just wondering, why should I use IntelliJ for plain old java developement (so no Hibernate, JSP, etc)? It doesn't look that different from eclipse or NetBeans, so I hope some IntelliJ guru can give some examples of things...

129
голосов
4ответов
23179 просмотров

RegEx backreferences in IntelliJ

I want to use IntelliJ's find-and-replace feature to perform the following transformation: // Replace this model.put('foo', 'bar') // With this model['foo'] = bar I've tried the following: Text to find: model.put\((.*),(.*)\) Replace with: model\[\1\] = \2 But Intellij doesn't seem to recogn...

2
голосов
1ответов
1278 просмотров

duplicate jdoconfig.xml on classpath during unit tests in Intellij IDEA (9.x pre-release)

As described here, IDEA is adding the jdoconfig.xml to the class path twice during unit test runs. Can anyone suggest a work-around for this? /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java -Dgwt.args=-gen /Users/jgc/Library/Caches/IntelliJIDEA9M1/gwt/recipes.recipe...

6
голосов
3ответов
5404 просмотров

IntelliJ: configure several Tomcat configurations with different server.xml

In IntelliJ, I would like to have different configurations to start several Tomcat instances, but with different server.xml config files. Is there a way to do this?

1
голосов
1ответов
423 просмотров

IntelilJ 8.1 with 2 GWT modules

I'm trying to add the gwt-debugpanel into my project. I'm using IntelliJ 8.1, and I've setup a stripped-down, bare-bones project for testing. The source tree looks like this: gwt-multi-module src com.gindin dummy DummyApp.gwt.xml client DummyApp.java ...

3
голосов
1ответов
10572 просмотров

In IntelliJ IDEA, why is the Subversion integration not working for me (all Subversion-related commands are always disabled)?

I configured IntelliJ IDEA 6.0.6 to use Subversion for version control. The Subversion menu item now appears in the context menu when I right click a Java file within the project. However, all the sub menu items are disabled: Subversion> Add Subversion> Check Subversion> Edit Properti...

3
голосов
2ответов
659 просмотров

JSTL foreach and intellisense

With a code like this: <c:forEach items="${customers}" var="customer"> ${customer.name} </c:forEach> IntelliJ Idea is able to infer that the type of the "customer" variable in the ForEach loop is of the class "Customer" (given that Customers is something like List). If I refact...

1
голосов
1ответов
1001 просмотров

Does Intellij Idea 8.1.x install and run on Mac OSX 10.6?

Does Intellij Idea 8.1.x install and run on Mac OSX 10.6 (snow-leopard)? Are there any special steps needed to get it to work?

56
голосов
7ответов
30502 просмотров

Step through JDK source code in IntelliJ IDEA

How can I step through JDK source code in IntelliJ IDEA 7 and see the debug info? I can currently hit breakpoints and step through the code, but the debug info is not available. This means I can't see the value of local variables. I only want to step through the source code of one class, if th...

5
голосов
3ответов
2580 просмотров

Run all tests in a source tree, not a package

My unit tests are in a separate directory tree from my integration tests, but with the same package structure. My integration tests need external resources (e.g. a server) to be available, but my unit tests are properly independent of each other and the environment. In IntelliJ-IDEA (v7) I have ...

1
голосов
4ответов
523 просмотров

Bluescreen of death during Java development on a Leopard - any ideas how to solve this?

I develop using Java 5 and 6 on Intellij IDEA 7 and 9M1. From time to time (during run/compile) my Mac (10.5.7) will die with a Bluescreen of death. Has anybody else had this issue and somehow managed to solve it? If so, how? Any suggestions other than running the IDE in a VM?

115
голосов
20ответов
75753 просмотров

IntelliJ IDEA way of editing multiple lines

I've seen this done in TextMate and I was wondering if there's a way to do it in IDEA. Say I have the following code: leaseLabel = "Lease"; leaseLabelPlural = "Leases"; portfolioLabel = "Portfolio"; portfolioLabelPlural = "Portfolios"; buildingLabel = "Building"; What is the best way to ...

3
голосов
6ответов
926 просмотров

How can I automatically validate that I have an HTML Id on every element?

The testers on my project want a unique HTML ID on every page element to make their automated testing easier. It's hard for me to remember to do this, because I don't need the IDs for development. How can I ensure that I don't forget? I thought maybe something like Checkstyle could tell me, or...

3
голосов
2ответов
1905 просмотров

regex for that excludes matches within quotes

I'm working on this pretty big re-factoring project and I'm using intellij's find/replace with regexp to help me out. This is the regexp I'm using: \b(?<!\.)Units(?![_\w(.])\b I find that most matches that are not useful for my purpose are the matches that occur with strings within quotes,...

29
голосов
3ответов
10619 просмотров

How do I install a specific version of an IDEA plugin?

I have experienced problems since moving to the latest version of one of the IDEA plugins I use. I can download ZIP files of previous versions of the plugin from their website but I can't find any installation instructions for how to manually install a specific version of a plugin. Anyone know h...

12
голосов
4ответов
8310 просмотров

How do I properly setup a multi-module Maven project with sliding release cycles

I'm trying to work out the best way to setup our multi-module Apache Maven project in a way that allows for disparate release cycles of modules, and doesn't introduce dependency issues when debugging the project. We currently have a setup along the lines of: [email protected] parent-1.1-SNAPSHOT...