mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -26,6 +26,14 @@ import java.awt.image.BufferedImage;
|
||||
import static com.jetbrains.scientific.figure.FigureConstants.*;
|
||||
|
||||
public class ImageFigure extends FigureBase implements WithDockableContent {
|
||||
private final TabInfo myTabInfo;
|
||||
private final Project myProject;
|
||||
|
||||
public ImageFigure(ImageVirtualFile imageVirtualFile, Project project) {
|
||||
myProject = project;
|
||||
myTabInfo = createTabInfo(imageVirtualFile, project);
|
||||
}
|
||||
|
||||
public static ImageFigure createDefault(BufferedImage image, Project project) {
|
||||
String simpleName = PLOT_DEFAULT_NAME + "." + DEFAULT_IMAGE_FORMAT;
|
||||
ImageVirtualFile virtualFile = new ImageVirtualFile(simpleName, image);
|
||||
@@ -43,15 +51,6 @@ public class ImageFigure extends FigureBase implements WithDockableContent {
|
||||
return info;
|
||||
}
|
||||
|
||||
|
||||
private final TabInfo myTabInfo;
|
||||
private final Project myProject;
|
||||
|
||||
public ImageFigure(ImageVirtualFile imageVirtualFile, Project project) {
|
||||
myProject = project;
|
||||
myTabInfo = createTabInfo(imageVirtualFile, project);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TabInfo getTabInfo() {
|
||||
return myTabInfo;
|
||||
@@ -69,7 +68,6 @@ public class ImageFigure extends FigureBase implements WithDockableContent {
|
||||
return new EditorTabbedContainer.DockableEditor(myProject, img, fileCopy, presentation, preferredSize, false);
|
||||
}
|
||||
|
||||
|
||||
private static class MyContentPanel extends JPanel implements WithBinaryContent, Disposable {
|
||||
private final ImageVirtualFile myVirtualFile;
|
||||
private FileEditor myEditor;
|
||||
|
||||
@@ -10,7 +10,6 @@ import java.awt.image.BufferedImage;
|
||||
import java.io.IOException;
|
||||
|
||||
public class ImageVirtualFile extends BinaryLightVirtualFile implements Disposable {
|
||||
|
||||
private BufferedImage myImage;
|
||||
|
||||
static ImageVirtualFile makeCopy(ImageVirtualFile virtualFile) {
|
||||
|
||||
Reference in New Issue
Block a user