MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getOptions

Method getOptions

ij/src/main/java/ij/plugin/frame/Editor.java:241–250  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

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();

Callers 1

EditorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected