[python] fix jupyter packages

GitOrigin-RevId: 4e5f0656c7b83e3129f144dc4f5436bcf9883fd8
This commit is contained in:
Ilya.Kazakevich
2024-01-17 04:58:55 +00:00
committed by intellij-monorepo-bot
parent 87694ae89c
commit ee148eaba0
14 changed files with 25 additions and 20 deletions
@@ -1,4 +1,4 @@
package icons;
package com.intellij.jupyter.core.icons;
import com.intellij.ui.IconManager;
import org.jetbrains.annotations.NotNull;
+1
View File
@@ -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" />
+1 -1
View File
@@ -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>
@@ -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
@@ -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,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,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,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,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>
@@ -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
@@ -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",
@@ -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)
@@ -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",