Bug 176191 - implemented interfaces information bypassed while creating class from custom template (newStyleComponents ext.point)
Summary: implemented interfaces information bypassed while creating class from custom ...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: VE Bugzilla inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-02 11:01 EST by Jacek Pospychala CLA
Modified: 2011-06-13 11:36 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Pospychala CLA 2007-03-02 11:01:35 EST
I create a JET template with a class implementing an interface like this:

<%@ jet package="ve_plugin" skeleton="skeleton.java" class="MyComponentGenerator"%>

public class Class1 implements MyInterface {
}

generate a valid generator, create a IVisualClassCreationSourceContributor and set up extension point that extends org.eclipse.ve.java.core.newStyleComponent

So far ok.

When generating a class (using NewVisualClassCreationWizard) it no longer implements "MyInterface". This is not expected behaviour.


Possible workaround:
-modify extension point org.eclipse.ve.java.core.newStyleComponent, so it has optional field "implementedInterfaces".
-modify NewVisualClassWizardPage.{...}.selectionChanged() so it calls:
setSuperInterfaces(superInterfacesList, true);

// the same way as setting the ClassName.

I can provide a patch if the workaround is acceptable.