Search in sources :

Example 1 with WindowWrapperBuilder

use of com.intellij.openapi.ui.WindowWrapperBuilder in project intellij-community by JetBrains.

the class DiffWindowBase method init.

protected void init() {
    if (myWrapper != null)
        return;
    myProcessor = createProcessor();
    String dialogGroupKey = myProcessor.getContextUserData(DiffUserDataKeys.DIALOG_GROUP_KEY);
    if (dialogGroupKey == null)
        dialogGroupKey = "DiffContextDialog";
    myWrapper = new WindowWrapperBuilder(DiffUtil.getWindowMode(myHints), new MyPanel(myProcessor.getComponent())).setProject(myProject).setParent(myHints.getParent()).setDimensionServiceKey(dialogGroupKey).setPreferredFocusedComponent(() -> myProcessor.getPreferredFocusedComponent()).setOnShowCallback(() -> {
        myProcessor.updateRequest();
    }).build();
    myWrapper.setImage(ImageLoader.loadFromResource("/diff/Diff.png"));
    Disposer.register(myWrapper, myProcessor);
}
Also used : WindowWrapperBuilder(com.intellij.openapi.ui.WindowWrapperBuilder)

Aggregations

WindowWrapperBuilder (com.intellij.openapi.ui.WindowWrapperBuilder)1