-
- /**
- * For TestNG, this constructor can be utilized to allow the creation of a
- * singleton Desktop instance with the creation of frames, but no addition to
- * the Desktop object, as in headless mode. Dialogs are not initiated.
- * Cache.log is also initialized for some tests that require it despite there
- * being no Desktop.
- *
- */
- public static Desktop getInstanceOnly()
- {
- Desktop d = (Desktop) ApplicationSingletonProvider
- .getInstance(Desktop.class);
- d.instanceOnly = true;
- return d;
- }