move scientific module to package

This commit is contained in:
Ekaterina Tuzova
2018-11-30 13:41:36 +03:00
parent 5de34343ac
commit 6050282d33
13 changed files with 27 additions and 42 deletions
@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="intellij.platform.ide" />
<orderEntry type="module" module-name="intellij.platform.ide.impl" />
<orderEntry type="library" name="Guava" level="project" />
</component>
</module>
+1 -2
View File
@@ -721,9 +721,8 @@
interface="com.jetbrains.python.sdk.skeletons.PyPregeneratedSkeletonsProvider"/>
<extensionPoint qualifiedName="Pythonid.pyAddSdkProvider" interface="com.jetbrains.python.sdk.add.PyAddSdkProvider"/>
<extensionPoint qualifiedName="Pythonid.packageManagerProvider" interface="com.jetbrains.python.packaging.PyPackageManagerProvider"/>
<extensionPoint qualifiedName="Pythonid.scientific.displayMessageHandler"
interface="com.jetbrains.python.scientific.extension.DisplayMessageHandler"/>
interface="com.jetbrains.scientific.extension.DisplayMessageHandler"/>
</extensionPoints>
<extensions defaultExtensionNs="Pythonid">
@@ -1,8 +1,8 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.scientific.extension;
package com.jetbrains.scientific.extension;
import com.intellij.openapi.project.Project;
import com.jetbrains.python.scientific.figure.Figure;
import com.jetbrains.scientific.figure.Figure;
public interface DisplayMessageHandler {
String getApplicableMessageType();
@@ -1,5 +1,5 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.scientific.figure;
package com.jetbrains.scientific.figure;
import com.intellij.ui.tabs.TabInfo;
@@ -1,5 +1,5 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.scientific.figure;
package com.jetbrains.scientific.figure;
public class FigureConstants {
public static final int THUMBNAIL_ICON_WIDTH = 64;
@@ -1,5 +1,5 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.scientific.figure;
package com.jetbrains.scientific.figure;
public interface WithBinaryContent {
byte[] getBytes();
@@ -1,5 +1,5 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.scientific.figure;
package com.jetbrains.scientific.figure;
import com.intellij.ui.docking.DockableContent;
@@ -1,7 +1,7 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.scientific.figure.base;
package com.jetbrains.scientific.figure.base;
import com.jetbrains.python.scientific.figure.Figure;
import com.jetbrains.scientific.figure.Figure;
import static com.google.common.base.Preconditions.checkState;
@@ -1,9 +1,9 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.scientific.figure.base;
package com.jetbrains.scientific.figure.base;
import com.intellij.util.ui.JBUI;
import com.jetbrains.python.scientific.figure.FigureConstants;
import com.jetbrains.python.scientific.figure.WithBinaryContent;
import com.jetbrains.scientific.figure.FigureConstants;
import com.jetbrains.scientific.figure.WithBinaryContent;
import javax.imageio.ImageIO;
import javax.swing.*;
@@ -1,5 +1,5 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.scientific.figure.component;
package com.jetbrains.scientific.figure.component;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.application.ApplicationManager;
@@ -7,7 +7,7 @@ import com.intellij.openapi.util.Disposer;
import com.intellij.ui.tabs.TabInfo;
import com.intellij.util.Consumer;
import com.intellij.util.ui.UIUtil;
import com.jetbrains.python.scientific.figure.base.FigureBase;
import com.jetbrains.scientific.figure.base.FigureBase;
import javax.swing.*;
import java.awt.*;
@@ -16,10 +16,10 @@ import java.awt.event.ComponentEvent;
import java.awt.event.ContainerAdapter;
import java.awt.event.ContainerEvent;
import static com.jetbrains.python.scientific.figure.FigureConstants.THUMBNAIL_ICON_HEIGHT;
import static com.jetbrains.python.scientific.figure.FigureConstants.THUMBNAIL_ICON_WIDTH;
import static com.jetbrains.python.scientific.figure.base.FigureUtil.componentImage;
import static com.jetbrains.python.scientific.figure.base.FigureUtil.fit;
import static com.jetbrains.scientific.figure.FigureConstants.THUMBNAIL_ICON_HEIGHT;
import static com.jetbrains.scientific.figure.FigureConstants.THUMBNAIL_ICON_WIDTH;
import static com.jetbrains.scientific.figure.base.FigureUtil.componentImage;
import static com.jetbrains.scientific.figure.base.FigureUtil.fit;
public class ComponentFigure extends FigureBase {
private final ComponentProvider myComponentProvider;
@@ -1,5 +1,5 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.scientific.figure.component;
package com.jetbrains.scientific.figure.component;
import javax.swing.*;
@@ -1,5 +1,5 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.scientific.figure.image;
package com.jetbrains.scientific.figure.image;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.actionSystem.Presentation;
@@ -14,16 +14,16 @@ import com.intellij.ui.docking.DockableContent;
import com.intellij.ui.tabs.TabInfo;
import com.intellij.ui.tabs.impl.JBTabsImpl;
import com.intellij.util.ui.UIUtil;
import com.jetbrains.python.scientific.figure.WithBinaryContent;
import com.jetbrains.python.scientific.figure.WithDockableContent;
import com.jetbrains.python.scientific.figure.base.FigureBase;
import com.jetbrains.python.scientific.figure.base.FigureUtil;
import com.jetbrains.scientific.figure.WithBinaryContent;
import com.jetbrains.scientific.figure.WithDockableContent;
import com.jetbrains.scientific.figure.base.FigureBase;
import com.jetbrains.scientific.figure.base.FigureUtil;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import static com.jetbrains.python.scientific.figure.FigureConstants.*;
import static com.jetbrains.scientific.figure.FigureConstants.*;
public class ImageFigure extends FigureBase implements WithDockableContent {
public static ImageFigure createDefault(BufferedImage image, Project project) {
@@ -1,10 +1,10 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.scientific.figure.image;
package com.jetbrains.scientific.figure.image;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.testFramework.BinaryLightVirtualFile;
import com.jetbrains.python.scientific.figure.base.FigureUtil;
import com.jetbrains.scientific.figure.base.FigureUtil;
import java.awt.image.BufferedImage;
import java.io.IOException;