Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Custom Editor Presentations sample missing method, help?! Solved

In the wiki page for custom presentation development, the sample Star application uses a method call in addListeners() that is not found with the 3.0.1.1 sdk classes..

<code>
private void addListeners() {
   PresentationHandlerManager mgr= (PresentationHandlerManager) getSite().getAdapter(PresentationHandlerManager.class);
   if (mgr != null) {
      mgr.addPresentationUpdater(fPresentationUpdater, getDescriptor());
   }
}</code>
anyone know what this should be replaced with?
it appears in some of the other code to be
getPresentation();

0 votes



4 answers

Permanent link
but I get an exception
java.lang.NoSuchMethodError: com.ca.extensions.DeliverableFromWorkitem.getPresentation()Lcom/ibm/team/workitem/common/internal/presentations/PresentationDescriptor;
on that call.

I find it interesting that this class is com/ibm/team/workitem/common/internal/
is not the same one where this method is defined.
com/ibm/team/workitem/ide/ui/internal/presentations

I restarted the test eclipse clean, but still see this same error

0 votes


Permanent link
the Star Sample fails the same after changing the getDescriptor() to getPresentation()

0 votes


Permanent link
anybody?  trying to run the samples on 3.0.1.1, it doesn't compile
and changing to what appears to be the same code in the official object type parts
yields a 'no such function' exception.. yes, duh,  its looking in the wrong class tree

com/ibm/team/workitem/common/internal/  - not here
instead of
com/ibm/team/workitem/ide/ui/internal/presentations -- its here

0 votes


Permanent link
Resolution:

when I built the projects, both mine and the sample, I have V4 SDK selected as the plugin target platform.

and altho I changed it, it did not actually change. (even tho the code compiled ok).

when I changed it from 3.0.1.1 to 3.0.1, then suddenly everything reset.
now the sample works and my code does not crash..

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,943

Question asked: May 02 '13, 5:39 p.m.

Question was seen: 5,581 times

Last updated: May 03 '13, 1:35 p.m.

Confirmation Cancel Confirm