当前位置: 首页>>代码示例>>Java>>正文


Java IdeBorderFactory类代码示例

本文整理汇总了Java中com.intellij.ui.IdeBorderFactory的典型用法代码示例。如果您正苦于以下问题:Java IdeBorderFactory类的具体用法?Java IdeBorderFactory怎么用?Java IdeBorderFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IdeBorderFactory类属于com.intellij.ui包,在下文中一共展示了IdeBorderFactory类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createUIComponents

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
private void createUIComponents() {
    impexLabel = new JBLabel();
    impexLabel.setBorder(IdeBorderFactory.createTitledBorder(HybrisI18NBundleUtils.message(
        "hybris.import.settings.impex.title"), false));
    hybrisRemoteControlLabel = new JBLabel();
    hybrisRemoteControlLabel.setBorder(IdeBorderFactory.createTitledBorder(HybrisI18NBundleUtils.message(
        "hybris.import.settings.tools.remote.title"), false));
    projectImportLabel = new JBLabel();
    projectImportLabel.setBorder(IdeBorderFactory.createTitledBorder(HybrisI18NBundleUtils.message(
        "hybris.import.settings.project.title")));
    junkListPanel = new JunkListPanel("hybris.import.settings.junk.directory.name", new ArrayList<String>());
    junkDirectoriesPanel = junkListPanel;

    projectTreeViewSettingsLabel = new JBLabel();
    projectTreeViewSettingsLabel.setBorder(IdeBorderFactory.createTitledBorder(HybrisI18NBundleUtils.message(
        "hybris.project.view.tree.settings")));
}
 
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:18,代码来源:HybrisApplicationSettingsForm.java

示例2: TablePanel

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
public TablePanel(Table table) {
    $$$setupUI$$$();
    rootPanel.setBorder(IdeBorderFactory.createTitledBorder(table.getTableName(), false));

    //不可整列移动
    fieldTable.getTableHeader().setReorderingAllowed(false);
    //不可拉动表格
    fieldTable.getTableHeader().setResizingAllowed(false);
    fieldTable.getEmptyText().setText("No Columns");
    JPanel panel = ToolbarDecorator.createDecorator(fieldTable)
            .setAddAction(it -> addAction())
            .setRemoveAction(it -> removeAction())
            .setEditAction(it -> editAction())
            .createPanel();
    panel.setPreferredSize(JBUI.size(300, 200));
    columnsPanel.setBorder(IdeBorderFactory.createTitledBorder("Columns", false));
    columnsPanel.add(panel, BorderLayout.CENTER);

    mainPanel.add(columnsPanel);

    modelTextField.setText(table.getModelName());
    tableTextField.setText(table.getTableName());
    initFields(table.getFields());

    this.getRootComponent().registerKeyboardAction(e -> this.getRootComponent().disable(), KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW);
}
 
开发者ID:hykes,项目名称:CodeGen,代码行数:27,代码来源:TablePanel.java

示例3: createProgressPanel

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
private void createProgressPanel() {
  myProgressIcon = new AsyncProcessIcon("Designer progress");
  myProgressMessage = new JLabel();

  JPanel progressBlock = new JPanel();
  progressBlock.add(myProgressIcon);
  progressBlock.add(myProgressMessage);
  progressBlock.setBorder(IdeBorderFactory.createRoundedBorder());

  myProgressPanel = new JPanel(new GridBagLayout());
  myProgressPanel.add(progressBlock,
                      new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0),
                                             0, 0)
  );
  myProgressPanel.setOpaque(false);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:DesignerEditorPanel.java

