Package org.cishell.framework

Examples of org.cishell.framework.LocalCIShellContext


  /**
   * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
   */
  public void start(final BundleContext context) throws Exception {
        CIShellContext ciContext = new LocalCIShellContext(context);
       
        LogListener listener = new LogListener() {
            public void logged(LogEntry e) {
                if (goodMessage(e.getMessage())) {
                    System.out.println(e.getMessage());
View Full Code Here


  }

  public void start(BundleContext context) throws Exception {
    super.start(context);
    Activator.context = context;
    ciShellContext = new LocalCIShellContext(context);

    if (waitForBundleContext) {
      earlyStartup();
    }
  }
View Full Code Here

 
  public static final String QUIT = "q";

  public void start(BundleContext b){
    this.b = b;
    this.c = new LocalCIShellContext(b);
   
    this.logger = (LogService) c.getService(
        LogService.class.getName());
    startCommandLine();
    }
View Full Code Here

  /**
   * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
   */
  public void start(BundleContext bundleContext) throws Exception {
        CIShellContext ciShellContext = new LocalCIShellContext(bundleContext);
       
        DataConversionService conversionService =
          new DataConversionServiceImpl(bundleContext, ciShellContext);
        this.conversionRegistration = bundleContext.registerService(
          DataConversionService.class.getName(),
View Full Code Here

  protected static BundleContext getBundleContext() {
    return context;
  }

  protected static CIShellContext getCIShellContext() {
    return new LocalCIShellContext(context);
  }
View Full Code Here

              */
              ServiceReference uniqueServiceReference = dataManagerServiceReference;
//              ServiceReference uniqueServiceReference = new ServiceReferenceDelegate(
//              dataManagerServiceReference);
            CIShellContext ciShellContext = new CIShellContextDelegate(
              uniqueServiceReference, new LocalCIShellContext(Activator.context));
            LogService uniqueLogger =
              (LogService) ciShellContext.getService(LogService.class.getName());

              try {
                Data[] inputData = fileLoader.loadFile(
View Full Code Here

        props.put(Constants.SERVICE_PID, getClass().getName());
       
        reg = bContext.registerService(AlgorithmFactory.class.getName(), this, props);

        if ("true".equals(System.getProperty("org.cishell.remoting.server"))) {
            CIShellContext ciContext = new LocalCIShellContext(bContext);
            startServer(ciContext);
        }
    }
View Full Code Here

            startServer(ciContext);
        }
    }
    protected void deactivate(ComponentContext ctxt) {
        if (server != null) {
            stopServer(new LocalCIShellContext(ctxt.getBundleContext()));
        }
        reg.unregister();
    }
View Full Code Here

            windows = getWorkbench().getWorkbenchWindows();
        }
       
        final Shell shell = windows[0].getShell();
        IMenuManager menuManager = CIShellApplication.getMenuManager();
        CIShellContext ciShellContext = new LocalCIShellContext(bundleContext);
        Properties properties = getProperties();
        String toolName = getToolName(properties);
        String toolTicketURL = getToolTicketURL(properties);
       
        this.menuAdapter = new MenuAdapter(
View Full Code Here

TOP

Related Classes of org.cishell.framework.LocalCIShellContext

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.