Example usage for com.intellij.openapi.ui.popup ComponentPopupBuilder setMovable

List of usage examples for com.intellij.openapi.ui.popup ComponentPopupBuilder setMovable

Introduction

In this page you can find the example usage for com.intellij.openapi.ui.popup ComponentPopupBuilder setMovable.

Prototype

@NotNull
    ComponentPopupBuilder setMovable(boolean forceMovable);

Source Link

Usage

From source file:com.urswolfer.intellij.plugin.gerrit.ui.diff.CommentBalloonBuilder.java

License:Apache License

public JBPopup getNewCommentBalloon(final CommentForm balloonContent, @NotNull final String title) {
    final ComponentPopupBuilder builder = jbPopupFactory.createComponentPopupBuilder(balloonContent,
            balloonContent);//w  w w.j  a v  a 2 s.  c o m
    builder.setAdText("Hit Ctrl+Enter to create comment. It will be published once you post your review.");
    builder.setTitle(title);
    builder.setResizable(true);
    builder.setMovable(true);
    builder.setRequestFocus(true);
    builder.setCancelOnClickOutside(false);
    builder.setCancelOnWindowDeactivation(false);
    return builder.createPopup();
}