| RE: RE: RE: [subversive-dev] subversive extension |
|
So, in my last post, at Example1 when executes CommentComposite commentComposite = ((SBMCommitPanel)panel).getCommentComposite(); I added try…catch block. It seems that exception happens on this line: Java.lang.ClassCastException org.polarion.svn.ui.local.commitPanel
cannot be cast to com.my.mypackage.SBMCommitPanel. So, why it happens? Here is my SBMCommitPanel class: public class SBMCommitPanel extends CommitPanel
implements ICommentDialogPanel { private Button associateIssueButton; protected IResource []resources; public SBMCommitPanel(IResource[]
resources, int msgType) { super(resources, msgType); } public SBMCommitPanel(SBMCommitPanel
commiitPanel) { this(commiitPanel.resources,
CommitPanel.MSG_OVER_AND_COMMIT); } public void saveChanges() { super.saveChanges(); } public CommentComposite
getCommentComposite() { return this.comment; } } _________ With best regards, Andrey Pavlenko ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. **********************************************************************
|