Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-ui-dev] Subclassing NewTypeWizardPage


Please file an enhancement request for JDT/UI.
In the mean time, you can override createTypeMembers(..), which has an import manager.
You'll have to add the annotation directly to the buffer from newType.getCompilationUnit.getBuffer().

Markus

jdt-ui-dev-bounces@xxxxxxxxxxx wrote on 2007-08-06 05:39:03:

> Hi everyone.
> I wanted to create my own type creation wizard and ran into a snag with
> the NewTypeWizardPage class.  Why are a lot of the member methods
> private?
>
> For example, I want to add an annotation to the type at the time of
> creation.  (eg @Annotation\n public class ...), but constructTypeStub,
> which creates the type signature is private.  I can work around this by
> appending the annotation to the end of the comment generated by
> getTypeComment(), but with this method I don't have an ImportsManager to
> specify the appropriate annotation type.
>
> Is there a good reason to keep this method private?
>
> Thanks,
> -Scott
>
> _______________________________________________
> jdt-ui-dev mailing list
> jdt-ui-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jdt-ui-dev

Back to the top