Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Odd behavior when attempting to extend AbstractDebugView
Odd behavior when attempting to extend AbstractDebugView [message #201912] Sun, 24 April 2005 16:41 Go to next message
Eclipse UserFriend
I haven't logged this as a bug because I'm still not sure what is going
on and would like someone else to try and see what happens.

My setup is Eclipse M6 on Mac OS X. I verified this behavior in M5 on
Mac OS X as well. I also verified the behavior on WinXP on M6.

I have a plug-in project that has dependencies on:
org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.debug.core,
org.eclipse.debug.ui,
org.eclipse.ui.views

When trying to extend AbstractDebugView via the new class wizard or by
adding the extension after class creation I receive something like the
following:

package com.test;

import org.eclipse.debug.ui.AbstractDebugView;
import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.part.IPage;
import org.eclipse.ui.part.PageBook;
import org.eclipse.ui.part.PageBookView.PageRec;

public class MyAbstractTest extends AbstractDebugView {

protected IPage createDefaultPage(PageBook book) {
// TODO Auto-generated method stub
return null;
}

protected PageRec doCreatePage(IWorkbenchPart part) {
// TODO Auto-generated method stub
return null;
}

protected void doDestroyPage(IWorkbenchPart part, PageRec pageRecord) {
// TODO Auto-generated method stub

}

protected IWorkbenchPart getBootstrapPart() {
// TODO Auto-generated method stub
return null;
}

protected boolean isImportant(IWorkbenchPart part) {
// TODO Auto-generated method stub
return false;
}

public void doubleClick(DoubleClickEvent event) {
// TODO Auto-generated method stub

}

}

These methods are not abstract and I'm not sure why they were overriden.
I then receive tasks in the task view that I need to implement:
AbstractDebugView.configureToolBar(...)
AbstractDebugView.createActions()
AbstractDebugView.createViewer(Composite)
AbstractDebugView.fillContextMenu(...)
AbstractDebugView.getHelpContextId()

If I remove the method declarations from my class and use 'quick fix' it
still attempts to implement the incorrect methods. I also receive an
error on the import for org.eclipse.ui.part.PageBookView.PageRec with
the message "The type org.eclipse.ui.part.PageBookView.PageRec is not
visible".

Anyone have any ideas on what might be going on?

Thanks,
Brad
Re: Odd behavior when attempting to extend AbstractDebugView [message #202088 is a reply to message #201912] Wed, 27 April 2005 12:47 Go to previous message
Eclipse UserFriend
Please file a bug report against JDT UI

Tobias

"Brad Reynolds" <bradleyjames@gmail.com> wrote in message
news:d4h0e5$gku$1@news.eclipse.org...
>I haven't logged this as a bug because I'm still not sure what is going on
>and would like someone else to try and see what happens.
>
> My setup is Eclipse M6 on Mac OS X. I verified this behavior in M5 on Mac
> OS X as well. I also verified the behavior on WinXP on M6.
>
> I have a plug-in project that has dependencies on:
> org.eclipse.ui,
> org.eclipse.core.runtime,
> org.eclipse.debug.core,
> org.eclipse.debug.ui,
> org.eclipse.ui.views
>
> When trying to extend AbstractDebugView via the new class wizard or by
> adding the extension after class creation I receive something like the
> following:
>
> package com.test;
>
> import org.eclipse.debug.ui.AbstractDebugView;
> import org.eclipse.jface.viewers.DoubleClickEvent;
> import org.eclipse.ui.IWorkbenchPart;
> import org.eclipse.ui.part.IPage;
> import org.eclipse.ui.part.PageBook;
> import org.eclipse.ui.part.PageBookView.PageRec;
>
> public class MyAbstractTest extends AbstractDebugView {
>
> protected IPage createDefaultPage(PageBook book) {
> // TODO Auto-generated method stub
> return null;
> }
>
> protected PageRec doCreatePage(IWorkbenchPart part) {
> // TODO Auto-generated method stub
> return null;
> }
>
> protected void doDestroyPage(IWorkbenchPart part, PageRec pageRecord) {
> // TODO Auto-generated method stub
>
> }
>
> protected IWorkbenchPart getBootstrapPart() {
> // TODO Auto-generated method stub
> return null;
> }
>
> protected boolean isImportant(IWorkbenchPart part) {
> // TODO Auto-generated method stub
> return false;
> }
>
> public void doubleClick(DoubleClickEvent event) {
> // TODO Auto-generated method stub
>
> }
>
> }
>
> These methods are not abstract and I'm not sure why they were overriden. I
> then receive tasks in the task view that I need to implement:
> AbstractDebugView.configureToolBar(...)
> AbstractDebugView.createActions()
> AbstractDebugView.createViewer(Composite)
> AbstractDebugView.fillContextMenu(...)
> AbstractDebugView.getHelpContextId()
>
> If I remove the method declarations from my class and use 'quick fix' it
> still attempts to implement the incorrect methods. I also receive an
> error on the import for org.eclipse.ui.part.PageBookView.PageRec with the
> message "The type org.eclipse.ui.part.PageBookView.PageRec is not
> visible".
>
> Anyone have any ideas on what might be going on?
>
> Thanks,
> Brad
Previous Topic:how to share class variables across workspace
Next Topic:Nested For Looy
Goto Forum:
  


Current Time: Tue Jul 15 06:33:49 EDT 2025

Powered by FUDForum. Page generated in 0.02689 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top