@Override public void updateDataModel() { String projectRoot = myProjectRootComponent.getText(); if (!projectRoot.isEmpty()) { suggestProjectNameAndPath(null, projectRoot); } }
@Override protected void applyEditorTo(GoRunFileConfiguration configuration) throws ConfigurationException { configuration.setFilePath(myFileField.getText()); myCommonSettingsPanel.applyEditorTo(configuration); }
@Override protected void applyEditorTo(@NotNull GoApplicationConfiguration configuration) throws ConfigurationException { configuration.setFilePath(myFileField.getText()); configuration.setPackage(myPackageField.getText()); configuration.setKind((GoApplicationConfiguration.Kind)myRunKindComboBox.getSelectedItem()); configuration.setFileOutputPath(StringUtil.nullize(myOutputFilePathField.getText())); myCommonSettingsPanel.applyEditorTo(configuration); }
@Override public boolean isModified() { String currentPath = StringUtil.notNullize(GoSdkService.getInstance(myProject).getSdkHomePath(null)); return !GoSdkUtil.adjustSdkPath(mySdkPathField.getText()).equals(currentPath); }
@Override public boolean isModified() { String currentPath = StringUtil.notNullize(BallerinaSdkService.getInstance(myProject).getSdkHomePath(null)); return !BallerinaSdkUtil.adjustSdkPath(mySdkPathField.getText()).equals(currentPath); }
@Override protected void applyEditorTo(@NotNull GoTestRunConfiguration configuration) throws ConfigurationException { if (myGocheckFrameworkRadioButton.isSelected()) { configuration.setTestFramework(GocheckFramework.INSTANCE); } else if (myGobenchRadioButton.isSelected()) { configuration.setTestFramework(GobenchFramework.INSTANCE); } else { configuration.setTestFramework(GotestFramework.INSTANCE); } configuration.setKind((GoTestRunConfiguration.Kind)myTestKindComboBox.getSelectedItem()); configuration.setPackage(myPackageField.getText()); configuration.setDirectoryPath(myDirectoryField.getText()); configuration.setFilePath(myFileField.getText()); configuration.setPattern(myPatternEditor.getText()); myCommonSettingsPanel.applyEditorTo(configuration); }
@Override protected void applyEditorTo(@NotNull BallerinaTestConfiguration configuration) throws ConfigurationException { configuration.setPackage(myPackageField.getComponent().getText()); configuration.setFilePath(myFileField.getComponent().getText()); configuration.setModule(myModulesComboBox.getComponent().getSelectedModule()); configuration.setParams(myParamsField.getComponent().getText()); configuration.setWorkingDirectory(myWorkingDirectoryField.getComponent().getText()); }
@Override protected void applyEditorTo(@NotNull BallerinaRemoteConfiguration configuration) throws ConfigurationException { configuration.setModule(myModulesComboBox.getComponent().getSelectedModule()); configuration.setParams(myParamsField.getComponent().getText()); configuration.setWorkingDirectory(myWorkingDirectoryField.getComponent().getText()); configuration.setRemoteDebugHost(myHost.getComponent().getText().trim()); configuration.setRemoteDebugPort(myPort.getComponent().getText().trim()); }
@Override protected void applyEditorTo(@NotNull BallerinaApplicationConfiguration configuration) throws ConfigurationException { configuration.setPackage(myPackageField.getComponent().getText()); RunConfigurationKind runKind = (RunConfigurationKind) myRunKindComboBox.getComponent().getSelectedItem(); configuration.setRunKind(runKind); configuration.setFilePath(myFileField.getComponent().getText()); configuration.setModule(myModulesComboBox.getComponent().getSelectedModule()); configuration.setParams(myParamsField.getComponent().getText()); configuration.setBallerinaParams(myBallerinaParamsField.getComponent().getText()); configuration.setWorkingDirectory(myWorkingDirectoryField.getComponent().getText()); }
public void applyEditorTo(@NotNull GoRunConfigurationBase<?> configuration) { configuration.setModule(myModulesComboBox.getSelectedModule()); configuration.setGoParams(myGoToolParamsField.getText()); configuration.setParams(myParamsField.getText()); configuration.setWorkingDirectory(myWorkingDirectoryField.getText()); configuration.setCustomEnvironment(myEnvironmentField.getEnvs()); configuration.setPassParentEnvironment(myEnvironmentField.isPassParentEnvs()); }
private String getSshPrivateKeyPath() { String shellPath = privateKeyPathField.getText(); if (StringUtils.isNotBlank(shellPath)) { return shellPath; } return null; }
private String getShellWorkingDir() { String shellWorkingDir = shellWorkingDirField.getText(); if (StringUtils.isNotBlank(shellWorkingDir)) { return shellWorkingDir; } return null; }
private String getShellWorkingDir() { String shellWorkingDir = shellWorkingDirField.getText(); if (StringUtils.isNotBlank(shellWorkingDir)) { return shellWorkingDir; } return null; }
@Override public boolean validate() { String projectRootPath = myProjectRootComponent.getText(); if (StringUtil.isEmpty(projectRootPath)) { return false; } VirtualFile projectRoot = LocalFileSystem.getInstance().refreshAndFindFileByPath(projectRootPath); if (projectRoot == null) { return false; } if (myGetDepsCheckbox.isSelected() && !ApplicationManager.getApplication().isUnitTestMode()) { String workingDirectory = projectRoot.getCanonicalPath(); assert workingDirectory != null; Sdk sdk = getWizardContext().getProjectJdk(); updateHex(workingDirectory, sdk); fetchDependencies(workingDirectory, sdk); } Builder builder = getBuilder(); builder.setIsImportingProject(getWizardContext().isCreatingNewProject()); return builder.setProjectRoot(projectRoot); } }
private void setOkState() { TwigNamespaceDialog.this.buttonOK.setEnabled( TwigNamespaceDialog.this.namespacePath.getText().length() > 0 ); }
private String getShellPath() { String shellPath = shellPathField.getComponent().getText(); if (StringUtils.isNotBlank(shellPath)) { return shellPath; } return null; }
@Override public boolean isModified() { Settings settings = Settings.getInstance(project); return settings.profilerLocalEnabled != radioLocalProfiler.isSelected() || !textLocalProfilerUrl.getText().equals(settings.profilerLocalUrl) || !textLocalProfilerCsvPath.getText().equals(settings.profilerCsvPath) || settings.profilerHttpEnabled != radioHttpProfiler.isSelected() || !textHttpProfilerUrl.getText().equals(settings.profilerHttpUrl) ; }
@Override public void apply() throws ConfigurationException { Settings settings = Settings.getInstance(project); settings.profilerLocalEnabled = radioLocalProfiler.isSelected(); settings.profilerLocalUrl = textLocalProfilerUrl.getText(); settings.profilerCsvPath = textLocalProfilerCsvPath.getText(); settings.profilerHttpEnabled = radioHttpProfiler.isSelected(); settings.profilerHttpUrl = textHttpProfilerUrl.getText(); }
String sdkPath = GoSdkUtil.adjustSdkPath(mySdkPathField.getText()); String versionString = GoSdkUtil.retrieveGoVersion(sdkPath); boolean toRemove = StringUtil.isEmpty(sdkPath) || versionString == null;
String sdkPath = BallerinaSdkUtil.adjustSdkPath(mySdkPathField.getText()); String versionString = BallerinaSdkUtil.retrieveBallerinaVersion(sdkPath); boolean toRemove = StringUtil.isEmpty(sdkPath) || versionString == null;