示例4: createFieldPanel

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
private JPanel createFieldPanel() {
  myDoNotReplaceRadioButton = new JBRadioButton(UIUtil.replaceMnemonicAmpersand("Do n&ot replace"));
  myReplaceFieldsInaccessibleInRadioButton = new JBRadioButton(UIUtil.replaceMnemonicAmpersand("Replace fields &inaccessible in usage context"));
  myReplaceAllFieldsRadioButton = new JBRadioButton(UIUtil.replaceMnemonicAmpersand("&Replace all fields"));

  myDoNotReplaceRadioButton.setFocusable(false);
  myReplaceFieldsInaccessibleInRadioButton.setFocusable(false);
  myReplaceAllFieldsRadioButton.setFocusable(false);

  final ButtonGroup group = new ButtonGroup();
  group.add(myDoNotReplaceRadioButton);
  group.add(myReplaceFieldsInaccessibleInRadioButton);
  group.add(myReplaceAllFieldsRadioButton);

  final JPanel panel = new JPanel();
  panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
  panel.add(myDoNotReplaceRadioButton);
  panel.add(myReplaceFieldsInaccessibleInRadioButton);
  panel.add(myReplaceAllFieldsRadioButton);

  panel.setBorder(IdeBorderFactory.createTitledBorder("Replace fields used in expression with their getters", true));
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:GrIntroduceParameterDialog.java

示例5: createCenterPanel

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
protected JComponent createCenterPanel() {
  myScopePanel.setBorder(IdeBorderFactory.createTitledBorder(
    AnalysisScopeBundle.message("analysis.scope.title", myAnalysisNoun), true));
  myProjectButton.setText(AnalysisScopeBundle.message("cyclic.dependencies.scope.dialog.project.button", myAnalysisVerb));
  ButtonGroup group = new ButtonGroup();
  group.add(myProjectButton);
  if (myModuleName != null) {
    myModuleButton.setText(AnalysisScopeBundle.message("cyclic.dependencies.scope.dialog.module.button", myAnalysisVerb, myModuleName));
    group.add(myModuleButton);
  }
  myModuleButton.setVisible(myModuleName != null);
  mySelectedScopeButton.setVisible(mySelectedScope != null);
  if (mySelectedScope != null) {
    mySelectedScopeButton.setText(mySelectedScope.getShortenName());
    group.add(mySelectedScopeButton);
  }
  if (mySelectedScope != null) {
    mySelectedScopeButton.setSelected(true);
  } else if (myModuleName != null) {
    myModuleButton.setSelected(true);
  } else {
    myProjectButton.setSelected(true);
  }
  return myWholePanel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:CyclicDependenciesAction.java

示例6: createFindWhatPanel

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
@Override
protected JPanel createFindWhatPanel() {
  JPanel findWhatPanel = new JPanel();

  findWhatPanel.setBorder(IdeBorderFactory.createTitledBorder(FindBundle.message("find.what.group"), true));
  findWhatPanel.setLayout(new BoxLayout(findWhatPanel, BoxLayout.Y_AXIS));

  myCbUsages = addCheckboxToPanel(FindBundle.message("find.what.usages.checkbox"), getFindUsagesOptions().isUsages, findWhatPanel, true);

  PsiClass psiClass = (PsiClass)getPsiElement();
  myCbMethodsUsages = addCheckboxToPanel(FindBundle.message("find.what.methods.usages.checkbox"), getFindUsagesOptions().isMethodsUsages, findWhatPanel, true);

  if (!psiClass.isAnnotationType()) {
    myCbFieldsUsages = addCheckboxToPanel(FindBundle.message("find.what.fields.usages.checkbox"), getFindUsagesOptions().isFieldsUsages, findWhatPanel, true);
    if (psiClass.isInterface()){
      myCbImplementingClasses = addCheckboxToPanel(FindBundle.message("find.what.implementing.classes.checkbox"), getFindUsagesOptions().isImplementingClasses, findWhatPanel, true);
      myCbDerivedInterfaces = addCheckboxToPanel(FindBundle.message("find.what.derived.interfaces.checkbox"), getFindUsagesOptions().isDerivedInterfaces, findWhatPanel, true);
    }
    else if (!psiClass.hasModifierProperty(PsiModifier.FINAL)){
      myCbDerivedClasses = addCheckboxToPanel(FindBundle.message("find.what.derived.classes.checkbox"), getFindUsagesOptions().isDerivedClasses, findWhatPanel, true);
    }
  }
  return findWhatPanel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:25,代码来源:FindClassUsagesDialog.java

示例7: createFindWhatPanel

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
@Override
protected JPanel createFindWhatPanel() {
  final JPanel findWhatPanel = new JPanel();
  findWhatPanel.setBorder(IdeBorderFactory.createTitledBorder(FindBundle.message("find.what.group"), true));
  findWhatPanel.setLayout(new BoxLayout(findWhatPanel, BoxLayout.Y_AXIS));

  myCbUsages = addCheckboxToPanel(FindBundle.message("find.what.usages.checkbox")       , myFindUsagesOptions.isUsages,            findWhatPanel,  true);
  //final ThrowSearchUtil.Root[] searchRoots = ThrowSearchUtil.getSearchRoots(getPsiElement ());

  //final PsiThrowStatement throwStatement = (PsiThrowStatement)getPsiElement();
  //final boolean exactExnType = ThrowSearchUtil.isExactExnType(throwStatement.getException ());
  //if (exactExnType) {
  //  myCbStrict.setEnabled(false);
  //}
  myHasFindWhatPanel = true;
  return findWhatPanel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:FindThrowUsagesDialog.java

示例8: createParametersPanel

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
private JComponent createParametersPanel() {
  JPanel panel = new ParameterTablePanel(myProject, myVariableData, myAnonClass) {
    protected void updateSignature() {
    }

    protected void doEnterAction() {
      clickDefaultButton();
    }

    protected void doCancelAction() {
      AnonymousToInnerDialog.this.doCancelAction();
    }
  };
  panel.setBorder(IdeBorderFactory.createTitledBorder(
    RefactoringBundle.message("anonymousToInner.parameters.panel.border.title"), false));
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:AnonymousToInnerDialog.java

示例9: createCenterPanel

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
@Nullable
@Override
protected JComponent createCenterPanel() {
  final Project project = myOldMethod.getProject();
  final DiffPanelEx diffPanel = (DiffPanelEx)DiffManager.getInstance().createDiffPanel(null, project, getDisposable(), null);
  diffPanel.setComparisonPolicy(ComparisonPolicy.IGNORE_SPACE);
  diffPanel.setHighlightMode(HighlightMode.BY_WORD);
  DiffPanelOptions diffPanelOptions = diffPanel.getOptions();
  diffPanelOptions.setShowSourcePolicy(DiffPanelOptions.ShowSourcePolicy.OPEN_EDITOR);
  diffPanelOptions.setRequestFocusOnNewContent(false);
  SimpleDiffRequest request = new SimpleDiffRequest(project, null);
  final String oldContent = myOldMethod.getText() + "\n\n\nmethod call:\n " + myOldCall.getText();
  final String newContent = myNewMethod.getText() + "\n\n\nmethod call:\n " + myNewCall.getText();
  request.setContents(new SimpleContent(oldContent), new SimpleContent(newContent));
  request.setContentTitles("Before", "After");
  diffPanel.setDiffRequest(request);
  
  final JPanel panel = new JPanel(new BorderLayout());
  panel.add(diffPanel.getComponent(), BorderLayout.CENTER);
  panel.setBorder(IdeBorderFactory.createEmptyBorder(new Insets(5, 0, 0, 0)));
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:23,代码来源:ExtractMethodSignatureSuggester.java

示例10: createCenterPanel

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
protected JComponent createCenterPanel() {
  final JLabel label = new JLabel("<html>Super class \'" +
                                   mySuperClass.getQualifiedName() +
                                   "\' inheritors: " +
                                   (myTargetClasses.length > 1 ? " <br>&nbsp;&nbsp;&nbsp;\'" : "\'") +
                                   StringUtil.join(myTargetClasses, new Function<PsiClass, String>() {
                                     public String fun(final PsiClass psiClass) {
                                       return psiClass.getQualifiedName();
                                     }
                                   }, "\',<br>&nbsp;&nbsp;&nbsp;\'") +
                                   "\'</html>");
  label.setBorder(IdeBorderFactory.createEmptyBorder(5, 5, 5, 5));
  final JPanel panel = new JPanel(new GridBagLayout());
  final GridBagConstraints gc =
    new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL,
                           new Insets(0, 0, 0, 0), 0, 0);
  panel.add(myDocPanel, gc);
  panel.add(label, gc);
  gc.weighty = 1;
  gc.fill = GridBagConstraints.BOTH;
  panel.add(super.createCenterPanel(), gc);
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:InlineSuperClassRefactoringDialog.java

示例11: createComponentImpl

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
@Override
protected JComponent createComponentImpl() {
  final JPanel panel = new JPanel(new GridBagLayout());
  panel.setBorder(new EmptyBorder(UIUtil.PANEL_SMALL_INSETS));
  final GridBagConstraints gc =
    new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0);
  panel.add(myCompilerOutputEditor.createComponentImpl(), gc);
  final JPanel javadocPanel = (JPanel)myJavadocEditor.createComponentImpl();
  javadocPanel.setBorder(IdeBorderFactory.createTitledBorder(myJavadocEditor.getDisplayName(), false));
  gc.weighty = 1;
  panel.add(javadocPanel, gc);
  final JPanel annotationsPanel = (JPanel)myAnnotationsEditor.createComponentImpl();
  annotationsPanel.setBorder(IdeBorderFactory.createTitledBorder(myAnnotationsEditor.getDisplayName(), false));
  panel.add(annotationsPanel, gc);
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:OutputEditor.java

示例12: ProjectSettingsStep

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
public ProjectSettingsStep(WizardContext context) {

    myWizardContext = context;

    myFormatPanel = new ProjectFormatPanel();
    myNamePathComponent = NamePathComponent.initNamePathComponent(context);
    myNamePathComponent.setShouldBeAbsolute(true);
    JPanel modulePanel = getModulePanel();
    if (context.isCreatingNewProject()) {
      mySettingsPanel.add(myNamePathComponent, BorderLayout.NORTH);
      addExpertPanel(modulePanel);
    }
    else {
      mySettingsPanel.add(modulePanel, BorderLayout.NORTH);
    }
    myModuleNameLocationComponent.bindModuleSettings(myNamePathComponent);

    myExpertDecorator = new HideableDecorator(myExpertPlaceholder, "Mor&e Settings", false);
    myExpertPanel.setBorder(IdeBorderFactory.createEmptyBorder(0, IdeBorderFactory.TITLED_BORDER_INDENT, 5, 0));
    myExpertDecorator.setContentComponent(myExpertPanel);

    if (myWizardContext.isCreatingNewProject()) {
      addProjectFormat(modulePanel);
    }
  }
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:ProjectSettingsStep.java

示例13: createTitle

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
@NotNull
public static JComponent createTitle(@NotNull String title,
                                     @Nullable Charset charset,
                                     @Nullable LineSeparator separator,
                                     boolean readOnly) {
  if (readOnly) title += " " + DiffBundle.message("diff.content.read.only.content.title.suffix");

  JPanel panel = new JPanel(new BorderLayout());
  panel.setBorder(IdeBorderFactory.createEmptyBorder(0, 4, 0, 4));
  panel.add(createTitlePanel(title), BorderLayout.CENTER);
  if (charset != null && separator != null) {
    JPanel panel2 = new JPanel();
    panel2.setLayout(new BoxLayout(panel2, BoxLayout.X_AXIS));
    panel2.add(createCharsetPanel(charset));
    panel2.add(Box.createRigidArea(new Dimension(4, 0)));
    panel2.add(createSeparatorPanel(separator));
    panel.add(panel2, BorderLayout.EAST);
  }
  else if (charset != null) {
    panel.add(createCharsetPanel(charset), BorderLayout.EAST);
  }
  else if (separator != null) {
    panel.add(createSeparatorPanel(separator), BorderLayout.EAST);
  }
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:DiffUtil.java

示例14: CommentsTabForm

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
public CommentsTabForm() {
  myErrorComponent = new LabeledTextComponent();
  myErrorComponent.setTitle(DiagnosticBundle.message("error.dialog.error.prompt"));
  
  myCommentsArea = new LabeledTextComponent();
  myCommentsArea.setTitle(DiagnosticBundle.message("error.dialog.comment.prompt"));
  
  JTextArea errorArea = myErrorComponent.getTextComponent();
  //errorArea.setPreferredSize(new Dimension(IdeErrorsDialog.COMPONENTS_WIDTH, -1));
  errorArea.setLineWrap(true);
  errorArea.setEditable(false);
  errorArea.setBackground(UIUtil.getTextFieldBackground());
  errorArea.setBorder(IdeBorderFactory.createBorder());

  myCommentsArea.getTextComponent().setLineWrap(true);

  myErrorPanel.add(myErrorComponent.getContentPane());
  myCommentsPanel.add(myCommentsArea.getContentPane());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:CommentsTabForm.java

示例15: DetailsTabForm

import com.intellij.ui.IdeBorderFactory; //导入依赖的package包/类
public DetailsTabForm(@Nullable Action analyzeAction, boolean internalMode) {
  myCommentsArea.setTitle(DiagnosticBundle.message("error.dialog.comment.prompt"));
  myDetailsPane.setBackground(UIUtil.getTextFieldBackground());
  myDetailsHolder.setPreferredSize(new Dimension(IdeErrorsDialog.COMPONENTS_WIDTH, internalMode ? 500 : 205));
  myDetailsHolder.setBorder(IdeBorderFactory.createBorder());
  if (analyzeAction != null) {
    myAnalyzeStacktraceButton.setAction(analyzeAction);
  }
  else {
    myAnalyzeStacktraceButton.setVisible(false);
  }
  myAssigneeComboBox.setRenderer(new DeveloperRenderer(myAssigneeComboBox.getRenderer()));
  myAssigneeComboBox.setPrototypeDisplayValue(new Developer(0, "Here Goes Some Very Long String"));
  myAssigneeComboBox.addActionListener(new ActionListenerProxy(new ActionListener() {
    @Override
    public void actionPerformed(ActionEvent e) {
      myAssigneeId = getAssigneeId();
    }
  }));
  new ComboboxSpeedSearch(myAssigneeComboBox) {
    @Override
    protected String getElementText(Object element) {
      return element == null ? "" : ((Developer) element).getSearchableText();
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:DetailsTabForm.java


注:本文中的com.intellij.ui.IdeBorderFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。