Examples of ILogDialect


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

    noDefaultAndApplyButton();
   
    Composite root = new Composite(parent, SWT.NONE);
    root.setLayout(new GridLayout(2, false));
   
    ILogDialect dialect = ((ILogResource) getElement().getAdapter(ILogResource.class)).getDialect();
   
    Label label = new Label(root, SWT.NONE);
    label.setText(Messages.DialectPropertyPage_label_name);
   
    Text text = new Text(root, SWT.SINGLE);
    text.setBackground(root.getDisplay().getSystemColor(
        SWT.COLOR_WIDGET_BACKGROUND));
    text.setText(dialect.getFactory().getName());
   
    // Spacer
    new Label(root, SWT.NONE);
   
    final IConfigurableObject co = (IConfigurableObject) dialect.getAdapter(IConfigurableObject.class);
    if (co != null) {
      List<IConfigOption<?>> options = co.getAllConfigOptions();
      if (!options.isEmpty()) {
        final Group group = new Group(root, SWT.NONE);
        group.setText(Messages.DialectPropertyPage_label_config);
View Full Code Here

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

  /* (non-Javadoc)
   * @see net.sf.logsaw.core.dialect.ILogDialectFactory#createLogDialect()
   */
  @Override
  public final ILogDialect createLogDialect() {
    ILogDialect dialect = doCreateLogDialect();
    Assert.isNotNull(dialect, "dialect");
    dialect.setFactory(this);
    return dialect;
  }
View Full Code Here

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

      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();
       
        // TODO Dynamic factory for log resource
        ILogResource log = SimpleLogResourceFactory.getInstance().createLogResource();
        log.setDialect(dialect);
View Full Code Here

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

    }
  }

  @Test
  public void testGetAllFields() {
    ILogDialect dialect = createLogDialect();
    int oldSize = dialect.getFieldProvider().getAllFields().size();
    assertNotNull(dialect.getFieldProvider().getAllFields());
    assertTrue(!dialect.getFieldProvider().getAllFields().isEmpty());
    Iterator<ALogEntryField<?, ?>> it = dialect.getFieldProvider().getAllFields().iterator();
    it.next();
    it.remove();
    assertEquals("Changes to the set should not change the state of the dialect",
        oldSize, dialect.getFieldProvider().getAllFields().size());
  }
View Full Code Here

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

        oldSize, dialect.getFieldProvider().getAllFields().size());
  }

  @Test
  public void testGetDefaultFields() {
    ILogDialect dialect = createLogDialect();
    int oldSize = dialect.getFieldProvider().getDefaultFields().size();
    assertNotNull(dialect.getFieldProvider().getDefaultFields());
    assertTrue(!dialect.getFieldProvider().getDefaultFields().isEmpty());
    Iterator<ALogEntryField<?, ?>> it = dialect.getFieldProvider().getDefaultFields().iterator();
    it.next();
    it.remove();
    assertEquals("Changes to the list should not change the state of the dialect",
        oldSize, dialect.getFieldProvider().getDefaultFields().size());
  }
View Full Code Here

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

        oldSize, dialect.getFieldProvider().getDefaultFields().size());
  }

  @Test
  public void testTimestampField() {
    ILogDialect dialect = createLogDialect();
    assertNotNull(dialect.getFieldProvider().getTimestampField());
  }
View Full Code Here

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

    }
  }

  @Test
  public void testGetAllFields() {
    ILogDialect dialect = createLogDialect();
    int oldSize = dialect.getFieldProvider().getAllFields().size();
    assertNotNull(dialect.getFieldProvider().getAllFields());
    assertTrue(!dialect.getFieldProvider().getAllFields().isEmpty());
    Iterator<ALogEntryField<?, ?>> it = dialect.getFieldProvider().getAllFields().iterator();
    it.next();
    it.remove();
    assertEquals("Changes to the set should not change the state of the dialect",
        oldSize, dialect.getFieldProvider().getAllFields().size());
  }
View Full Code Here

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

        oldSize, dialect.getFieldProvider().getAllFields().size());
  }

  @Test
  public void testGetDefaultFields() {
    ILogDialect dialect = createLogDialect();
    int oldSize = dialect.getFieldProvider().getDefaultFields().size();
    assertNotNull(dialect.getFieldProvider().getDefaultFields());
    assertTrue(!dialect.getFieldProvider().getDefaultFields().isEmpty());
    Iterator<ALogEntryField<?, ?>> it = dialect.getFieldProvider().getDefaultFields().iterator();
    it.next();
    it.remove();
    assertEquals("Changes to the list should not change the state of the dialect",
        oldSize, dialect.getFieldProvider().getDefaultFields().size());
  }
View Full Code Here

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

        oldSize, dialect.getFieldProvider().getDefaultFields().size());
  }

  @Test
  public void testTimestampField() {
    ILogDialect dialect = createLogDialect();
    assertNotNull(dialect.getFieldProvider().getTimestampField());
  }
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.