I want to create a file containing a reference to the class, not knowing what package it really has.
eg. user supplies
import foo.*
import blah.*
Button("press me")
and i need to generate
import foo.*;
import blah.*;
public class MyWindow extends Window {
public MyWindow() {
Button button = new Button();
button.setLabel("press me");
}
}
A class Button
can be in any package. Is this script supported by CodeModel? Examples in CodeModel Help needed to correctly assign singleton.getinstance () and the Java API to generate Java source files specify full package names for classes, and viewing JavaDoc did not help.
source
share