Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354408

Summary: Generated Java doesn't include ExternalType's class name
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: 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:

Description Kathy Carroll CLA 2011-08-10 12:03:00 EDT
============ 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);
	}
}
Comment 1 Matt Heitz CLA 2011-08-11 11:14:20 EDT
I made the fix in ExternalTypeTemplate.
Comment 2 Kathy Carroll CLA 2011-08-12 08:15:47 EDT
Verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:08:09 EDT
Closing this defect.