PageRenderTime 182ms CodeModel.GetById 80ms app.highlight 3ms RepoModel.GetById 98ms app.codeStats 0ms

/src/org/bitbucket/connectors/jetbrains/ui/HtmlMessageDialog.java

https://bitbucket.org/atlassian/jetbrains-bitbucket-connector/
Java | 29 lines | 21 code | 8 blank | 0 comment | 0 complexity | 48151fec7dbc61219b11a6a447b3114d MD5 | raw file
 1package org.bitbucket.connectors.jetbrains.ui;
 2
 3import com.intellij.openapi.project.Project;
 4import com.intellij.openapi.ui.DialogWrapper;
 5
 6import javax.swing.*;
 7
 8public class HtmlMessageDialog extends DialogWrapper {
 9
10    private HtmlPanel myPanel;
11
12    public HtmlMessageDialog(Project project, String text, String title) {
13        super(project, false);
14
15        myPanel = new HtmlPanel();
16        setTitle(title);
17        myPanel.setText(text);
18        init();
19    }
20
21    @Override
22    protected JComponent createCenterPanel() {
23        return myPanel.getPanel();
24    }
25
26    protected Action[] createActions() {
27        return new Action[]{getOKAction()};
28    }
29}