@Bundle( "resources/i18n/PreferencesConstants.properties" ) public class PreferencesEntryPoint { }
private String getPathRoot(final MetaClass bundleClass, final URL resource) { final String fullPath = resource.getPath(); final String resourcePath = bundleClass.getAnnotation(Bundle.class).value(); final String protocol = resource.getProtocol(); final String relativePath; if (resourcePath.startsWith("/")) relativePath = resourcePath; else // Do NOT use File.separatorChar here: Url.getPath() always uses forward-slashes relativePath = bundleClass.getPackageName().replace('.', '/'); final String pathRoot = fullPath.substring(0, fullPath.indexOf(relativePath)); return protocol + ":" + pathRoot; }
private String getPathRoot(final MetaClass bundleClass, final URL resource) { final String fullPath = resource.getPath(); final String resourcePath = bundleClass.getAnnotation(Bundle.class).value(); final String protocol = resource.getProtocol(); final String relativePath; if (resourcePath.startsWith("/")) relativePath = resourcePath; else // Do NOT use File.separatorChar here: Url.getPath() always uses forward-slashes relativePath = bundleClass.getPackageName().replace('.', '/'); final String pathRoot = fullPath.substring(0, fullPath.indexOf(relativePath)); return protocol + ":" + pathRoot; }
@Bundle("resources/i18n/WorkbenchConstants.properties") public class WorkbenchEntryPoint { }
/** * Gets the bundle name from the @Bundle annotation. * * @param bundleAnnotatedClass */ private String getMessageBundlePath(final MetaClass bundleAnnotatedClass) { final Bundle annotation = bundleAnnotatedClass.getAnnotation(Bundle.class); final String name = annotation.value(); if (name == null) { throw new GenerationException("@Bundle: bundle name must not be null]."); } // Absolute path vs. relative path. if (name.startsWith("/")) { return name.substring(1); } else { final String packageName = bundleAnnotatedClass.getPackageName(); return packageName.replace('.', '/') + "/" + name; } }
@EntryPoint @Bundle("i18n/Constants.properties") public class IntegrationEntryPoint { @Inject private CaseProvisioningAppLauncherHandler presenter; @PostConstruct public void startWorkbench() { presenter.verifyCaseAppStatus(); } }
/** * Gets the bundle name from the @Bundle annotation. * * @param bundleAnnotatedClass */ private String getMessageBundlePath(final MetaClass bundleAnnotatedClass) { final Bundle annotation = bundleAnnotatedClass.getAnnotation(Bundle.class); final String name = annotation.value(); if (name == null) { throw new GenerationException("@Bundle: bundle name must not be null]."); } // Absolute path vs. relative path. if (name.startsWith("/")) { return name.substring(1); } else { final String packageName = bundleAnnotatedClass.getPackageName(); return packageName.replace('.', '/') + "/" + name; } }
@Bundle("resources/i18n/Constants.properties") @EntryPoint public class BaseEditorEntryPoint { @PostConstruct public void init() { } }
@EntryPoint @Bundle("resources/i18n/Constants.properties") public class HumanTaskEntryPoint { @PostConstruct public void init() { HumanTaskResources.INSTANCE.css().ensureInjected(); PatternFlyBootstrapper.ensureBootstrapDateRangePickerIsAvailable(); } }
@Bundle("resources/i18n/Constants.properties") @EntryPoint public class BaseEditorEntryPoint { @PostConstruct public void init() { } }
@EntryPoint @Bundle("resources/i18n/GlobalsEditorConstants.properties") public class GlobalsEditorEntryPoint { @PostConstruct public void startApp() { GlobalsEditorResources.INSTANCE.CSS().ensureInjected(); } }
@EntryPoint @Bundle("i18n/Constants.properties") public class IntegrationEntryPoint { @Inject private CaseProvisioningAppLauncherHandler presenter; @PostConstruct public void startWorkbench() { presenter.verifyCaseAppStatus(); } }
@EntryPoint @Bundle("resources/i18n/KieWorkbenchWidgetsConstants.properties") public class KieWorkbenchWidgetsCommonEntryPoint { @PostConstruct public void startApp() { RoundedCornersResource.INSTANCE.roundCornersCss().ensureInjected(); CommonsResources.INSTANCE.css().ensureInjected(); PatternFlyBootstrapper.ensureBootstrapSelectIsAvailable(); } }
@EntryPoint @Bundle("resources/i18n/GlobalsEditorConstants.properties") public class GlobalsEditorEntryPoint { @PostConstruct public void startApp() { GlobalsEditorResources.INSTANCE.CSS().ensureInjected(); } }
@EntryPoint @Bundle("resources/i18n/KieMultipleDocumentEditorConstants.properties") public class KieMultipleDocumentEditorEntryPoint { }
@EntryPoint @Bundle("i18n/FormsConstants.properties") public class GenericFormsClientEntryPoint { @PostConstruct public void startApp() { AppResources.INSTANCE.style().ensureInjected(); PatternFlyBootstrapper.ensureBootstrapSelectIsAvailable(); } }
@EntryPoint @Bundle("resources/i18n/GuidedDecisionTableErraiConstants.properties") public class GuidedDecisionTableEditorEntryPoint { @PostConstruct public void startApp() { GuidedDecisionTableResources.INSTANCE.css().ensureInjected(); AnalyzerResources.INSTANCE.analysisCss().ensureInjected(); } }
@EntryPoint @Bundle("resources/i18n/Constants.properties") public class HumanTaskEntryPoint { @PostConstruct public void init() { HumanTaskResources.INSTANCE.css().ensureInjected(); PatternFlyBootstrapper.ensureBootstrapDateRangePickerIsAvailable(); } }
@EntryPoint @Bundle("resources/i18n/GuidedRuleEditorConstants.properties") public class GuidedRuleEditorEntryPoint { @PostConstruct public void startApp() { GuidedRuleEditorResources.INSTANCE.css().ensureInjected(); } }
@EntryPoint @Bundle("resources/i18n/Library.properties") public class LibraryEntryPoint { }