@Nullable @Override protected JComponent createCenterPanel() { mySourcePathTextFieldWithBrowseButton.addActionListener(new ExternalEditorPathActionListener()); return myRootPanel; }
@Nullable @Override protected JComponent createCenterPanel() { labelForSourceCodeOfIncrementalAnalysisScript.setIcon(AllIcons.Actions.Help); labelForSourceCodeOfIncrementalAnalysisScript.setHorizontalTextPosition(JLabel.LEFT); labelForSourceCodeOfIncrementalAnalysisScript.addMouseListener( SHOW_HOW_TO_DEFINE_SOURCE_CODE_OF_INCREMENTAL_ANALYSIS_SCRIPT ); labelForPathToSonarReport.setIcon(AllIcons.Actions.Help); labelForPathToSonarReport.setHorizontalTextPosition(JLabel.LEFT); labelForPathToSonarReport.addMouseListener(SHOW_HOW_TO_DEFINE_SOURCE_CODE_OF_INCREMENTAL_ANALYSIS_SCRIPT); myPathToSonarReportTextFieldWithBrowseButton.addActionListener(new ExternalEditorPathActionListener()); return myRootPanel; }
private void initAlternativeWorkingDir() { myAlternativeWorkingDirTextFieldWithBrowseButton.addActionListener( new AlternativeWorkingDirActionListener( myProject,myAlternativeWorkingDirTextFieldWithBrowseButton,myProject.getBaseDir() ) ); processAlternativeDirSelections(); myUseAlternativeWorkingDirCheckBox.addActionListener( e -> processAlternativeDirSelections() ); }
private void initAlternativeWorkingDir() { final VirtualFile moduleFile = myModule.getModuleFile(); final VirtualFile projectBaseDir = myProject.getBaseDir(); final VirtualFile dirToSelect = moduleFile != null ? moduleFile.getParent() : projectBaseDir; myAlternativeWorkingDirTextFieldWithBrowseButton.addActionListener( new AlternativeWorkingDirActionListener( myProject,myAlternativeWorkingDirTextFieldWithBrowseButton,dirToSelect ) ); processAlternativeDirSelections(); myUseAlternativeWorkingDirCheckBox.addActionListener( new ActionListener() { @Override public void actionPerformed(ActionEvent e) { processAlternativeDirSelections(); } } ); }
sourceCodeFilesInChooser.addActionListener(new MySourceCodeChooserActionListener( FileChooserDescriptorFactory.createSingleLocalFileDescriptor()));
@NotNull @Override protected JComponent createEditor() { final FileChooserDescriptor fcd = FileChooserDescriptorFactory.createSingleFolderDescriptor(); fcd.setShowFileSystemRoots(true); fcd.setTitle(DlangBundle.INSTANCE.message("dmd.run.config.selectworkingdir.title")); fcd.setDescription(DlangBundle.INSTANCE.message("dmd.run.config.selectworkingdir.description")); fcd.setHideIgnored(false); pathWorkingDir.addActionListener(new TextFieldWithBrowseButton.BrowseFolderActionListener<>(fcd.getTitle(), fcd.getDescription(), pathWorkingDir, null, fcd, TextComponentAccessor.TEXT_FIELD_WHOLE_TEXT)); return myMainPanel; }
@NotNull @Override protected JComponent createEditor() { final FileChooserDescriptor fcd = FileChooserDescriptorFactory.createSingleFolderDescriptor(); fcd.setShowFileSystemRoots(true); fcd.setTitle(DlangBundle.INSTANCE.message("dmd.run.config.selectworkingdir.title")); fcd.setDescription(DlangBundle.INSTANCE.message("dmd.run.config.selectworkingdir.description")); fcd.setHideIgnored(false); pathWorkingDir.addActionListener(new TextFieldWithBrowseButton.BrowseFolderActionListener<>(fcd.getTitle(), fcd.getDescription(), pathWorkingDir, null, fcd, TextComponentAccessor.TEXT_FIELD_WHOLE_TEXT)); return myMainPanel; }
fcd.setHideIgnored(false); pathImports.addActionListener(new TextFieldWithBrowseButton.BrowseFolderActionListener<>(fcd.getTitle(), fcd.getDescription(), pathImports, null, fcd, TextComponentAccessor.TEXT_FIELD_WHOLE_TEXT)); pathStringImports.addActionListener(new TextFieldWithBrowseButton.BrowseFolderActionListener<>(fcd.getTitle(), fcd.getDescription(), pathStringImports, null, fcd, TextComponentAccessor.TEXT_FIELD_WHOLE_TEXT)); pathDocumentation.addActionListener(new TextFieldWithBrowseButton.BrowseFolderActionListener<>(fcd.getTitle(), fcd.getDescription(), pathDocumentation, null, fcd, TextComponentAccessor.TEXT_FIELD_WHOLE_TEXT)); pathHeaderDir.addActionListener(new TextFieldWithBrowseButton.BrowseFolderActionListener<>(fcd.getTitle(), fcd.getDescription(), pathHeaderDir, null, fcd, TextComponentAccessor.TEXT_FIELD_WHOLE_TEXT));
); mySchemaLocation.getTextField().setEditable(false); mySchemaLocation.addActionListener(new ActionListener() {
CloudReposMessageBundle.message("clonefromgcp.destination.directory.description")); fcd.setHideIgnored(false); parentDirectory.addActionListener( new ComponentWithBrowseButton.BrowseFolderActionListener<JTextField>( fcd.getTitle(),