@NbBundle.Messages({ "# {0} - project name", "InternalWebServer.output.title=Internal WebServer [{0}]" }) private Future<Integer> createProcess() { // validate PhpInterpreter phpInterpreter; try { phpInterpreter = PhpInterpreter.getDefault(); } catch (InvalidPhpExecutableException ex) { UiUtils.invalidScriptProvided(ex.getLocalizedMessage()); return null; } RunConfigInternal runConfig = RunConfigInternal.forProject(project); if (RunConfigInternalValidator.validateCustomizer(runConfig) != null) { PhpProjectUtils.openCustomizerRun(project); return null; } // run return new PhpExecutable(phpInterpreter.getInterpreter()) .viaAutodetection(false) .viaPhpInterpreter(false) .workDir(runConfig.getWorkDir()) .additionalParameters(getParameters(runConfig)) .displayName(Bundle.InternalWebServer_output_title(project.getName())) .run(getDescriptor()); }
private void jButton1ActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton1ActionPerformed PhpProject phpProject = PhpProjectUtils.getPhpProject(this.phpModule.getSourceDirectory()); String browseSourceFolder = Utils.browseSourceFolder(phpProject, ""); jLabel2.setText(browseSourceFolder); } // GEN-LAST:event_jButton1ActionPerformed