コード例 #1
0
 @Override
 public String getMessage(
     IEmbeddableCartridge requestedCartridge, IApplicationPropertiesProvider application) {
   return NLS.bind(
       "It is not recommended to add cartridge {0} to your application {1}."
           + " The cartridge cannot scale and requires a non-scalable application. "
           + "Your application is scalable.",
       requestedCartridge.getName(), application.getName());
 }
コード例 #2
0
 @Override
 public String getMessage(
     IEmbeddableCartridge requestedCartridge, IApplicationPropertiesProvider application) {
   return NLS.bind(
       "It is not recommended to add cartridge {0} to your application {1}."
           + " The cartridge requires a {3} or {4} application and your application is a {2}.",
       new String[] {
         requestedCartridge.getName(),
         application.getName(),
         application.getCartridge().getName(),
         eapSelector.getName(),
         asSelector.getName()
       });
 }
コード例 #3
0
 private boolean matches(IEmbeddableCartridge cartridge) {
   return cartridge.getName() != null && cartridge.getName().startsWith(nameStartsWith);
 }