private static UiFactory factory;
public static UiFactory getInstance() {
if (factory == null) {
factory = ScriptographerEngine.getIllustratorVersion() < 16
? new AdmUiFactory()
// TODO: Implement SwtUiFactory
// new SwtUiFactory();
: null;
}
return factory;