Examples of addLine()


Examples of org.movsim.roadmappings.RoadMappingPoly.addLine()

        } else {
            roadMapping = new RoadMappingPoly(roadLaneCount, laneWidth);
            final RoadMappingPoly roadMappingPoly = (RoadMappingPoly) roadMapping;
            for (Geometry geometry : road.getPlanView().getGeometry()) {
                if (geometry.isSetLine()) {
                    roadMappingPoly.addLine(geometry);
                } else if (geometry.isSetArc()) {
                    roadMappingPoly.addArc(geometry);
                } else if (geometry.isSetPoly3()) {
                    throw new IllegalArgumentException("POLY3 geometry not yet supported (in road: " + road + " )");
                } else if (geometry.isSetSpiral()) {
View Full Code Here

Examples of org.openquark.cal.internal.javamodel.JavaStatement.JavaDocComment.addLine()

            } else {
                funcComment = new JavaDocComment("Helper binding method for function: " + calFuncName + ". ");
                for (int iName = 0; iName < paramNames.length; ++iName) {
                    funcComment.addLine("@param " + paramNames[iName]);
                }
                funcComment.addLine("@return the SourceModule.expr representing an application of " + calFuncName);
            }
           
           
            // Create the method.
            JavaMethod bindingMethod =
View Full Code Here

Examples of org.openquark.cal.internal.javamodel.JavaStatement.MultiLineComment.addLine()

                            classModifiers,
                            interfaces);
               
                // Add a comment for the top of the source file.
                MultiLineComment mlc = new MultiLineComment("<!--");
                mlc.addLine(" ");
                mlc.addLine("**************************************************************");
                mlc.addLine("This Java source has been automatically generated.");
                mlc.addLine("MODIFICATIONS TO THIS SOURCE MAY BE OVERWRITTEN - DO NOT MODIFY THIS FILE");
                mlc.addLine("**************************************************************");
                mlc.addLine(" ");
View Full Code Here

Examples of org.python.pydev.core.docutils.PySelection.addLine()

                            j--;
                        }

                        String indent = line.substring(0, firstCharPos);
                        String strToAdd = indent + realImportRep + delimiter;
                        ps.addLine(strToAdd, iLine - 1); //Will add it just after the line passed as a parameter.
                        importLen = strToAdd.length();
                        return;
                    }
                } catch (Exception e) {
                    Log.log(e); //Something went wrong, add it as global (i.e.: BUG)
View Full Code Here

Examples of org.sonar.batch.issue.ignore.pattern.IssuePattern.addLine()

  public void shouldMatchViolation() {
    Rule rule = Rule.create("checkstyle", "IllegalRegexp", "");
    String javaFile = "org.foo.Bar";

    IssuePattern pattern = new IssuePattern("*", "*");
    pattern.addLine(12);

    assertThat(pattern.match(create(rule, javaFile, null))).isFalse();
    assertThat(pattern.match(create(rule, javaFile, 12))).isTrue();
    assertThat(pattern.match(create((Rule) null, javaFile, 5))).isFalse();
    assertThat(pattern.match(create(rule, null, null))).isFalse();
View Full Code Here

Examples of org.sonar.wsclient.services.Source.addLine()

        Assert.assertEquals(model.getValueAt(1, 4), "This violation has a line associated with it");


        // Add source code
        Source source = new Source();
        source.addLine(10, "x = 123");

        model.setSource(file, source);

        Assert.assertEquals(model.getValueAt(0, 0), "Major");
        Assert.assertEquals(model.getValueAt(0, 1), "A rule");
View Full Code Here

Examples of org.wicketstuff.scriptaculous.JavascriptBuilder.addLine()

    dropOptions.put("onDrop", new JavascriptFunction("function(draggable, droppable, event) { wicketAjaxGet('" + onDropBehavior.getCallbackUrl()
        + "&id=' + draggable.id); }"));

    JavascriptBuilder builder = new JavascriptBuilder();
    builder.addLine("Droppables.add('" + getMarkupId() + "', ");
    builder.addOptions(dropOptions);
    builder.addLine(");");

    getResponse().write(builder.buildScriptTagString());
  }
View Full Code Here

Examples of ptolemy.gui.Query.addLine()

                            textEffigy, textEffigy.uniqueName("debugListener"));
                    tableau.setDebuggable(getModel());
                } else if (actionCommand.equals("Animate States")) {
                    // Dialog to ask for a delay time.
                    Query query = new Query();
                    query.addLine("delay", "Time (in ms) to hold highlight",
                            Long.toString(_lastDelayTime));

                    ComponentDialog dialog = new ComponentDialog(
                            FSMGraphFrame.this, "Delay for Animation", query);
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.