}
} else if (es == importFile) {
if (selectedNode instanceof RemoteProjectMutuableTreeNode) {
RemoteProjectMutuableTreeNode rNode = (RemoteProjectMutuableTreeNode) selectedNode;
RemoteProject rProject = rNode.getRemoteProject();
ImportFileDialog importDialog = new ImportFileDialog(rNode
.getPathString(), rProject);
importDialog.pack();
importDialog.setSize(500, 350);
// importDialog.setLocationRelativeTo(this);
importDialog.setVisible(true);
} else if (selectedNode instanceof ProjectEntryMutuableTreeNode) {
ProjectEntryMutuableTreeNode node = (ProjectEntryMutuableTreeNode) selectedNode;
ImportFileDialog importDialog = new ImportFileDialog(node
.getPathString(), node.getProject());
importDialog.pack();
importDialog.setSize(500, 350);
importDialog.setVisible(true);
}
if (selectedNode instanceof JSimMutuableTreeNode) {
if(selectedNode.isLeaf()){
selectedNode = (DefaultMutableTreeNode)selectedNode.getParent();
}