Examples of ILogDialectFactory


Examples of net.sf.logsaw.core.dialect.ILogDialectFactory

        IStructuredSelection sel = (IStructuredSelection) event.getSelection();
        if (sel.isEmpty()) {
          detailsText.setText(""); //$NON-NLS-1$
          setPageComplete(false);
        } else {
          ILogDialectFactory dialect = (ILogDialectFactory) sel.getFirstElement();
          detailsText.setText(dialect.getDescription() != null ?
              dialect.getDescription() : ""); //$NON-NLS-1$
          setPageComplete(true);
        }
      }
    });
    tableViewer.setComparator(new ViewerComparator());
View Full Code Here

Examples of net.sf.logsaw.core.dialect.ILogDialectFactory

    List<ILogDialectFactory> ret = new ArrayList<ILogDialectFactory>();
    IConfigurationElement[] factories = Platform.getExtensionRegistry().getConfigurationElementsFor(EXT_DIALECT_FACTORY_ID);
    for (IConfigurationElement factoryElem : factories) {
      String thisId = factoryElem.getAttribute(ATTR_ID);
      logger.info("Loading dialect factory: " + thisId); //$NON-NLS-1$
      ILogDialectFactory factory = (ILogDialectFactory) factoryElem.createExecutableExtension(ATTR_CLASS);
      initLogDialectFactory(factoryElem, factory);
      ret.add(factory);
    }
    return ret;
  }
View Full Code Here

Examples of net.sf.logsaw.core.dialect.ILogDialectFactory

    IConfigurationElement[] factories = Platform.getExtensionRegistry().getConfigurationElementsFor(EXT_DIALECT_FACTORY_ID);
    for (IConfigurationElement factoryElem : factories) {
      String thisId = factoryElem.getAttribute(ATTR_ID);
      if ((thisId != null) && thisId.equals(id)) {
        logger.info("Found dialect factory: " + thisId); //$NON-NLS-1$
        ILogDialectFactory factory = (ILogDialectFactory) factoryElem.createExecutableExtension(ATTR_CLASS);
        initLogDialectFactory(factoryElem, factory);
        return factory;
      }
    }
    // Fatal error
View Full Code Here

Examples of net.sf.logsaw.core.dialect.ILogDialectFactory

   */
  @Override
  public IWizardPage getNextPage(IWizardPage page) {
    if (page == selectDialectPage) {
      // Determine dynamic follow-up pages
      ILogDialectFactory dialect = selectDialectPage.getSelectedDialectFactory();
      updateWizardPages(dialectPages, "net.sf.logsaw.ui.dialectWizardPageFactory", dialect); //$NON-NLS-1$
      if (!dialectPages.isEmpty()) {
        return dialectPages.get(0);
      }
    }
View Full Code Here

Examples of net.sf.logsaw.core.dialect.ILogDialectFactory

  /* (non-Javadoc)
   * @see org.eclipse.jface.wizard.Wizard#canFinish()
   */
  @Override
  public boolean canFinish() {
    ILogDialectFactory dialectFactory = selectDialectPage.getSelectedDialectFactory();
    if (dialectFactory != null) {
      // Determine dynamic follow-up pages
      updateWizardPages(dialectPages, "net.sf.logsaw.ui.dialectWizardPageFactory", dialectFactory); //$NON-NLS-1$
      for (IConfigurableObjectWizardPage page : dialectPages) {
        if (!page.isPageComplete()) {
View Full Code Here

Examples of net.sf.logsaw.core.dialect.ILogDialectFactory

      String name = null;
      try {
        name = logElem.getChild(ELEM_NAME).getTextData();
        IMemento dialectElem = logElem.getChild(ELEM_DIALECT);
        String dialectFactory = dialectElem.getString(ATTRIB_FACTORY);
        ILogDialectFactory factory = CorePlugin.getDefault().getLogDialectFactory(dialectFactory);
        ILogDialect dialect = factory.createLogDialect();
       
        // Restore config options of dialect
        loadConfigOptions(dialectElem, (IConfigurableObject) dialect.getAdapter(IConfigurableObject.class));
        String pk = logElem.getChild(ELEM_PK).getTextData();
       
View Full Code Here

Examples of net.sf.logsaw.core.dialect.ILogDialectFactory

  /**
   * Returns the log dialect to test with.
   * @return the log dialect to test with
   */
  protected final ILogDialect createLogDialect() {
    ILogDialectFactory factory = doGetLogDialectFactory();
    Assert.isNotNull(factory, "factory");
    return factory.createLogDialect();
  }
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.