Display number of modules and show console window on double-click
git-svn-id: file:///home/svn/framework3/trunk@9876 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
119f9328fc
commit
e7f748118b
|
@ -199,6 +199,7 @@ public class MainFrame extends FrameView {
|
||||||
private void expandList(Object[] mlist, JMenu rootMenu, RunMenuFactory factory, String type) {
|
private void expandList(Object[] mlist, JMenu rootMenu, RunMenuFactory factory, String type) {
|
||||||
if (mlist == null)
|
if (mlist == null)
|
||||||
return;
|
return;
|
||||||
|
statusAnimationLabel.setText(statusAnimationLabel.getText()+mlist.length + " "+type+" ");
|
||||||
java.util.Arrays.sort(mlist);
|
java.util.Arrays.sort(mlist);
|
||||||
for (Object fullName : mlist) {
|
for (Object fullName : mlist) {
|
||||||
String[] names = fullName.toString().split("/");
|
String[] names = fullName.toString().split("/");
|
||||||
|
@ -321,7 +322,7 @@ public class MainFrame extends FrameView {
|
||||||
@Override
|
@Override
|
||||||
protected void succeeded(Void blah) {
|
protected void succeeded(Void blah) {
|
||||||
sessionsPollTimer.execute();
|
sessionsPollTimer.execute();
|
||||||
statusAnimationLabel.setText("Ready");
|
statusAnimationLabel.setText(statusAnimationLabel.getText()+"modules");
|
||||||
setMessage("");
|
setMessage("");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -808,18 +809,21 @@ public class MainFrame extends FrameView {
|
||||||
});
|
});
|
||||||
//SESSION POPUP MENUS
|
//SESSION POPUP MENUS
|
||||||
sessionsTable.addMouseListener(new PopupMouseListener() {
|
sessionsTable.addMouseListener(new PopupMouseListener() {
|
||||||
public void doubleClicked(MouseEvent e){ //show interaction window on double-click
|
public void doubleClicked(MouseEvent e){
|
||||||
|
getSelected();
|
||||||
|
showInteractWindow();//show interaction window on double-click
|
||||||
|
}
|
||||||
|
private void getSelected() {
|
||||||
int[] selrows = sessionsTable.getSelectedRows();
|
int[] selrows = sessionsTable.getSelectedRows();
|
||||||
selectedSessions = new HashMap[selrows.length];
|
selectedSessions = new HashMap[selrows.length];
|
||||||
for(int i = 0; i < selrows.length; i++)
|
for (int i = 0; i < selrows.length; i++)
|
||||||
selectedSessions[i] = (Map)sessionsTableModel.getSessionList().get(selrows[i]);
|
selectedSessions[i] = (Map) sessionsTableModel.getSessionList().get(selrows[i]);
|
||||||
}
|
}
|
||||||
public void showPopup(MouseEvent e) {
|
public void showPopup(MouseEvent e) {
|
||||||
//must have a row selected
|
|
||||||
if (!e.isPopupTrigger())
|
if (!e.isPopupTrigger())
|
||||||
return;
|
return;
|
||||||
doubleClicked(e);
|
getSelected();
|
||||||
if(selectedSessions.length == 0)
|
if(selectedSessions.length == 0) //must have a row selected
|
||||||
return;
|
return;
|
||||||
Map session = selectedSessions[0];
|
Map session = selectedSessions[0];
|
||||||
if (session.get("type").equals("shell"))
|
if (session.get("type").equals("shell"))
|
||||||
|
|
Loading…
Reference in New Issue