Examples of expand()


Examples of org.drools.lang.dsl.DefaultExpander.expand()

                DrlParser parser = new DrlParser();
                DefaultExpander expander = getDslExpander();

                if ( null != expander ) {
                    knowledge = new StringReader( expander.expand( knowledge ) );
                    if ( expander.hasErrors() ) {
                        getErrors().addAll( expander.getErrors() );
                    }
                }
View Full Code Here

Examples of org.drools.lang.dsl.DefaultExpander.expand()

    @Test
    public void testExpanderErrorsAfterExpansion() throws Exception {

        final String name = "expander_post_errors.dslr";
        final Expander expander = new DefaultExpander();
        final String expanded = expander.expand( this.getReader( name ) );
       
        final DRLParser parser = parse( name,
                                        expanded );
        parser.compilationUnit();
        assertTrue( parser.hasErrors() );
View Full Code Here

Examples of org.drools.lang.dsl.DefaultExpander.expand()

        try {
            if ( expander == null ) {
                expander = new DefaultExpander();
            }
            String str = expander.expand( resource.getReader() );
            if ( expander.hasErrors() ) {
                this.results.addAll( expander.getErrors() );
            }

            final PackageDescr pkg = parser.parse( str );
View Full Code Here

Examples of org.drools.lang.dsl.DefaultExpander.expand()

            if ( provider.hasDSLSentences() ) {
                DefaultExpander expander = getDslExpander();

                if ( null != expander ) {
                    knowledge = new StringReader( expander.expand( knowledge ) );
                    if ( expander.hasErrors() ) this.results.addAll( expander.getErrors() );
                }
            }

            PackageDescr pkg = parser.parse( knowledge );
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Dimension.expand()

      child = (IFigure) children.get(i);
      if (!isObservingVisibility() || child.isVisible())
        d.union(child.getMinimumSize(wHint, hHint));
    }

    d.expand(figure.getInsets().getWidth(), figure.getInsets().getHeight());
    d.union(getBorderPreferredSize(figure));
    return d;

  }
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Rectangle.expand()

    @Override
    public Rectangle getClientArea(Rectangle rect) {
        Rectangle r = super.getClientArea(rect);
        Rectangle borderRect = r.getCopy();
        if (!bpmnNotation) {
            borderRect.expand(-GRID_SIZE / 2, 0);
        }
        return borderRect;
    }

}
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.expand()

      FuzzyXMLNode selectedNode = _idToNodeMap.get(target);
      ProjectionAnnotationModel model = ((ProjectionViewer) _editor.getViewer()).getProjectionAnnotationModel();
      ProjectionAnnotation lastAnnotation = getAnnotationForNode(selectedNode, model);
      if (lastAnnotation != null) {
        model.expand(lastAnnotation);
      }
    }
  }

  /**
 
View Full Code Here

Examples of org.eclipse.nebula.widgets.gallery.DefaultGalleryGroupRenderer.expand()

    final Action expand = new Action() {
      public void run() {
        final CTabItem[] items = ImagesView.this.fld.getItems();
        for (final CTabItem i : items) {
          final Collapser rr = (Collapser) i.getData("ga");
          rr.expand();
        }
      }

    };
    expand.setText("Expand All");
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem.expand()

  @Test
  public void testCreateCheckoutDeleteLocalBranch() throws Exception {
    final SWTBotView view = getOrOpenView();
    SWTBotTreeItem localItem = myRepoViewUtil.getLocalBranchesItem(view
        .bot().tree(), repositoryFile);
    localItem.expand();
    assertEquals("Wrong number of children", 1, localItem.getNodes().size());

    assertEquals("master", localItem.getNodes().get(0));
    localItem.getNode(0).select();
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Dimension.expand()

  public void apply() throws Exception {
    GwtState state = m_widget.getState();
    Dimension size = getResourceSize();
    // IE in strict mode always has border 2px
    if (state.isStrictMode() && state.isBrowserExplorer()) {
      size.expand(2 + 2, 2 + 2);
    }
    // prepare Shell
    IBrowserShell shell = state.getShell();
    shell.prepare();
    // set Shell size
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.