/** * Returns the identifier of the VM install type referenced by the * given JRE classpath container path, or <code>null</code> if none. * * @param jreContainerPath the path to the container to try and resolve the {@link IVMInstallType} id from * @return VM install type identifier or <code>null</code> * @since 3.2 */ public static String getVMInstallTypeId(IPath jreContainerPath) { if (JREContainerInitializer.isExecutionEnvironment(jreContainerPath)) { return null; } return JREContainerInitializer.getVMTypeId(jreContainerPath); }
/** * Returns the identifier of the VM install type referenced by the * given JRE classpath container path, or <code>null</code> if none. * * @param jreContainerPath the path to the container to try and resolve the {@link IVMInstallType} id from * @return VM install type identifier or <code>null</code> * @since 3.2 */ public static String getVMInstallTypeId(IPath jreContainerPath) { if (JREContainerInitializer.isExecutionEnvironment(jreContainerPath)) { return null; } return JREContainerInitializer.getVMTypeId(jreContainerPath); }
String vmTypeId = getVMTypeId(containerPath); String vmName = getVMName(containerPath); IVMInstallType vmType = JavaRuntime.getVMInstallType(vmTypeId);
String vmTypeId = getVMTypeId(containerPath); String vmName = getVMName(containerPath); IVMInstallType vmType = JavaRuntime.getVMInstallType(vmTypeId);