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);
}
Aggregations