From b7700aaf666d73bda72302078acfbaf0714ab11d Mon Sep 17 00:00:00 2001 From: Vladimir Koshelev Date: Fri, 5 Jul 2024 16:54:45 +0200 Subject: [PATCH] [pycharm] PY-64403 add vision file to PyCharm GitOrigin-RevId: 7b3fd4492e0cebb313626c7a1b52e369e0577279 --- .../intellij.pycharm.community.ide.impl.xml | 5 +++++ .../ide/impl/resources/whatsNew/pycharm2024.2.json | 1 + .../PyCharmWhatsNewInVisionContentProvider.kt | 13 +++++++++++++ python/ide/resources/META-INF/plugin.xml | 1 + 4 files changed, 20 insertions(+) create mode 100644 python/ide/impl/resources/whatsNew/pycharm2024.2.json create mode 100644 python/ide/impl/src/com/intellij/pycharm/community/ide/impl/whatsnew/PyCharmWhatsNewInVisionContentProvider.kt diff --git a/python/ide/impl/resources/intellij.pycharm.community.ide.impl.xml b/python/ide/impl/resources/intellij.pycharm.community.ide.impl.xml index 0b398609faff..0451baae5615 100644 --- a/python/ide/impl/resources/intellij.pycharm.community.ide.impl.xml +++ b/python/ide/impl/resources/intellij.pycharm.community.ide.impl.xml @@ -2,6 +2,7 @@ + @@ -62,6 +63,10 @@ + + diff --git a/python/ide/impl/resources/whatsNew/pycharm2024.2.json b/python/ide/impl/resources/whatsNew/pycharm2024.2.json new file mode 100644 index 000000000000..2a2e13298e13 --- /dev/null +++ b/python/ide/impl/resources/whatsNew/pycharm2024.2.json @@ -0,0 +1 @@ +{"entities":[{"id":3082,"publicVars":[{"description":"Set language code to display a page in selected language. Default: 'en-us'","value":"$__VISION_PAGE_SETTINGS_LANGUAGE_CODE__$"},{"description":"Set 'light' or 'dark' theme to match users' theme in a product. Default: 'light'","value":"$__VISION_PAGE_SETTINGS_THEME__$"},{"description":"Set ZoomIn action to be triggered when users click on images. Provided action will be called in window.jbCefQuery","value":"$__VISION_PAGE_SETTINGS_ZOOM_IN_ACTION__$"},{"description":"Set GIF PLayer action to be triggered when users click on gif previews. Provided action will be called in window.jbCefQuery","value":"$__VISION_PAGE_SETTINGS_GIF_PLAYER_ACTION__$"}],"actions":[{"value":"tba","description":"See Plotly graphs"}],"languages":[{"code":"en-us"}],"html":"
"}]} \ No newline at end of file diff --git a/python/ide/impl/src/com/intellij/pycharm/community/ide/impl/whatsnew/PyCharmWhatsNewInVisionContentProvider.kt b/python/ide/impl/src/com/intellij/pycharm/community/ide/impl/whatsnew/PyCharmWhatsNewInVisionContentProvider.kt new file mode 100644 index 000000000000..dd0f11a5f0a9 --- /dev/null +++ b/python/ide/impl/src/com/intellij/pycharm/community/ide/impl/whatsnew/PyCharmWhatsNewInVisionContentProvider.kt @@ -0,0 +1,13 @@ +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +package com.intellij.pycharm.community.ide.impl.whatsnew + +import com.intellij.platform.whatsNew.ContentSource +import com.intellij.platform.whatsNew.ResourceContentSource +import com.intellij.platform.whatsNew.WhatsNewInVisionContentProvider + +class PyCharmWhatsNewInVisionContentProvider : WhatsNewInVisionContentProvider() { + override fun getResource(): ContentSource { + // return a vision file for the current version + return ResourceContentSource(PyCharmWhatsNewInVisionContentProvider::class.java.classLoader, "whatsNew/pycharm2024.2.json") + } +} \ No newline at end of file diff --git a/python/ide/resources/META-INF/plugin.xml b/python/ide/resources/META-INF/plugin.xml index d8f9678a1fe8..a8fd6b2d54f6 100644 --- a/python/ide/resources/META-INF/plugin.xml +++ b/python/ide/resources/META-INF/plugin.xml @@ -16,6 +16,7 @@ +