コード例 #1
0
 protected JComponent createCenterPanel() {
   final VirtualFile[] sourceRoots = getSourceRoots();
   boolean isDestinationVisible = sourceRoots.length > 1;
   myDestinationFolderCB.setVisible(isDestinationVisible);
   myTargetDestinationLabel.setVisible(isDestinationVisible);
   return null;
 }
コード例 #2
0
 private void updateCaretPositionText() {
   if (myErrorMessage != null) {
     myCaretPositionLabel.setText(
         IdeBundle.message("label.scope.editor.caret.position", myCaretPosition + 1));
   } else {
     myCaretPositionLabel.setText("");
   }
   myPositionPanel.setVisible(myErrorMessage != null);
   myCaretPositionLabel.setVisible(myErrorMessage != null);
   myPanel.revalidate();
 }