本文整理汇总了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());
}
示例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());
}
}