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

Method showMessage

ij/src/main/java/ij/macro/Functions.java:1937–1957  ·  view source on GitHub ↗
(boolean withCancel)

Source from the content-addressed store, hash-verified

1935 }
1936
1937 void showMessage(boolean withCancel) {
1938 String message;
1939 interp.getLeftParen();
1940 String title = getString();
1941 if (interp.nextToken()==',') {
1942 interp.getComma();
1943 message = getString();
1944 } else {
1945 message = title;
1946 title = "";
1947 }
1948 interp.getRightParen();
1949 if (withCancel) {
1950 boolean rtn = IJ.showMessageWithCancel(title, message);
1951 if (!rtn) {
1952 interp.finishUp();
1953 throw new RuntimeException(Macro.MACRO_CANCELED);
1954 }
1955 } else
1956 IJ.showMessage(title, message);
1957 }
1958
1959 double lengthOf() {
1960 int length = 0;

Callers 1

doFunctionMethod · 0.95

Calls 8

getStringMethod · 0.95
showMessageWithCancelMethod · 0.95
showMessageMethod · 0.95
getLeftParenMethod · 0.80
getCommaMethod · 0.80
getRightParenMethod · 0.80
finishUpMethod · 0.80
nextTokenMethod · 0.45

Tested by

no test coverage detected