Package bear.main.event

Examples of bear.main.event.TextConsoleEventToUI


                        currentScriptItem = new ScriptItem(directive.name, pluginName, lineIndex);

                        currentScriptItem.global = directive.getBoolean("global");
                    } else {
                        ui.error(new TextConsoleEventToUI("shell", "command not supported: <i>" + command + "</i><br>"));

                        globalErrors.add(new ScriptError(line, lineIndex, "command not supported: " + command));
                    }

                    continue;
View Full Code Here


            final SessionContext.ExecutionContext execContext = $.getExecutionContext();

            execContext.textAppended.addListener(new DynamicVariable.ChangeListener<String>() {
                public void changedValue(DynamicVariable<String> var, String oldValue, String newValue) {
                    if (StringUtils.isNotEmpty(newValue)) {
                        ui.info(new TextConsoleEventToUI($.getName(), newValue)
                            .setParentId(execContext.currentCommand.getDefaultValue().command.id)
                        );
                    }
                }
            });
View Full Code Here

                    return input.getSimpleName().toLowerCase().contains(pluginName);
                }
            }));

        if (matchingClasses.isEmpty()) {
            BearParserScriptSupplier.ui.warn(new TextConsoleEventToUI("shell", "no plugins found for '<i>" + pluginName + "</i>'\n"));
            throw new RuntimeException("no plugins found for '" + pluginName + "'");
        }

        if (matchingClasses.size() > 1) {
            BearParserScriptSupplier.ui.warn(new TextConsoleEventToUI("shell", "1+ plugins found for '<i>" + pluginName + "</i>': " + matchingClasses + "\n"));
            throw new RuntimeException("1+ plugins found for '" + pluginName + "': " + pluginName);
        }

        return global.plugin(matchingClasses.get(0));
    }
View Full Code Here

TOP

Related Classes of bear.main.event.TextConsoleEventToUI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.