Returns a string used as a display name for this node. @return the string name of this node
()
| 250 | * @return the string name of this node |
| 251 | */ |
| 252 | @Override |
| 253 | public String toString() { |
| 254 | // return name, if any |
| 255 | if ((name != null) && !name.equals("")) { //$NON-NLS-1$ |
| 256 | return name; |
| 257 | } |
| 258 | // return launch class name, if any |
| 259 | if (launchClassName != null) { |
| 260 | return XML.getExtension(launchClassName); |
| 261 | } |
| 262 | // return args[0] name, if any |
| 263 | if (!args[0].equals("")) { //$NON-NLS-1$ |
| 264 | String name = args[0]; |
| 265 | name = XML.getName(name); |
| 266 | return XML.stripExtension(name); |
| 267 | } |
| 268 | return ""; //$NON-NLS-1$ |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | * Gets the unique ID string for this node. |
no test coverage detected