Skip to content

Commit

Permalink
adding more actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Pragalathan M authored and Pragalathan M committed Mar 29, 2016
1 parent 1fd0974 commit 638b74c
Show file tree
Hide file tree
Showing 14 changed files with 358 additions and 173 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/Terminal/build/
/build/
/Cluster/build/
22 changes: 13 additions & 9 deletions Cluster/src/com/konsole/cluster/Bundle.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
com_konsole_cluster_update_center=http://localhost/updates.xml
OpenIDE-Module-Name=Cluster
ClusterTopComponent2.jButton4.text=Add Host
ClusterTopComponent2.jButton3.text=Add Group
ClusterTopComponent2.jButton2.text=Load Group
ClusterTopComponent2.jButton1.text=Run
ClusterTopComponent2.jTextField1.text=
ClusterTopComponent.runButton.text=Run
ClusterTopComponent.addGroupButton.text=Add Group
ClusterTopComponent.addHostButton.text=Add Host
ClusterTopComponent.loadGroupButton.text=Load Group
ClusterTopComponent.runButton.text=Execute
ClusterTopComponent.addHostButton.text=
ClusterTopComponent.commandTextField.text=
Services/AutoupdateType/com_konsole_cluster_update_center.instance=Cluster Update Center
ClusterTopComponent.addHostButton.toolTipText=Add host
ClusterTopComponent.removeClusterButton.toolTipText=Remove cluster
ClusterTopComponent.removeClusterButton.text=
ClusterTopComponent.addClusterButton.toolTipText=Add cluster
ClusterTopComponent.addClusterButton.text=
ClusterTopComponent.removeHostButton.toolTipText=Remove host
ClusterTopComponent.removeHostButton.text=
ClusterTopComponent.openClusterButton.toolTipText=Open cluster
ClusterTopComponent.openClusterButton.text=
ClusterTopComponent.closeClusterButton.toolTipText=Close cluster
ClusterTopComponent.closeClusterButton.text=
137 changes: 113 additions & 24 deletions Cluster/src/com/konsole/cluster/ClusterTopComponent.form
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
Expand All @@ -16,7 +16,7 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
Expand All @@ -27,13 +27,19 @@
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="clusterComboBox" max="32767" attributes="0"/>
<Component id="jScrollPane1" max="32767" attributes="0"/>
<Component id="jScrollPane1" pref="298" max="32767" attributes="0"/>
</Group>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="loadGroupButton" alignment="1" max="32767" attributes="0"/>
<Component id="addHostButton" alignment="1" max="32767" attributes="0"/>
<Component id="addGroupButton" alignment="1" max="32767" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="1" groupAlignment="0" max="-2" attributes="0">
<Component id="addHostButton" alignment="1" max="32767" attributes="0"/>
<Component id="addClusterButton" alignment="1" max="32767" attributes="0"/>
<Component id="removeClusterButton" alignment="1" max="32767" attributes="0"/>
<Component id="removeHostButton" alignment="0" max="32767" attributes="0"/>
<Component id="openClusterButton" max="32767" attributes="0"/>
</Group>
<Component id="closeClusterButton" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="filler1" min="-2" pref="82" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
Expand All @@ -44,27 +50,35 @@
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="commandTextField" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="runButton" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" max="-2" attributes="0">
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="clusterComboBox" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane1" min="-2" pref="147" max="-2" attributes="0"/>
<Component id="addClusterButton" min="-2" pref="55" max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="removeClusterButton" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="addHostButton" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="removeHostButton" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="openClusterButton" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="closeClusterButton" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="addGroupButton" min="-2" pref="55" max="-2" attributes="0"/>
<Component id="clusterComboBox" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="addHostButton" min="-2" pref="54" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="loadGroupButton" min="-2" pref="53" max="-2" attributes="0"/>
<Component id="jScrollPane1" max="32767" attributes="0"/>
</Group>
</Group>
<EmptySpace pref="175" max="32767" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="filler1" pref="136" max="32767" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
Expand Down Expand Up @@ -123,36 +137,111 @@
</Component>
</SubComponents>
</Container>
<Component class="javax.swing.JButton" name="addGroupButton">
<Component class="javax.swing.JButton" name="addClusterButton">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/com/konsole/cluster/images/add_to_database.png"/>
</Property>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.addGroupButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.addClusterButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.addClusterButton.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="addGroupButtonActionPerformed"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="addClusterButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="addHostButton">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/com/konsole/cluster/images/computer_add.png"/>
</Property>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.addHostButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.addHostButton.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="enabled" type="boolean" value="false"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="addHostButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="loadGroupButton">
<Component class="javax.swing.JButton" name="openClusterButton">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/com/konsole/cluster/images/open.png"/>
</Property>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.openClusterButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.openClusterButton.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="enabled" type="boolean" value="false"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="openClusterButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="removeClusterButton">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/com/konsole/cluster/images/remove_from_database.png"/>
</Property>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.removeClusterButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.removeClusterButton.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="enabled" type="boolean" value="false"/>
<Property name="focusable" type="boolean" value="false"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="removeClusterButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="removeHostButton">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/com/konsole/cluster/images/computer_remove.png"/>
</Property>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.removeHostButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.removeHostButton.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="enabled" type="boolean" value="false"/>
<Property name="focusable" type="boolean" value="false"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
</Component>
<Component class="javax.swing.JButton" name="closeClusterButton">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/com/konsole/cluster/images/close.png"/>
</Property>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.loadGroupButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.closeClusterButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="com/konsole/cluster/Bundle.properties" key="ClusterTopComponent.closeClusterButton.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="enabled" type="boolean" value="false"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="loadGroupButtonActionPerformed"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="closeClusterButtonActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.Box$Filler" name="filler1">
</Component>
</SubComponents>
</Form>
Loading

0 comments on commit 638b74c

Please sign in to comment.