mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[python] fix jupyter packages
GitOrigin-RevId: 4e5f0656c7b83e3129f144dc4f5436bcf9883fd8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
87694ae89c
commit
ee148eaba0
+1
-1
@@ -1,4 +1,4 @@
|
||||
package icons;
|
||||
package com.intellij.jupyter.core.icons;
|
||||
|
||||
import com.intellij.ui.IconManager;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -5,6 +5,7 @@
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<fileType name="Jupyter"
|
||||
language="Jupyter"
|
||||
extensions="ipynb"
|
||||
implementationClass="org.jetbrains.plugins.notebooks.jupyter.JupyterFileType"
|
||||
implementationClass="com.intellij.jupyter.core.jupyter.JupyterFileType"
|
||||
fieldName="INSTANCE"/>
|
||||
<iconMapper mappingFile="JupyterCoreIconMappings.json"/>
|
||||
</extensions>
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.jetbrains.plugins.notebooks.jupyter
|
||||
package com.intellij.jupyter.core.jupyter
|
||||
|
||||
import com.intellij.openapi.fileTypes.LanguageFileType
|
||||
import com.intellij.openapi.vfs.CharsetToolkit
|
||||
import com.intellij.openapi.vfs.VirtualFile
|
||||
import icons.JupyterCoreIcons
|
||||
import com.intellij.jupyter.core.icons.JupyterCoreIcons
|
||||
import org.jetbrains.annotations.NonNls
|
||||
import javax.swing.Icon
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.jetbrains.plugins.notebooks.jupyter
|
||||
package com.intellij.jupyter.core.jupyter
|
||||
|
||||
import com.intellij.lang.Language
|
||||
import com.intellij.openapi.fileTypes.FileType
|
||||
import com.intellij.openapi.fileTypes.LanguageFileType
|
||||
import org.jetbrains.plugins.notebooks.core.api.lang.NotebookLanguage
|
||||
import com.intellij.jupyter.core.lang.NotebookLanguage
|
||||
|
||||
object JupyterLanguage : Language(NotebookLanguage, "Jupyter")
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.jetbrains.plugins.notebooks.jupyter
|
||||
package com.intellij.jupyter.core.jupyter
|
||||
|
||||
import com.intellij.DynamicBundle
|
||||
import org.jetbrains.annotations.Nls
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.jetbrains.plugins.notebooks.jupyter.preview
|
||||
package com.intellij.jupyter.core.jupyter.preview
|
||||
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.jetbrains.plugins.notebooks.jupyter.preview
|
||||
package com.intellij.jupyter.core.jupyter.preview
|
||||
|
||||
import org.apache.http.client.utils.URIBuilder
|
||||
import org.jetbrains.ide.BuiltInServerManager
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.plugins.notebooks.core.api.lang
|
||||
package com.intellij.jupyter.core.lang
|
||||
|
||||
import com.intellij.lang.Language
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<xi:include href="/META-INF/jupyter-core.xml" xpointer="xpointer(/idea-plugin/*)"/>
|
||||
|
||||
<extensions defaultExtensionNs="com.intellij">
|
||||
<httpRequestHandler id="jupyter-view-only" implementation="org.jetbrains.plugins.notebooks.jupyter.preview.viewOnly.JupyterViewOnlyHandler"/>
|
||||
<fileEditorProvider id="jupyter-view-only-provider" implementation="org.jetbrains.plugins.notebooks.jupyter.preview.viewOnly.JupyterViewOnlyProvider" fileType="Jupyter"/>
|
||||
<httpRequestHandler id="jupyter-view-only" implementation="com.intellij.jupyter.viewOnly.JupyterViewOnlyHandler"/>
|
||||
<fileEditorProvider id="jupyter-view-only-provider" implementation="com.intellij.jupyter.viewOnly.JupyterViewOnlyProvider" fileType="Jupyter"/>
|
||||
</extensions>
|
||||
</idea-plugin>
|
||||
|
||||
+3
-4
@@ -1,5 +1,5 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.jetbrains.plugins.notebooks.jupyter.preview.viewOnly
|
||||
package com.intellij.jupyter.viewOnly
|
||||
|
||||
|
||||
import com.intellij.ide.ui.LafManagerListener
|
||||
@@ -17,13 +17,12 @@ import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.cancel
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.collect
|
||||
import kotlinx.coroutines.launch
|
||||
import org.cef.browser.CefBrowser
|
||||
import org.cef.browser.CefFrame
|
||||
import org.cef.handler.CefLoadHandlerAdapter
|
||||
import org.jetbrains.plugins.notebooks.jupyter.preview.JupyterCefHttpHandlerBase
|
||||
import org.jetbrains.plugins.notebooks.jupyter.preview.addPathSegment
|
||||
import com.intellij.jupyter.core.jupyter.preview.JupyterCefHttpHandlerBase
|
||||
import com.intellij.jupyter.core.jupyter.preview.addPathSegment
|
||||
import java.beans.PropertyChangeListener
|
||||
import java.nio.ByteBuffer
|
||||
import javax.swing.JComponent
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.jetbrains.plugins.notebooks.jupyter.preview.viewOnly
|
||||
package com.intellij.jupyter.viewOnly
|
||||
|
||||
import org.jetbrains.plugins.notebooks.jupyter.preview.JupyterCefHttpHandlerBase
|
||||
import com.intellij.jupyter.core.jupyter.preview.JupyterCefHttpHandlerBase
|
||||
|
||||
class JupyterViewOnlyHandler : JupyterCefHttpHandlerBase(absolutePathFiles = listOf(
|
||||
"/ipywidgets.html",
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.jetbrains.plugins.notebooks.jupyter.preview.viewOnly
|
||||
package com.intellij.jupyter.viewOnly
|
||||
|
||||
import com.intellij.openapi.fileEditor.FileEditor
|
||||
import com.intellij.openapi.fileEditor.FileEditorPolicy
|
||||
@@ -8,7 +8,7 @@ import com.intellij.openapi.fileTypes.FileTypeRegistry
|
||||
import com.intellij.openapi.project.DumbAware
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.vfs.VirtualFile
|
||||
import org.jetbrains.plugins.notebooks.jupyter.JupyterFileType
|
||||
import com.intellij.jupyter.core.jupyter.JupyterFileType
|
||||
|
||||
internal class JupyterViewOnlyProvider : FileEditorProvider, DumbAware {
|
||||
override fun accept(project: Project, file: VirtualFile): Boolean = FileTypeRegistry.getInstance().isFileOfType(file, JupyterFileType)
|
||||
+5
@@ -67,6 +67,11 @@ class IntellijIconClassGeneratorConfig : IconClasses() {
|
||||
iconDirectory = "icons/com/jetbrains/localization",
|
||||
)
|
||||
|
||||
"intellij.jupyter.core"-> IntellijIconClassGeneratorModuleConfig(
|
||||
className = "JupyterCoreIcons",
|
||||
packageName = "com.intellij.jupyter.core.icons",
|
||||
iconDirectory = "icons/org.jetbrains.plugins.notebooks.jupyter",
|
||||
)
|
||||
|
||||
"intellij.spring.mvc.core" -> IntellijIconClassGeneratorModuleConfig(
|
||||
className = "SpringMvcApiIcons",
|
||||
|
||||
Reference in New Issue
Block a user