@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()); }
@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() }); }
private boolean matches(IEmbeddableCartridge cartridge) { return cartridge.getName() != null && cartridge.getName().startsWith(nameStartsWith); }