ClassCellRenderer
This is a question about the class com.intellij.refactoring.ui.ClassCellRenderer.
The source code for idea10 downloaded from git, includes a constructor for ClassCellRenderer with signature and implementation:
public ClassCellRenderer(ListCellRenderer original) {
super(original);
myShowReadOnly = true;
}
dated from 2002
In a separate project, a pugin project, is created with the plugin SDK specfied as any of the Community Editions 10-10.5 or the Ultimate Editions 10-10.5, the definition of ClassCellRenderer does NOT have the same signature. Instead of
constructor signature:
public ClassCellRenderer(ListCellRenderer original)
it only has constructor signature
public ClassCellRenderer(boolean b)
How could the source downloaded from git be one thing but the lib from the plugin SDKs be another? The class in question is used throughout the source downloaded via git in refactoring dialogs. The goal is to re-use the original refactoring dialog source code in a novel refactoring. The API seems to have changed, but the date on the ClassCellRenderer is 2002 so it's not a new API from what was pushed to git just yesterday or suchlike.
What has to be done to get the source pulled from git to be the same as the libs that IntelliJ selects as Plugin SDKs when going through the create-new-plugin dialog?
请先登录再写评论。
Hello bassybassy,
This class was recently refactored; the API you see in the master branch
in git is what will become IntelliJ IDEA 11. The IntelliJ IDEA 10.5 release
is in the 'xena' branch; in that branch, the class still has the old signature.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Confirmed xena's ClassCellRenderer has matching sig. :^O
You can even checkout an exact version by checking out the according tag, e. g. idea/107.105 for 10.5. Find other build numbers here: http://confluence.jetbrains.net/display/IDEADEV/Build+Number+Ranges