(String name)
| 239 | } |
| 240 | |
| 241 | private static int getOptions(String name) { |
| 242 | int options = MENU_BAR; |
| 243 | if (name==null) |
| 244 | return options; |
| 245 | if (name.endsWith(".ijm") || name.endsWith(".js") || name.endsWith(".bsh") || name.endsWith(".py")) |
| 246 | options |= RUN_BAR; |
| 247 | if (name.endsWith(".ijm")) |
| 248 | options |= INSTALL_BUTTON; |
| 249 | return options; |
| 250 | } |
| 251 | |
| 252 | void addMenuBar(int options) { |
| 253 | mb = new MenuBar(); |