Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358381 - Cannot switch to Design view if class inherits an abstract class
Summary: Cannot switch to Design view if class inherits an abstract class
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-21 05:17 EDT by Marc DENTY CLA
Modified: 2021-06-04 16:45 EDT (History)
1 user (show)

See Also:


Attachments
WindowBuilder bug report (95.96 KB, text/xml)
2011-09-21 05:17 EDT, Marc DENTY CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc DENTY CLA 2011-09-21 05:17:50 EDT
Created attachment 203743 [details]
WindowBuilder bug report

I have a AbstractDialog class which have a method
protected abstract void createComponents();
When I try to design the implementing class that overrides createComponents method, the designer chokes with a java.lang.AbstractMethodError

Sample pseudo code :

public abstract class AbstractDialog extends JDialog {

  protected AbstractDialog(Window parent) {
    super(parent);
    createCompontents();
  }

  protected abstract void createComponents();
}


public class ImplDialog extends AbstractDialog {
  public ImplDialog(Window parent) {
    super(parent);
  }
  
  @Override
  protected void createComponents() {
    // I want to design this dialog in that method
  }
}
Comment 1 Eric Clayberg CLA 2011-09-21 11:55:40 EDT
The example pseudo code you provided worked fine on my end (once I fixed the one typo). In general, WB does not have problems editing classes that inherit from abstract classes, so any problem is likely to be very specific to your actual example (which we need to see).

I did notice from your attachement that you are using an old, unsupported version of WindowBuilder (8.1.1). Please try this again with the latest Eclipse.org release (1.0.0) or the latest Eclipse.org build (1.1.0) available here...

http://eclipse.org/windowbuilder/download.php

You should completely uninstall any prior version first. 

If the newer version does not help, please post a complete test case and your complete Eclipse .metadata ".log" file and re-open this case.