ILaunchConfigurationWorkingCopy wc = type.newInstance(null, "StrToJavaConfig");
ILaunchConfigurationWorkingCopy wc = type.newInstance(null, StreamItLauncherPlugin.STR_TO_JAVA_CONFIG);
	public void launchJava(ILaunchConfiguration configuration) throws CoreException {		String projectName = getJavaProjectName(configuration);		String mainClassName = getMainTypeName(configuration);		String strFileName = mainClassName + '.' + StreamItLauncherPlugin.STR_FILE_EXTENSION;		String javaFileName = mainClassName + '.' + JAVA_FILE_EXTENSION;		String secondaryFileNames = configuration.getAttribute(StreamItLauncherPlugin.ATTR_SECONDARY_CLASSES, "");		// run streamit.frontend.ToJava		ILaunchManager manager = getLaunchManager();		ILaunchConfigurationType type = manager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);		ILaunchConfigurationWorkingCopy wc = type.newInstance(null, "StrToJavaConfig");		wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, projectName);		wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "streamit.frontend.ToJava");		wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,						"--output " + javaFileName + " " + strFileName + " " + secondaryFileNames);		ILaunchConfiguration config = wc.doSave();		ILaunch tempLaunch = config.launch(ILaunchManager.RUN_MODE, null);		IProcess[] processes = tempLaunch.getProcesses();		while (!tempLaunch.isTerminated()) {}			// show java file to user 		IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);		project.refreshLocal(IResource.DEPTH_INFINITE, null);	}