Removing tabs in tool window (ContentManager.removeContent version) Follow
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:
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?
Please sign in to leave a comment.
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 ?
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
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
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
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.
"Develop with Pleasure!"
It explains everything. Thanks for hint guys.