Skip to content

Commit 4ee9adf

Browse files
committed
Add features to insert and manage templates
- Add some panels - Add buttons to the GitHubIssuePanel
1 parent b0f0ce8 commit 4ee9adf

9 files changed

Lines changed: 920 additions & 6 deletions

File tree

src/main/java/com/junichi11/netbeans/modules/github/issues/issue/ui/GitHubIssuePanel.form

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,13 @@
272272
<Group type="103" groupAlignment="0" attributes="0">
273273
<Component id="descriptionLabel" min="-2" max="-2" attributes="0"/>
274274
<Component id="titleLabel" alignment="0" min="-2" max="-2" attributes="0"/>
275+
<Group type="102" alignment="0" attributes="0">
276+
<Component id="insertTemplateButton" min="-2" max="-2" attributes="0"/>
277+
<EmptySpace max="-2" attributes="0"/>
278+
<Component id="manageTemplatesButton" min="-2" max="-2" attributes="0"/>
279+
</Group>
275280
</Group>
276-
<EmptySpace min="-2" pref="37" max="-2" attributes="0"/>
281+
<EmptySpace type="separate" max="-2" attributes="0"/>
277282
<Group type="103" groupAlignment="0" attributes="0">
278283
<Component id="descriptionTabbedPanel" max="32767" attributes="0"/>
279284
<Component id="titleTextField" max="32767" attributes="0"/>
@@ -340,7 +345,12 @@
340345
</Group>
341346
<Group type="102" attributes="0">
342347
<Component id="descriptionLabel" min="-2" max="-2" attributes="0"/>
343-
<EmptySpace min="-2" pref="271" max="-2" attributes="0"/>
348+
<EmptySpace max="-2" attributes="0"/>
349+
<Group type="103" groupAlignment="0" attributes="0">
350+
<Component id="insertTemplateButton" min="-2" max="-2" attributes="0"/>
351+
<Component id="manageTemplatesButton" min="-2" max="-2" attributes="0"/>
352+
</Group>
353+
<EmptySpace min="-2" pref="237" max="-2" attributes="0"/>
344354
</Group>
345355
<Component id="descriptionTabbedPanel" min="-2" max="-2" attributes="0"/>
346356
</Group>
@@ -492,6 +502,38 @@
492502
</Property>
493503
</Properties>
494504
</Component>
505+
<Component class="javax.swing.JButton" name="insertTemplateButton">
506+
<Properties>
507+
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
508+
<Image iconType="2" name="/home/junichi11/NetBeansProjects/netbeans-github-issues/src/main/resources/com/junichi11/netbeans/modules/github/issues/resources/template_16.png"/>
509+
</Property>
510+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
511+
<ResourceString bundle="com/junichi11/netbeans/modules/github/issues/issue/ui/Bundle.properties" key="GitHubIssuePanel.insertTemplateButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
512+
</Property>
513+
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
514+
<ResourceString bundle="com/junichi11/netbeans/modules/github/issues/issue/ui/Bundle.properties" key="GitHubIssuePanel.insertTemplateButton.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
515+
</Property>
516+
</Properties>
517+
<Events>
518+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="insertTemplateButtonActionPerformed"/>
519+
</Events>
520+
</Component>
521+
<Component class="javax.swing.JButton" name="manageTemplatesButton">
522+
<Properties>
523+
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
524+
<Image iconType="2" name="/home/junichi11/NetBeansProjects/netbeans-github-issues/src/main/resources/com/junichi11/netbeans/modules/github/issues/resources/template_settings_16.png"/>
525+
</Property>
526+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
527+
<ResourceString bundle="com/junichi11/netbeans/modules/github/issues/issue/ui/Bundle.properties" key="GitHubIssuePanel.manageTemplatesButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
528+
</Property>
529+
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
530+
<ResourceString bundle="com/junichi11/netbeans/modules/github/issues/issue/ui/Bundle.properties" key="GitHubIssuePanel.manageTemplatesButton.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
531+
</Property>
532+
</Properties>
533+
<Events>
534+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="manageTemplatesButtonActionPerformed"/>
535+
</Events>
536+
</Component>
495537
</SubComponents>
496538
</Container>
497539
</SubComponents>

0 commit comments

Comments
 (0)