Ejemplo n.º 1
0
  /*
   * (non-Javadoc)
   * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
   */
  public void start(BundleContext bundleContext) throws Exception {
    Activator.context = bundleContext;

    plugin = this;

    GLLogger.infoTech("initializing the igraph plugin for genlab...", getClass());

    IgraphLibFactory.isIGraphAvailable();

    // declare the LCF algos
    bundleContext.addBundleListener(
        new BundleListener() {

          @Override
          public void bundleChanged(BundleEvent event) {

            if (event.getType() != BundleEvent.STARTED) return;

            if (!event.getBundle().getSymbolicName().equals("genlab.core")) return;

            GLLogger.infoTech("declaring famous LCF graphs", getClass());
            FamousLCFGraphs.declareFamousLCF();
          }
        });
  }
Ejemplo n.º 2
0
 /*
  * (non-Javadoc)
  * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
  */
 public void start(BundleContext context) throws Exception {
   super.start(context);
   plugin = this;
   GLLogger.infoUser(
       "starting the examples plugin which proposes the creation of examples of workflows",
       getClass());
 }
Ejemplo n.º 3
0
  @Override
  public int declareColumn(String id) {

    if (columnId2idx.containsKey(id))
      throw new WrongParametersException("this column already exists: " + id);

    GLLogger.debugTech("declaring new column " + id, getClass());

    // create the column id...
    int intId = createNewIdForColumn(id);

    // and resize all data
    int newSize = columnId2idx.size();
    for (int i = 0; i < content.size(); i++) {
      content.set(i, Arrays.copyOf(content.get(i), newSize));
    }

    return intId;
  }
Ejemplo n.º 4
0
  /*
   * (non-Javadoc)
   * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
   */
  public void start(BundleContext bundleContext) throws Exception {
    Activator.context = bundleContext;

    GLLogger.infoTech(
        "initializing the JUNG plugin, which imports version 2.0.1 of the library", getClass());
  }