Removing tabs in tool window (ContentManager.removeContent version)

I use IDEA 7.0.2 and there is version of removeContent with following signature: removeContent(Content content, boolean dispose)
I compile my project using maven and I have following dependency in pom:
com.intellij.idea openapi 7.0 7027 compile ]]>

When compiling using maven I get error that signature of removeContent is wrong and it should be:
removeContent(Content content)

It means that there is an incompatibility between openapi.jar in version 7.0.2 and version marked as 7027 in maven repository.

Isn't that strange? Such API change between 7.0 and 7.0.2?
Is there other way to remove ToolWindow content which is compatible between versions?

0
5 comments

this is strange, according to IDEA API Comparator there is no difference in this interface between 7126 and 7.0.3 (7626)
At least according to my installed IDEAs.

And i would be interested in knowing in which public repository did you find openapi.jar ?

0
Avatar
Jacek Jaroczynski

I cannot use API Comparator as it doesn't work with IDEA 7.0.2.
I use IDEA 7.0.2 marked as 7590 with method signature removeContent(Content, boolean).
Maven downloads version marked as 7027 (according to pom settings) from http://mevenide.codehaus.org/m2-repository/com/intellij/idea/openapi/7.0/openapi-7.0-7027.jar
and method signature there is removeContent(Content) according to error returned by maven.

It seems there is API change between 7.0 and 7.0.2

0

according to my IDEA 7.0 install, build number for 7.0 is 7361, seems the mevenide folks deployed an older eap
You can check for yourself the build numbers for the RCs and published versions on http://www.intellij.net/forums/forum.jspa?forumID=7&start=0

For IDEA comparator, it's actually pretty simple to make it work using 7.0, here is the workaround

quote from an old post of mine from plugins forum, but it's currently broken

I just found a workaround that will allow you to wait for Alexey to be able to release a new version.

You just need to copy the following file in the apiComparator plugin folder (by default $\.IntelliJIdea70\config\plugins\apiComparator\lib)
asm-all-2.2.3.jar : found here http://repo1.maven.org/maven2/asm/asm-all/2.2.3/asm-all-2.2.3.jar

0

Hello Jacek,

Given that build 7027 is a very old EAP build of 7.0, it's quite natural
that there have been API changes after that. 7.0 release build is 7361.

I cannot use API Comparator as it doesn't work with IDEA 7.0.2.

I use IDEA 7.0.2 marked as 7590 with method signature
removeContent(Content, boolean).

Maven downloads version marked as 7027 (according to pom settings)
from
http://mevenide.codehaus.org/m2-repository/com/intellij/idea/openapi/7
.0/openapi-7.0-7027.jar

and method signature there is removeContent(Content) according to
error returned by maven.

It seems there is API change between 7.0 and 7.0.2

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Jacek Jaroczynski

It explains everything. Thanks for hint guys.

0

Please sign in to leave a comment.