Examples of SimpleAction


Examples of com.springsource.greenhouse.activity.action.SimpleAction

    public boolean matches(Action action) {
      if (!(action instanceof SimpleAction)) {
        return false;
      }
      SimpleAction simple = (SimpleAction) action;
      return simple.getType().equals(type);
    }
View Full Code Here

Examples of mfinder.SimpleAction

    /**
     * Test of newInstance method, of class SpringObjectFactory.
     */
    @Test
    public void testNewInstance() {
        SimpleAction sa1 = objectFactory.newInstance(SimpleAction.class);
        sa1.springInject();
        SimpleAction sa2 = objectFactory.newInstance(SimpleAction.class);
        sa2.springInject();
        assertNotSame(sa1, sa2);
        //注入的为单例bean对象
        assertSame(sa1.springInject(), sa2.springInject());
    }
View Full Code Here

Examples of org.wikipediacleaner.api.check.SimpleAction

            if (link.hasSquare()) {
              errorResult.addReplacement(url + suffix);
            }
          }
          errorResult.addPossibleAction(
              new SimpleAction(GT._("External viewer"),
                  new ActionExternalViewer(url)));
          errors.add(errorResult);
        }
      }
    }
View Full Code Here

Examples of org.wikipediacleaner.api.check.SimpleAction

                      GT._("What name would you like to use for the <ref> tag ?"),
                      nameChecker));

              // Add actions for external links
              for (PageElementExternalLink link : links) {
                errorResult.addPossibleAction(new SimpleAction(
                    GT._("External Viewer"),
                    new ActionExternalViewer(link.getLink())));
              }
              errors.add(errorResult);
            }
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.