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

Method isOpen

ij/src/main/java/ij/macro/Functions.java:2944–2955  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2942 }
2943
2944 double isOpen() {
2945 interp.getLeftParen();
2946 if (isStringArg()) {
2947 String title = getString();
2948 interp.getRightParen();
2949 return isOpen(title)?1.0:0.0;
2950 } else {
2951 int id = (int)interp.getExpression();
2952 interp.getRightParen();
2953 return WindowManager.getImage(id)==null?0.0:1.0;
2954 }
2955 }
2956
2957 boolean isOpen(String title) {
2958 boolean open = WindowManager.getWindow(title)!=null;

Callers 5

getFunctionValueMethod · 0.95
selectImageMethod · 0.95
startAcceptingMethod · 0.80
testReadWriteAsciiMethod · 0.80
testReadWriteUnicodeMethod · 0.80

Calls 10

isStringArgMethod · 0.95
getStringMethod · 0.95
getImageMethod · 0.95
getWindowMethod · 0.95
isBatchModeMethod · 0.95
getTitleMethod · 0.95
getLeftParenMethod · 0.80
getRightParenMethod · 0.80
getExpressionMethod · 0.80
equalsMethod · 0.45

Tested by 2

testReadWriteAsciiMethod · 0.64
testReadWriteUnicodeMethod · 0.64