Make the bottom button work too.

git-svn-id: file:///home/svn/framework3/trunk@10859 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Weeks 2010-11-02 00:22:57 +00:00
parent 6970e1834e
commit c94c95bb04
3 changed files with 13 additions and 2 deletions

Binary file not shown.

View File

@ -247,6 +247,9 @@
<Property name="text" type="java.lang.String" resourceKey="consoleRunButton1.text"/>
<Property name="name" type="java.lang.String" value="consoleRunButton1" noResource="true"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="consoleRunButton1ActionPerformed"/>
</Events>
</Component>
</SubComponents>
</Container>

View File

@ -363,7 +363,6 @@ public class ModulePopup extends MsfFrame implements TreeSelectionListener{
//Execute and get results
if(console){
Map res = (Map)rpcConn.execute("console.create");
ArrayList autoCommands = new ArrayList();
autoCommands.add("use "+moduleType+"/"+fullName);
//Add target if it is set and not zero if there is no default or non-default if there is a default
@ -588,6 +587,11 @@ public class ModulePopup extends MsfFrame implements TreeSelectionListener{
consoleRunButton1.setText(resourceMap.getString("consoleRunButton1.text")); // NOI18N
consoleRunButton1.setName("consoleRunButton1"); // NOI18N
consoleRunButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
consoleRunButton1ActionPerformed(evt);
}
});
javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
mainPanel.setLayout(mainPanelLayout);
@ -675,13 +679,17 @@ public class ModulePopup extends MsfFrame implements TreeSelectionListener{
}//GEN-LAST:event_exploitButtonActionPerformed
private void exploitButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exploitButton1ActionPerformed
exploitButtonActionPerformed(evt);
runModule(false);
}//GEN-LAST:event_exploitButton1ActionPerformed
private void consoleRunButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consoleRunButtonActionPerformed
runModule(true);
}//GEN-LAST:event_consoleRunButtonActionPerformed
private void consoleRunButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consoleRunButton1ActionPerformed
runModule(true);
}//GEN-LAST:event_consoleRunButton1ActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel advancedLabel;
private javax.swing.JLabel authorsLabel;