From: <ju...@us...> - 2006-11-16 15:55:20
|
Revision: 3605 http://svn.sourceforge.net/smartfrog/?rev=3605&view=rev Author: julgui Date: 2006-11-16 07:55:15 -0800 (Thu, 16 Nov 2006) Log Message: ----------- Console will not allow to modify ComponentDescription that are remote and new attribute to enable/disable Ask to Save Changes (default:off) SFOS-37 Modified Paths: -------------- trunk/core/smartfrog/src/org/smartfrog/services/management/DeployTreeModelSF.java trunk/core/smartfrog/src/org/smartfrog/services/management/DeployTreePanel.java trunk/core/smartfrog/src/org/smartfrog/services/management/SFDeployDisplay.java Modified: trunk/core/smartfrog/src/org/smartfrog/services/management/DeployTreeModelSF.java =================================================================== --- trunk/core/smartfrog/src/org/smartfrog/services/management/DeployTreeModelSF.java 2006-11-16 15:39:46 UTC (rev 3604) +++ trunk/core/smartfrog/src/org/smartfrog/services/management/DeployTreeModelSF.java 2006-11-16 15:55:15 UTC (rev 3605) @@ -87,6 +87,10 @@ } } + public void showCDasChild(boolean showCDasChild){ + entry.showCDasChild = showCDasChild; + } + /** * Gets the root attribute of the DeployTreeModelSF object * Modified: trunk/core/smartfrog/src/org/smartfrog/services/management/DeployTreePanel.java =================================================================== --- trunk/core/smartfrog/src/org/smartfrog/services/management/DeployTreePanel.java 2006-11-16 15:39:46 UTC (rev 3604) +++ trunk/core/smartfrog/src/org/smartfrog/services/management/DeployTreePanel.java 2006-11-16 15:55:15 UTC (rev 3605) @@ -203,6 +203,10 @@ //systemViewJTree.setPreferredSize(new Dimension(200, 100)); } + public void showCDasChild(boolean showCDasChild){ + treeModel.showCDasChild(showCDasChild); + } + /** * Adds message to the tree model. * Modified: trunk/core/smartfrog/src/org/smartfrog/services/management/SFDeployDisplay.java =================================================================== --- trunk/core/smartfrog/src/org/smartfrog/services/management/SFDeployDisplay.java 2006-11-16 15:39:46 UTC (rev 3604) +++ trunk/core/smartfrog/src/org/smartfrog/services/management/SFDeployDisplay.java 2006-11-16 15:55:15 UTC (rev 3605) @@ -59,7 +59,7 @@ private JTree tree = null; private JScrollPane scrollPaneTree = null; - + final JCheckBoxMenuItem jCheckBoxMenuItemShowCDasChild = new JCheckBoxMenuItem(); /** * Constructs SFDeployDisplay object * @@ -375,7 +375,7 @@ refresh.addActionListener(this); display.mainToolBar.add(this.refresh); JMenu jMenuMng = new JMenu(); - final JCheckBoxMenuItem jCheckBoxMenuItemShowCDasChild = new JCheckBoxMenuItem(); + jMenuMng.setText("Mng. Console"); display.jMenuBarDisplay.add(jMenuMng); jCheckBoxMenuItemShowCDasChild.setSelected(true); @@ -453,6 +453,7 @@ } //System.out.println("Refreshing info"); ((DeployTreePanel) panelTree).setModel(root,isObjCopy); + ((DeployTreePanel) panelTree).showCDasChild(jCheckBoxMenuItemShowCDasChild.isSelected()); ((DeployTreePanel) panelTree).refresh(); } catch (Throwable ex) { // Logger.logQuietly("Failure refresh() SFDeployDisplay!",ex); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |