APISonar


net.imagej.ImageJ.ui

> net > imagej > ImageJ > ui
net APIs imagej APIs ImageJ APIs ui APIs

Example 1
public void testMains() {
		final ImageJ ij = new ImageJ();
		ij.launch("--main", Concatenate.class.getName(), "kung", "-", "fu");
		assertEquals("kung-fu", Concatenate.s);
		final boolean headless = ij.ui().isHeadless();
		assertEquals(headless, ij.get(LitmusService.class).isDisposed());
		if (!headless) {
			// Since we didn't run headlessly we need to manually dispose the context
			ij.getContext().dispose();
		}
	}