當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。