| Summary: | Generated Java doesn't include ExternalType's class name | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jqian, mheitz |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
I made the fix in ExternalTypeTemplate. Verified Closing this defect. |
============ EDT CODE ================ package explore; program driver type BasicProgram {} function main() fileDirectory String = "C:\\temp"; myfile File = new File(fileDirectory); end end //Put EGL Source File Contents Here ExternalType File type JavaObject {packageName = "java.io", javaName = "File"} constructor (pathname String In); function getAbsolutePath() returns (String); function createNewFile() returns (boolean); function mkdirs() returns (boolean); function exists() returns (boolean); end ================ JAVA CODE ================ package explore; import org.eclipse.edt.javart.resources.*; import org.eclipse.edt.javart.*; import org.eclipse.edt.runtime.java.egl.lang.EglAny; import java.io.; import org.eclipse.edt.runtime.java.egl.lang.EString; import java.lang.String; public class driver extends ProgramBase { private static final long serialVersionUID = 10L; public static StartupInfo _startupInfo() { return new StartupInfo( "driver", "explore/driver.properties", false ); } public static void main(String... ezeargs) throws Exception { StartupInfo info = _startupInfo(); info.setArgs( ezeargs ); RunUnit ru = new RunUnitBase( info ); ru.start( new driver( ru ), ezeargs ); ru.exit(); } public driver( RunUnit ru ) { super( ru ); ezeInitialize(); } public void ezeInitialize() { } public void main(java.util.List<String> ezeargs) { String fileDirectory = Constants.EMPTY_STRING; fileDirectory = "C:\\\\temp"; java.io. myfile = null; myfile = new java.io.(fileDirectory); } }