Examples of trigger()


Examples of com.sk89q.craftbook.mechanics.ic.IC.trigger()

            }

            @Override
            public void think(ChipState chip) {

                self.trigger(chip);
            }

            @Override
            public boolean isActive() {
View Full Code Here

Examples of com.sun.star.task.XJobExecutor.trigger()

        aProperties[2] = Properties.createProperty("CommandType", new Integer(CommandType.TABLE));
        aProperties[3] = Properties.createProperty("Command", scomposedtablename);
        XInitialization xInitialization = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, oFormWizard);
        xInitialization.initialize(aProperties);
        XJobExecutor xJobExecutor = (XJobExecutor) UnoRuntime.queryInterface(XJobExecutor.class, oFormWizard);
        xJobExecutor.trigger("start");
        XPropertySet prop = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,xJobExecutor);
        components[0] = (XComponent)prop.getPropertyValue("Document");
        components[1] = (XComponent)prop.getPropertyValue("DocumentDefinition");
    } catch (Exception e) {
        e.printStackTrace(System.out);
View Full Code Here

Examples of com.sun.star.task.XJobExecutor.trigger()

        aProperties[2] = Properties.createProperty("CommandType", new Integer(CommandType.TABLE));
        aProperties[3] = Properties.createProperty("Command", scomposedtablename);
        XInitialization xInitialization = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, oFormWizard);
        xInitialization.initialize(aProperties);
        XJobExecutor xJobExecutor = (XJobExecutor) UnoRuntime.queryInterface(XJobExecutor.class, oFormWizard);
        xJobExecutor.trigger("start");
        XPropertySet prop = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,xJobExecutor);
        components[0] = (XComponent)prop.getPropertyValue("Document");
        components[1] = (XComponent)prop.getPropertyValue("DocumentDefinition");
    } catch (Exception e) {
        e.printStackTrace(System.out);
View Full Code Here

Examples of com.sun.star.task.XJobExecutor.trigger()

            aProperties[2] = Properties.createProperty("CommandType", new Integer(CommandType.TABLE));
            aProperties[3] = Properties.createProperty("Command", scomposedtablename);
            XInitialization xInitialization = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, oFormWizard);
            xInitialization.initialize(aProperties);
            XJobExecutor xJobExecutor = (XJobExecutor) UnoRuntime.queryInterface(XJobExecutor.class, oFormWizard);
            xJobExecutor.trigger("start");
            XPropertySet prop = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xJobExecutor);
            components[0] = (XComponent) prop.getPropertyValue("Document");
            components[1] = (XComponent) prop.getPropertyValue("DocumentDefinition");
        }
        catch (Exception e)
View Full Code Here

Examples of hudson.plugins.emailext.plugins.EmailTrigger.trigger()

     */
    void assertTriggered(Result... resultHistory)
            throws IOException, InterruptedException {
        EmailTrigger trigger = newInstance();
        AbstractBuild<?, ?> build = mockBuild(resultHistory);
        assertTrue(trigger.trigger(build, getTaskListener()));
    }

    /**
     * Asserts the the specified result history does not trigger the
     * EmailTrigger.
 
View Full Code Here

Examples of hudson.plugins.emailext.plugins.EmailTrigger.trigger()

     */
    void assertNotTriggered(Result... resultHistory)
            throws IOException, InterruptedException {
        EmailTrigger trigger = newInstance();
        AbstractBuild<?, ?> build = mockBuild(resultHistory);
        assertFalse(trigger.trigger(build, getTaskListener()));
    }

    /**
     * Creates a mock AbstractBuild with the specified history of results.
     */
 
View Full Code Here

Examples of nexj.core.admin.platform.jboss.JBossInstaller.RemoteResourceConnection.CommandSpec.trigger()

      cmd = new CommandSpec("c:\\go 123\";\"abc");
      assertEqual(new String[] {"c:\\go", "123;abc"}, cmd.getCommand(props));

      cmd = new CommandSpec("c:\\go 123\\\\;a*bc 123${123} \"Hello there\" \"\"");
      assertEqual(new String[] {"c:\\go", "123\\"}, cmd.getCommand(props));
      assertEquals("123def", cmd.trigger("I know my abc's", props));
      assertEquals("123def", cmd.trigger("I know my bc's", props));
      assertEquals("123def", cmd.trigger("I know my aaabc's", props));
      assertEquals("", cmd.trigger("This is a Hello there test", props));
   }

View Full Code Here

Examples of org.apache.felix.cm.integration.helper.ConfigureThread.trigger()

            // start threads -- both are waiting to be triggered
            ct.start();
            mt.start();

            // trigger for action
            ct.trigger();
            mt.trigger();

            // wait for threads to terminate
            ct.join();
            mt.join();
View Full Code Here

Examples of org.apache.felix.cm.integration.helper.ConfigureThread.trigger()

            // start threads -- both are waiting to be triggered
            ct.start();
            mt.start();

            // trigger for action
            ct.trigger();
            mt.trigger();

            // wait for threads to terminate
            ct.join();
            mt.join();
View Full Code Here

Examples of org.apache.felix.cm.integration.helper.ManagedServiceFactoryThread.trigger()

            ct.start();
            mt.start();

            // trigger for action
            ct.trigger();
            mt.trigger();

            // wait for threads to terminate
            ct.join();
            mt.join();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.