Examples of commitChanges()


Examples of com.intellij.lang.javascript.library.JSLibraryManager.commitChanges()

          ScriptingLibraryModel.LibraryLevel.GLOBAL,
          false
        );
        JSLibraryMappings jsLibraryMappings = ServiceManager.getService(project, JSLibraryMappings.class);
        jsLibraryMappings.associate(null, libraryModel.getName());
        jsLibraryManager.commitChanges();
      }
    });
  }

  public void testResolveTestCaseFunction() throws Exception {
View Full Code Here

Examples of com.intellij.openapi.projectRoots.SdkModificator.commitChanges()

        HaskellSdkAdditionalData newData = new HaskellSdkAdditionalData(libPath, cabalPath, ghcOptions);
        final SdkModificator modificator = mySdk.getSdkModificator();
        modificator.setSdkAdditionalData(newData);
        ApplicationManager.getApplication().runWriteAction(new Runnable() {
            public void run() {
                modificator.commitChanges();
            }
        });
        myForm.setModified(false);
    }
View Full Code Here

Examples of com.intellij.webcore.libraries.ScriptingLibraryManager.commitChanges()

      public void run() {
        ScriptingLibraryManager libraryManager = ServiceManager.getService(project, JSLibraryManager.class);
        ScriptingLibraryModel model = libraryManager.getLibraryByName(JstdLibraryUtil.LIBRARY_NAME);
        assert model != null;
        libraryManager.removeLibrary(model);
        libraryManager.commitChanges();
      }
    });
  }

  private static void addJstdLibrary(@NotNull final Project project,
View Full Code Here

Examples of com.sun.jsftemplating.component.dataprovider.MultipleListDataProvider.commitChanges()

    public static void commitTableRowGroup(HandlerContext handlerCtx) {
  TableRowGroup trg =
      (TableRowGroup) handlerCtx.getInputValue("tableRowGroup");
        MultipleListDataProvider dp =
      (MultipleListDataProvider) trg.getSourceData();
  dp.commitChanges();
    }
   
    /**
     *  <p> This handler takes in a HashMap, the name-value pair being the Properties.
     *  It turns each name-value pair to one hashMap, representing one row of table data,
View Full Code Here

Examples of com.sun.star.util.XChangesBatch.commitChanges()

            oInetProps.setPropertyValue("ooInetHTTPProxyPort", HTTPProxyPort);
            oInetProps.setPropertyValue("ooInetProxyType", new Long(2));

            XChangesBatch oSecureChange = (XChangesBatch) UnoRuntime.queryInterface(
                                                  XChangesBatch.class, oInet);
            oSecureChange.commitChanges();
        }
        catch(com.sun.star.uno.Exception e) {
            e.printStackTrace();
        }
        return true;
View Full Code Here

Examples of net.timewalker.ffmq3.storage.data.LinkedDataStore.commitChanges()

        int previous = store.first();
        previous = store.store(data, previous);
        if (previous == -1)
                  throw new IllegalStateException("No space left !");
      }
      store.commitChanges();
      for (int j = 0; j < 10; j++)
      {
        store.delete(store.first());
      }
      store.commitChanges();
View Full Code Here

Examples of net.timewalker.ffmq3.storage.data.impl.InMemoryLinkedDataStore.commitChanges()

            previous = store.store("test_"+n, previous);
            if (previous == -1)
                throw new IllegalStateException("No space left !");
        }
        assertEquals(MSG_COUNT, store.size());
        store.commitChanges();
       
        int count = 0;
        int current = store.first();
        while (current != -1)
        {
View Full Code Here

Examples of net.timewalker.ffmq3.storage.message.MessageStore.commitChanges()

      msg.setJMSMessageID("ID:FOO"+i);
      msg.setJMSPriority(rand.nextInt(10));
      assertTrue(msgStore.store(msg) != -1);
      //msgStore.commitChanges();
    }
    msgStore.commitChanges();
    long end = System.currentTimeMillis();
    System.out.println("testPriorityBasic: "+(end-start));
    assertEquals(msgCount, msgStore.size());
   
    assertOrdered(msgStore);
View Full Code Here

Examples of net.timewalker.ffmq3.utils.Committable.commitChanges()

       
        Iterator commitables = committableDestinations.iterator();
        while (commitables.hasNext())
        {
          Committable commitable = (Committable)commitables.next();
          commitable.commitChanges(commitBarrier);
        }
       
        try
        {
          commitBarrier.waitFor();
View Full Code Here

Examples of org.apache.cayenne.CayenneContext.commitChanges()

            }
        };

        CayenneContext context = new CayenneContext(channel);
        context.newObject(ClientMtTable1.class);
        context.commitChanges();

        assertTrue(ids[0] instanceof ObjectId);
        assertTrue(((ObjectId) ids[0]).isTemporary());

        assertTrue(ids[1] instanceof ObjectId);
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.