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?





3 comments
Comment actions Permalink

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.

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?


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


0
Comment actions Permalink

Confirmed xena's ClassCellRenderer has matching sig. :^O

0
Comment actions Permalink

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

0

Please sign in to leave a comment.