PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms 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
  1. package org.bitbucket.connectors.jetbrains.ui;
  2. import com.intellij.openapi.project.Project;
  3. import com.intellij.openapi.ui.DialogWrapper;
  4. import javax.swing.*;
  5. public class HtmlMessageDialog extends DialogWrapper {
  6. private HtmlPanel myPanel;
  7. public HtmlMessageDialog(Project project, String text, String title) {
  8. super(project, false);
  9. myPanel = new HtmlPanel();
  10. setTitle(title);
  11. myPanel.setText(text);
  12. init();
  13. }
  14. @Override
  15. protected JComponent createCenterPanel() {
  16. return myPanel.getPanel();
  17. }
  18. protected Action[] createActions() {
  19. return new Action[]{getOKAction()};
  20. }
  21. }