3822 Eclipse Mode Fun stuff 16 Alexey Efimov 4 7617 aefimov sbolz 2008-11-29 0.1.1

Eclipse Mode

Compatible with  IntelliJ IDEA
29.11.2008
7 617
Enable Eclipse features in IntelliJ IDEA such as incremental compilation.

Download plugin

11.08.2013
Hi, there, how about an update for IDEA 12?
14.02.2013
I would have given it a 5, but I really do not like the crazy auto-display of the messages window after every compile done from a brief moment of hesitation. If they can fix that, I would gladly re-install and continue to use this plugin. I just can't handle my screen re-drawing every few seconds and re-adjusting the windows I have (it also changes the location of the current cursor as a result of this too, causing further errors).
20.01.2013
I don't have a messagebox appearing. Maybe check your configuration? The plugin makes it so much faster to do tdd :-)
25.01.2012
Message window always pop ups, very annoying.
tde
14.12.2011
I uploaded a working version that contains Valerii's modifications on http://plugins.intellij.net/plugin/?idea&id=6643
13.10.2011
Hi guys, are there any plans on updating this plugin for IDEA 10.x?

A simple and useful feature. Shame to lose it :(
05.09.2011
Hi developers of the plugin, I would like to suggest change to implementation which will solve the errors with idea 10 and higher.
In class org.intellij.trinkets.eclipseMode.incrementalCompiler.SaveListener

method private void executeMake(VirtualFileEvent event) - should be changed and method void executeMakeInUIThread(VirtualFileEvent event) should be added as follows:

private void executeMake(final VirtualFileEvent event) {
final Project project = ProjectUtil.guessProjectForFile(event.getFile());
ProgressManager.getInstance().run(new Task.Backgroundable(project, AnalysisScopeBundle.message("analyzing.project"), true) {
public void run(@NotNull ProgressIndicator indicator) {
executeMakeInUIThread(event);
}
});
}

private void executeMakeInUIThread(VirtualFileEvent event) {
EclipseMode eclipseMode = EclipseMode.getInstance();
if (event.isFromSave() && eclipseMode.getSettings().INCREMENTAL_COMPILATION_ENABLED) {
Project[] projects = ProjectManager.getInstance().getOpenProjects();
for (final Project project : projects) {
if (project.isInitialized() && !project.isDisposed() &&
project.isOpen() && !project.isDefault()) {
final ProjectFileIndex projectFileIndex = ProjectRootManager.getInstance(project).getFileIndex();
final Module module = projectFileIndex.getModuleForFile(event.getFile());
if (module != null) {
final CompilerManager compilerManager = CompilerManager.getInstance(project);
if (!compilerManager.isCompilationActive() &&
!compilerManager.isExcludedFromCompilation(event.getFile()) &&
!compilerManager.isUpToDate(new ModuleCompileScope(module, false))) {
// Changed file found in module. Make it.
UIUtil.invokeAndWaitIfNeeded(new Runnable() {
public void run() {
compilerManager.make(module, null);
}
});
}
}
}
}
}
}

I am not sure if such version will work with older versions of idea, should I fork your project to "Eclipse Mode for idea 9 and 10"?
Anonymous
03.06.2011
Same error in 10.5
Anonymous
07.05.2011
I'm also using intellij 10 ultimate and I'm running into the same assertion error.
Anonymous
27.03.2011
Getting the following exception in IntelliJ 10 Ultimate:

null
java.lang.AssertionError
at com.intellij.openapi.project.DumbServiceImpl.waitForSmartMode(DumbServiceImpl.java:253)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1809)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1226)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:736)
at com.intellij.compiler.impl.CompileDriver.access$300(CompileDriver.java:92)
at com.intellij.compiler.impl.CompileDriver$5.run(CompileDriver.java:219)
at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:156)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:474)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.run(ProgressManagerImpl.java:434)
at com.intellij.openapi.progress.Task.queue(Task.java:65)
at com.intellij.compiler.progress.CompilerTask.start(CompilerTask.java:357)
at com.intellij.compiler.impl.CompileDriver.isUpToDate(CompileDriver.java:213)
at com.intellij.compiler.CompilerManagerImpl.isUpToDate(CompilerManagerImpl.java:249)
at org.intellij.trinkets.eclipseMode.incrementalCompiler.SaveListener.executeMake(SaveListener.java:58)
at org.intellij.trinkets.eclipseMode.incrementalCompiler.SaveListener.contentsChanged(SaveListener.java:24)
Anonymous
15.12.2010
The plugin works perfectly with IDEA 10.

After the first launch of IDEA close it, extract the plugin to the ..\plugins-directory, launch IDEA again an inside the Settings you can select and activate the Plugin.

To test it, just produce an error in a correct class-file (type something stupid) and press strg+s to save the class-file. The compiler will immediately be activated and you see the result (which is an compiling error) in the console window from IDEA.
Anonymous
15.12.2010
It looks like EclipseMode has top working after IntelliJ 10 :-(.

Anonymous
02.12.2010
Not working on 10, getting the assertion error that was already posted here
Anonymous
13.11.2010
I'm sure it'd be great if it worked with 9.0.4
Anonymous
18.10.2010
Unfortunately ,it's not compatible with idea9.03
Please  sign in  to leave a comment.