mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
a better name for a class
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="org.intellij.images.editor.actions.SetBackgroundImageDialog">
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="org.intellij.images.editor.actions.BackgroundImageDialog">
|
||||
<grid id="cbd77" binding="myRoot" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="10" left="10" bottom="10" right="10"/>
|
||||
<constraints>
|
||||
+2
-2
@@ -67,7 +67,7 @@ import java.util.Map;
|
||||
|
||||
import static com.intellij.openapi.wm.impl.IdeBackgroundUtil.*;
|
||||
|
||||
public class SetBackgroundImageDialog extends DialogWrapper {
|
||||
public class BackgroundImageDialog extends DialogWrapper {
|
||||
private static final String EDITOR = "editor";
|
||||
private static final String FRAME = "ide";
|
||||
|
||||
@@ -97,7 +97,7 @@ public class SetBackgroundImageDialog extends DialogWrapper {
|
||||
private final SimpleEditorPreview myEditorPreview;
|
||||
private final JComponent myIdePreview;
|
||||
|
||||
public SetBackgroundImageDialog(@NotNull Project project, @Nullable String selectedPath) {
|
||||
public BackgroundImageDialog(@NotNull Project project, @Nullable String selectedPath) {
|
||||
super(project, true);
|
||||
myProject = project;
|
||||
setTitle("Background Image");
|
||||
@@ -44,7 +44,7 @@ public class SetBackgroundImageAction extends DumbAwareAction {
|
||||
if (project == null) return;
|
||||
VirtualFile file = e.getData(CommonDataKeys.VIRTUAL_FILE);
|
||||
boolean image = file != null && ImageFileTypeManager.getInstance().isImage(file);
|
||||
SetBackgroundImageDialog dialog = new SetBackgroundImageDialog(project, image ? file.getPath() : null);
|
||||
BackgroundImageDialog dialog = new BackgroundImageDialog(project, image ? file.getPath() : null);
|
||||
dialog.showAndGet();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user