Refreshes the GUI.
()
| 168 | * Refreshes the GUI. |
| 169 | */ |
| 170 | private void refresh() { |
| 171 | inspectButton.setEnabled(getSelectedNode() != null); |
| 172 | String path = null; |
| 173 | if (!Launcher.tabSetBasePath.equals("")) { //$NON-NLS-1$ |
| 174 | path = Launcher.tabSetBasePath; |
| 175 | } else if (builder.jarBasePath != null) { |
| 176 | path = builder.jarBasePath; |
| 177 | } else { |
| 178 | path = XML.forwardSlash(XML.getUserDirectory()); |
| 179 | } |
| 180 | if (path.indexOf("javaws") > -1) { //$NON-NLS-1$ |
| 181 | path = XML.forwardSlash(OSPRuntime.getUserHome()); |
| 182 | Launcher.tabSetBasePath = path; |
| 183 | } |
| 184 | pathField.setText(path + "/"); //$NON-NLS-1$ |
| 185 | pathField.setBackground(Color.white); |
| 186 | treeModel.nodeChanged(root); |
| 187 | tree.repaint(); |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Displays the properties of the selected node in an xml inspector. |
no test coverage detected