a better name for a class

This commit is contained in:
Gregory.Shrago
2018-07-18 15:38:34 +03:00
parent f92c0238c9
commit 3551c7b1fe
3 changed files with 4 additions and 4 deletions
@@ -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>
@@ -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();
}
}