feat: register actions in plugin.xml
This commit is contained in:
parent
c4221464e8
commit
d36f50af30
@ -26,7 +26,46 @@
|
|||||||
Read more: https://plugins.jetbrains.com/docs/intellij/plugin-extension-points.html -->
|
Read more: https://plugins.jetbrains.com/docs/intellij/plugin-extension-points.html -->
|
||||||
<extensions defaultExtensionNs="com.intellij">
|
<extensions defaultExtensionNs="com.intellij">
|
||||||
<toolWindow factoryClass="io.gitlab.jfronny.sdom.toolwindow.SDToolWindowFactory"
|
<toolWindow factoryClass="io.gitlab.jfronny.sdom.toolwindow.SDToolWindowFactory"
|
||||||
id="S-DOM" anchor="bottom" canCloseContents="true" icon="io.gitlab.jfronny.sdom.icons.ToolWindow" />
|
id="S-DOM" anchor="bottom" canCloseContents="true" icon="io.gitlab.jfronny.sdom.icons.SDIcons.ToolWindow" />
|
||||||
<notificationGroup id="sdom.notifications" displayType="BALLOON" />
|
<notificationGroup id="sdom.notifications" displayType="BALLOON" />
|
||||||
</extensions>
|
</extensions>
|
||||||
|
<actions>
|
||||||
|
<group id="io.gitlab.jfronny.sdom.actions.SDToolbarActions" text="S-dom" popup="true"/>
|
||||||
|
<group id="io.gitlab.jfronny.sdom.actions.SDActions" text="S-dom" popup="true">
|
||||||
|
<add-to-group group-id="ToolsMenu" anchor="first"/>
|
||||||
|
<action id="io.gitlab.jfronny.sdom.actions.SDLoginAction"
|
||||||
|
class="io.gitlab.jfronny.sdom.actions.SDLoginAction" text="S-dom Login"
|
||||||
|
description="Login to a DOMjudge instance"/>
|
||||||
|
<action id="io.gitlab.jfronny.sdom.actions.SDContestSelectionComboBoxAction"
|
||||||
|
class="io.gitlab.jfronny.sdom.actions.SDContestSelectionComboBoxAction"
|
||||||
|
text="Select Contest">
|
||||||
|
<add-to-group group-id="io.gitlab.jfronny.sdom.actions.SDToolbarActions"/>
|
||||||
|
</action>
|
||||||
|
<action id="io.gitlab.jfronny.sdom.actions.SDProblemSelectionComboBoxAction"
|
||||||
|
class="io.gitlab.jfronny.sdom.actions.SDProblemSelectionComboBoxAction"
|
||||||
|
text="Select Problem">
|
||||||
|
<add-to-group group-id="io.gitlab.jfronny.sdom.actions.SDToolbarActions"/>
|
||||||
|
</action>
|
||||||
|
<action id="io.gitlab.jfronny.sdom.actions.SDGetContestsAction"
|
||||||
|
class="io.gitlab.jfronny.sdom.actions.SDGetContestsAction"
|
||||||
|
text="Refresh Contests">
|
||||||
|
<add-to-group group-id="io.gitlab.jfronny.sdom.actions.SDToolbarActions"/>
|
||||||
|
</action>
|
||||||
|
<action id="io.gitlab.jfronny.sdom.actions.SDGetProblemsAction"
|
||||||
|
class="io.gitlab.jfronny.sdom.actions.SDGetProblemsAction"
|
||||||
|
text="Refresh Problems">
|
||||||
|
<add-to-group group-id="io.gitlab.jfronny.sdom.actions.SDToolbarActions"/>
|
||||||
|
</action>
|
||||||
|
<!-- TODO: add submission action -->
|
||||||
|
<action class="io.gitlab.jfronny.sdom.actions.SDLogoutAction"
|
||||||
|
id="io.gitlab.jfronny.sdom.actions.SDLogoutAction"
|
||||||
|
text="Log out of DOMjudge"/>
|
||||||
|
</group>
|
||||||
|
<action id="io.gitlab.jfronny.sdom.actions.SDContestSelectionNotificationAction"
|
||||||
|
class="io.gitlab.jfronny.sdom.actions.SDContestSelectionNotificationAction"
|
||||||
|
text="Contest Selection Notification"/>
|
||||||
|
<action id="io.gitlab.jfronny.sdom.actions.SDProblemSelectionNotificationAction"
|
||||||
|
class="io.gitlab.jfronny.sdom.actions.SDProblemSelectionNotificationAction"
|
||||||
|
text="Problem Selection Notification"/>
|
||||||
|
</actions>
|
||||||
</idea-plugin>
|
</idea-plugin>
|
70
src/main/resources/sd_plugin_logo.svg
Normal file
70
src/main/resources/sd_plugin_logo.svg
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="svg29"
|
||||||
|
xml:space="preserve"
|
||||||
|
width="350"
|
||||||
|
height="350"
|
||||||
|
viewBox="0 0 350.00001 349.99999"
|
||||||
|
sodipodi:docname="pluginIcon.svg"
|
||||||
|
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||||
|
id="namedview1"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:zoom="1.073478"
|
||||||
|
inkscape:cx="327.44034"
|
||||||
|
inkscape:cy="311.60397"
|
||||||
|
inkscape:window-width="1720"
|
||||||
|
inkscape:window-height="1408"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg29" />
|
||||||
|
<defs
|
||||||
|
id="defs33" />
|
||||||
|
<g
|
||||||
|
id="g37"
|
||||||
|
transform="matrix(0,1.3333333,1.3333333,0,-43.895221,-344.27103)">
|
||||||
|
<text
|
||||||
|
transform="matrix(-0.00528445,0.99706308,0.99998604,0.00519989,463.70996,56.28613)"
|
||||||
|
style="font-variant:normal;font-weight:bold;font-size:201.631px;font-family:Verdana, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, Geneva, Arial, sans-serif;-inkscape-font-specification:Verdana-Bold;writing-mode:lr-tb;fill:#c1c4cb;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="text41"> <tspan
|
||||||
|
x="0 167.35382 338.74026"
|
||||||
|
y="0"
|
||||||
|
id="tspan39">D</tspan> </text>
|
||||||
|
<text
|
||||||
|
transform="matrix(-0.00528445,0.99706308,0.99998604,0.00519989,457.20703,62.77148)"
|
||||||
|
style="font-variant:normal;font-weight:bold;font-size:201.631px;font-family:Verdana, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, Geneva, Arial, sans-serif;-inkscape-font-specification:Verdana-Bold;writing-mode:lr-tb;fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="text45"> <tspan
|
||||||
|
x="0 167.35382 338.74026"
|
||||||
|
y="0"
|
||||||
|
id="tspan43">D</tspan> </text>
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g1"
|
||||||
|
transform="matrix(0,2.9367905,2.3613626,0,-1144.9808,-808.12835)">
|
||||||
|
<text
|
||||||
|
transform="matrix(-0.00528428,0.99706295,0.99998604,0.00519996,364.29102,585.38135)"
|
||||||
|
style="font-style:italic;font-variant:normal;font-weight:bold;font-size:71.4005px;font-family:Verdana, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, Geneva, Arial, sans-serif;-inkscape-font-specification:Verdana-BoldItalic;writing-mode:lr-tb;fill:#c1c4cb;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="text49"> <tspan
|
||||||
|
x="0 28.774397 79.611542 129.52048 179.42943"
|
||||||
|
y="0"
|
||||||
|
id="tspan47">j</tspan> </text>
|
||||||
|
<text
|
||||||
|
transform="matrix(-0.00528428,0.99706295,0.99998604,0.00519996,361.98633,587.67822)"
|
||||||
|
style="font-style:italic;font-variant:normal;font-weight:bold;font-size:71.4005px;font-family:Verdana, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, Geneva, Arial, sans-serif;-inkscape-font-specification:Verdana-BoldItalic;writing-mode:lr-tb;fill:#676e72;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="text53"> <tspan
|
||||||
|
x="0 28.774397 79.611542 129.52048 179.42943"
|
||||||
|
y="0"
|
||||||
|
id="tspan51">j</tspan> </text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 3.1 KiB |
Loading…
Reference in New Issue
Block a user