Package org.osmorc.frameworkintegration

Examples of org.osmorc.frameworkintegration.FrameworkIntegrator


    }
    if (moduleNode.getChildCount() > 0) root.add(moduleNode);

    // all the framework bundles (if there are any)
    if (instance != null) {
      FrameworkIntegrator integrator = FrameworkIntegratorRegistry.getInstance().findIntegratorByInstanceDefinition(instance);
      if (integrator != null) {
        DefaultMutableTreeNode frameworkNode = new DefaultMutableTreeNode(OsmorcBundle.message("bundle.selector.group.framework"));
        for (SelectedBundle bundle : integrator.getFrameworkInstanceManager().getFrameworkBundles(instance, FrameworkBundleType.OTHER)) {
          if (!toHide.contains(bundle)) {
            frameworkNode.add(new DefaultMutableTreeNode(bundle));
          }
        }
        if (frameworkNode.getChildCount() > 0) root.add(frameworkNode);
View Full Code Here


   * any framework bundles from the list, as they are no longer in classpath.
   */
  private void onFrameworkChange() {
    if (myFrameworkInstances.getSelectedItem() != null) {
      FrameworkInstanceDefinition instance = (FrameworkInstanceDefinition)myFrameworkInstances.getSelectedItem();
      FrameworkIntegrator integrator = FrameworkIntegratorRegistry.getInstance().findIntegratorByInstanceDefinition(instance);
      assert integrator != null : instance;

      // clear the panel
      myAdditionalPropertiesPanel.removeAll();

      // create and install a new editor (if present)
      myCurrentRunPropertiesEditor = integrator.createRunPropertiesEditor();
      if (myCurrentRunPropertiesEditor != null) {
        myAdditionalPropertiesPanel.removeAll();
        myAdditionalPropertiesPanel.add(myCurrentRunPropertiesEditor.getUI(), BorderLayout.CENTER);
        if (myRunConfiguration != null) {
          myCurrentRunPropertiesEditor.resetEditorFrom(myRunConfiguration);
View Full Code Here

    FrameworkInstanceDefinition instance = myRunConfiguration.getInstanceToUse();
    if (instance == null) {
      throw new CantRunException("Incorrect OSGi run configuration: framework not set");
    }
    FrameworkIntegrator integrator = FrameworkIntegratorRegistry.getInstance().findIntegratorByInstanceDefinition(instance);
    if (integrator == null) {
      throw new CantRunException("Internal error: missing integrator for " + instance);
    }
    myRunner = integrator.createFrameworkRunner();
  }
View Full Code Here

TOP

Related Classes of org.osmorc.frameworkintegration.FrameworkIntegrator

Copyright © 2018 www.massapicom. 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.