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


Java Messages.installHyperlinkSupport方法代码示例

本文整理汇总了Java中com.intellij.openapi.ui.Messages.installHyperlinkSupport方法的典型用法代码示例。如果您正苦于以下问题:Java Messages.installHyperlinkSupport方法的具体用法?Java Messages.installHyperlinkSupport怎么用?Java Messages.installHyperlinkSupport使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.openapi.ui.Messages的用法示例。


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

示例1: CertificateWarningDialog

import com.intellij.openapi.ui.Messages; //导入方法依赖的package包/类
public CertificateWarningDialog(@NotNull X509Certificate certificate, @NotNull String title, @NotNull String message) {
  super((Project)null, false);

  myCertificate = certificate;

  CertificateManager manager = CertificateManager.getInstance();
  setTitle(title);
  myMessagePane.setText(String.format("<html><body><p>%s</p></body></html>", message));
  myMessagePane.setBackground(UIUtil.getPanelBackground());
  setOKButtonText("Accept");
  setCancelButtonText("Reject");
  myWarningSign.setIcon(AllIcons.General.WarningDialog);

  Messages.installHyperlinkSupport(myNoticePane);
  //    myNoticePane.setFont(myNoticePane.getFont().deriveFont((float)FontSize.SMALL.getSize()));

  String path = FileUtil.toCanonicalPath(manager.getCacertsPath());
  String password = manager.getPassword();

  myNoticePane.setText(
    String.format("<html><p>" +
                  "Accepted certificate will be saved in truststore <code>%s</code> with default password <code>%s</code>" +
                  "</p><html>",
                  path, password
    )
  );
  myCertificateInfoPanel.add(new CertificateInfoPanel(certificate), BorderLayout.CENTER);
  setResizable(false);
  init();
  LOG.debug("Preferred size: " + getPreferredSize());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:32,代码来源:CertificateWarningDialog.java

示例2: SelectTemplateStep

import com.intellij.openapi.ui.Messages; //导入方法依赖的package包/类
public SelectTemplateStep(WizardContext context, StepSequence sequence, final MultiMap<TemplatesGroup, ProjectTemplate> map) {

    myWizardContext = context;
    mySequence = sequence;
    Messages.installHyperlinkSupport(myDescriptionPane);

    myFormatPanel = new ProjectFormatPanel();
    myNamePathComponent = NamePathComponent.initNamePathComponent(context);
    if (context.isCreatingNewProject()) {
      mySettingsPanel.add(myNamePathComponent, BorderLayout.NORTH);
      addExpertPanel(getModulePanel());
    }
    else {
      mySettingsPanel.add(getModulePanel(), 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);

    myList = new ProjectTypesList(myTemplatesList, map, context);
    myList.installKeyAction(getNameComponent());

    myTemplatesList.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

      @Override
      public void valueChanged(ListSelectionEvent e) {
        ProjectTemplate template = getSelectedTemplate();
        boolean loading = template instanceof LoadingProjectTemplate;
        myModuleBuilder = template == null || loading ? null : template.createModuleBuilder();
        setupPanels(template);
        mySequence.setType(myModuleBuilder == null ? null : myModuleBuilder.getBuilderId());
        myWizardContext.requestWizardButtonsUpdate();
      }
    });

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


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