コード例 #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 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()
       });
 }
コード例 #2
0
 protected IStandaloneCartridge getRequiredApplication(
     Collection<IStandaloneCartridge> allCartridges) {
   if (requiredApplication == null) {
     return null;
   }
   return requiredApplication.getCartridge(allCartridges);
 }
コード例 #3
0
 @Override
 protected boolean meetsRequirements(IApplicationPropertiesProvider application) {
   IStandaloneCartridge applicationType = application.getCartridge();
   return eapSelector.isMatching(applicationType) || asSelector.isMatching(applicationType);
 }