Examples of modify()


Examples of org.eclipse.wst.common.project.facet.core.IFacetedProject.modify()

            .getInstalledVersion(phpFacet))) {
          final Set<IFacetedProject.Action> actions = new HashSet<IFacetedProject.Action>();
          actions.add(new IFacetedProject.Action(
              IFacetedProject.Action.Type.VERSION_CHANGE,
              facetedVersion, null));
          faceted.modify(actions, new NullProgressMonitor());
        }
      } catch (CoreException ex) {
        return new Status(IStatus.ERROR, PHPCorePlugin.ID,
            Messages.PHPFacets_SettingVersionFailed, ex);
      } catch (IllegalArgumentException ex) {
View Full Code Here

Examples of org.eclipse.xtext.ui.editor.model.IXtextDocument.modify()

      /*
       * Textual and semantic updates cannot be done in the same IUnitOfWork (throws an
       * IllegalStateException), so index updates (semantic) are done first and tracked in the
       * commentsToUpdate list, then a 2nd IUnitOfWork processes the comment updates (textual).
       */
      document.modify(new IUnitOfWork.Void<XtextResource>() {
        @Override public void process(XtextResource resource) {
          Protobuf root = resources.rootOf(resource);
          if (!protobufs.isProto2(root) /*|| !resource.getErrors().isEmpty()*/) {
            return;
          }
View Full Code Here

Examples of org.geotools.data.Diff.modify()

                        QName propName = propertyNames.get(i);
                        Object value = newValues.get(i);
                        String attName = propName.getLocalPart();
                        f.setAttribute(attName, value);
                    }
                    diff.modify(f.getID(), f);
                    updated++;
                }
            }

        }
View Full Code Here

Examples of org.jboss.deployers.vfs.plugins.structure.modify.ModificationAction.modify()

            boolean trace = log.isTraceEnabled();

            if (trace)
               log.trace("Modifying file: " + file + ", modification type: " + modificationType);

            modified = action.modify(file);

            if (trace)
            {
               if (modified != file)
                  log.trace("Modified file: " + modified);
View Full Code Here

Examples of org.jostraca.NameValueListPSM.modify()

    props.set( Property.lang_NameValueList_nameQuote,     "'" );  
    props.set( Property.lang_NameValueList_itemSeparator, ","  );  
    props.set( Property.lang_NameValueList_valueQuote,    "'" );  
    props.set( Property.lang_NameValueList_pairSeparator, ", "  );  

    qclm.modify( props, props );

    // note: no escaping done for this test
    assertEquals( "'lang.NameValueList.nameQuote',''', 'nb','vb', 'lang.NameValueList.valueQuote',''', 'n\"n','v\nv', 'na','va', 'lang.NameValueList.pairSeparator',', ', 'lang.NameValueList.itemSeparator',',', 'nc','vc'",
                  props.get( Property.jostraca_properties_NameValueList ) );
View Full Code Here

Examples of org.jostraca.section.BlockIndenter.modify()

    mps.set( Property.jostraca_writerformat_source, wfsource1 );   

    BlockIndenter bi = new BlockIndenter();

    bi.modify( foobarss, mps );

    assertTrue( ( footext1+in_1+footext2   ).equals( foos.getContent() ) );
    assertTrue( ( bartext1+in_1_2+bartext2 ).equals( bars.getContent() ) );
    assertTrue( ( nafftext1+in_1_2_3+nafftext2 ).equals( naffs.getContent() ) );
View Full Code Here

Examples of org.jostraca.section.Collapser.modify()

    foobarin.addSection( fooin );
    foobarin.addSection( barin );

    Collapser collapser = new Collapser();
   
    Section fooout = collapser.modify( fooin, mps );
    assertTrue( fooout.getContent().equals( footextcollapse ) );
    assertTrue( fooout.getName().equals( fooname ) );

    collapser.modify( barin, mps );
    assertTrue( barin.getContent().equals( bartextcollapse ) );
View Full Code Here

Examples of org.jostraca.section.Identity.modify()

    foobarin.addSection( fooin );
    foobarin.addSection( barin );

    Identity identity = new Identity();
   
    Section fooout = identity.modify( fooin, mps );
    assertTrue( fooout.getContent().equals( footext ) );
    assertTrue( fooout.getName().equals( fooname ) );

    identity.modify( barin, mps );
    assertTrue( barin.getContent().equals( bartext ) );
View Full Code Here

Examples of org.jostraca.section.PythonIndenter.modify()

    Section sec = new BasicSection( "sec" );

    String in1  = "print 'foo' ";
    String out1 = "print 'foo' ";
    sec.setContent( in1 );
    pi.modify( sec, mps );
    //System.out.println( in1  );
    //System.out.println( out1 );
    //System.out.println( sec.getContent() );
    assertTrue( out1.equals( sec.getContent() ) );
View Full Code Here

Examples of org.jostraca.util.PrefixOperatorPSM.modify()

    props.set( "tr-file",   "(file) tr-file.txt");
    props.set( "tr-file-q", "(file/tr) tr-file.txt");
    props.set( Property.main_OutputFolder, FileUtil.findFile( "org/jostraca/util/test/out" ).getAbsolutePath() );
    props.set( "or-file", "(file/or) or-file.txt");

    qclm.modify( props, props );

    assertTrue( props.get( "tr-file" ).replace('\\','/').endsWith( "jostraca/util/test/tr-file.txt" ) );
    assertTrue( props.get( "tr-file-q" ).replace('\\','/').endsWith( "jostraca/util/test/tr-file.txt" ) );
    assertTrue( props.get( "or-file" ).replace('\\','/').endsWith( "jostraca/util/test/out/or-file.txt" ) );
  }
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.