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

Method wrongType

ij/src/main/java/ij/IJ.java:342–350  ·  view source on GitHub ↗
(int capabilities, String cmd)

Source from the content-addressed store, hash-verified

340 }
341
342 static void wrongType(int capabilities, String cmd) {
343 String s = "\""+cmd+"\" requires an image of type:\n \n";
344 if ((capabilities&PlugInFilter.DOES_8G)!=0) s += " 8-bit grayscale\n";
345 if ((capabilities&PlugInFilter.DOES_8C)!=0) s += " 8-bit color\n";
346 if ((capabilities&PlugInFilter.DOES_16)!=0) s += " 16-bit grayscale\n";
347 if ((capabilities&PlugInFilter.DOES_32)!=0) s += " 32-bit (float) grayscale\n";
348 if ((capabilities&PlugInFilter.DOES_RGB)!=0) s += " RGB color\n";
349 error(s);
350 }
351
352 /** Runs a menu command on a separete thread and returns immediately. */
353 public static void doCommand(String command) {

Callers

nothing calls this directly

Calls 1

errorMethod · 0.95

Tested by

no test coverage detected