Examples of update()


Examples of org.eclipse.jface.action.MenuManager.update()

      final MenuManager menuManager = activeWorkbenchWindow
          .getMenuManager();

      if (textOnly) {
        menuManager.update(IAction.TEXT);
      } else {
        menuManager.updateAll(true);
      }
    }
View Full Code Here

Examples of org.eclipse.jface.action.StatusLineManager.update()

                public void run() {
                    if (statusLineManager instanceof SubContributionManager) {
                        SubContributionManager sub = (SubContributionManager)statusLineManager;
                        StatusLineManager parent = (StatusLineManager) sub.getParent();
                        parent.setErrorMessage(message);
                        parent.update(true);
                    } else {
                        statusLineManager.setErrorMessage(message);
                        statusLineManager.update(true);
                    }
                }
View Full Code Here

Examples of org.eclipse.jface.action.ToolBarManager.update()

            }

        };
        toolBarManager.add(action1);

        toolBarManager.update(true);
        section.setTextClient(toolbar);

        _directAccessibleFilesModel = new DirectAccessibleTMLModulModel(getDirectAccessibleFiles());

        _tableControl = new EditableTableControl<IFile>(sectionClient, SWT.NONE) {
View Full Code Here

Examples of org.eclipse.jface.viewers.StructuredViewer.update()

                if (viewer == null || viewer.getControl().isDisposed())
                    return;

                if (viewer instanceof StructuredViewer) {
                    StructuredViewer structuredViewer = (StructuredViewer) viewer;
                    structuredViewer.update(element, properties);
                } else {
                    viewer.refresh();
                }
            }
        });
View Full Code Here

Examples of org.eclipse.jface.viewers.TableViewer.update()

        final int elementLimit = getElementLimit();
        final boolean tableLimited = elementLimit != -1;
        for (int i = 0; i < updatedElements.length; i++) {
            if (fResult.getMatchCount(updatedElements[i]) > 0) {
                if (viewer.testFindItem(updatedElements[i]) != null) {
                    viewer.update(updatedElements[i], null);
                } else {
                    if (!tableLimited || viewer.getTable().getItemCount() < elementLimit) {
                        viewer.add(updatedElements[i]);
                    }
                }
View Full Code Here

Examples of org.eclipse.jface.viewers.TreeViewer.update()

            removeElement((ErlangSearchElement) element);
        }
        for (final Object element : toAdd) {
            addElement((ErlangSearchElement) element);
        }
        viewer.update(toUpdate.toArray(), null);
        viewer.remove(toRemove.toArray());
        viewer.refresh();
    }

    private int getElementLimit() {
View Full Code Here

Examples of org.eclipse.jgit.junit.TestRepository.update()

    //
    TestRepository d = new TestRepository(dst);
    a = d.blob("a");
    A = d.commit(d.tree(d.file("a", a)));
    B = d.commit().parent(A).create();
    d.update(R_MASTER, B);

    // Clone from dst into src
    //
    Transport t = Transport.open(src, uriOf(dst));
    try {
View Full Code Here

Examples of org.eclipse.jgit.lib.GitIndex.Entry.update()

      CorruptObjectException {
    File writeTrashFile = writeTrashFile(filename, filename);

    GitIndex index = db.getIndex();
    Entry entry = index.add(db.getWorkTree(), writeTrashFile);
    entry.update(writeTrashFile);
    index.write();
  }
}
View Full Code Here

Examples of org.eclipse.jgit.lib.ProgressMonitor.update()

      pm.setDelayStart(250, TimeUnit.MILLISECONDS);
      updating = pm;
    }
    updating.beginTask(JGitText.get().updatingReferences, toApply.size());
    for (ReceiveCommand cmd : toApply) {
      updating.update(1);
      execute(cmd);
    }
    updating.endTask();
  }
View Full Code Here

Examples of org.eclipse.jgit.lib.RefUpdate.update()

      updateRef.setRefLogMessage(refLogMessage, false);
      Result updateResult;
      if (exists && force)
        updateResult = updateRef.forceUpdate();
      else
        updateResult = updateRef.update();

      setCallable(false);

      boolean ok = false;
      switch (updateResult) {
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.