Examples of OSGiPreloadedModule


Examples of org.jboss.as.console.client.shared.subsys.osgi.model.OSGiPreloadedModule

        layout.add(new ContentGroupLabel(Console.CONSTANTS.subsys_osgi_preloadedModules()));
        ToolStrip toolStrip = new ToolStrip();
        toolStrip.addToolButton(new ToolButton(Console.CONSTANTS.common_label_edit(), new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                OSGiPreloadedModule module =  preloadedModulesTable.getSelection();
                presenter.launchModuleWizard(module);
            }
        }));
        toolStrip.addToolButton(new ToolButton(Console.CONSTANTS.common_label_delete(), new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                final OSGiPreloadedModule module =  preloadedModulesTable.getSelection();
                Feedback.confirm(Console.MESSAGES.subsys_osgi_removePreloadedModule(),
                    Console.MESSAGES.subsys_osgi_removePreloadedModuleConfirm(module.getIdentifier()),
                    new Feedback.ConfirmationHandler() {
                        @Override
                        public void onConfirmation(boolean isConfirmed) {
                            if (isConfirmed)
                                presenter.onDeletePreloadedModule(module.getIdentifier());
                        }
                    });
            }
        }));
        toolStrip.addToolButtonRight(new ToolButton(Console.CONSTANTS.common_label_add(), new ClickHandler() {
View Full Code Here

Examples of org.jboss.as.console.client.shared.subsys.osgi.model.OSGiPreloadedModule

                ModelNode response = ModelNode.fromBase64(result.getResponseText());
                ModelNode model = response.get(RESULT);

                List<OSGiPreloadedModule> modules = new ArrayList<OSGiPreloadedModule>();
                for (String moduleName : model.keys()) {
                    OSGiPreloadedModule pm = factory.osgiPreloadedModule().as();
                    pm.setIdentifier(moduleName);

                    ModelNode val = model.get(moduleName);
                    if (val.has("start")) {
                        pm.setStartLevel(val.get("start").asString());
                    }
                    modules.add(pm);
                }
                getView().updatePreloadedModules(modules);
            }
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.