當前位置: 首頁>>代碼示例>>Java>>正文


Java CheckboxTreeViewer.refresh方法代碼示例

本文整理匯總了Java中org.eclipse.jface.viewers.CheckboxTreeViewer.refresh方法的典型用法代碼示例。如果您正苦於以下問題:Java CheckboxTreeViewer.refresh方法的具體用法?Java CheckboxTreeViewer.refresh怎麽用?Java CheckboxTreeViewer.refresh使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.jface.viewers.CheckboxTreeViewer的用法示例。


在下文中一共展示了CheckboxTreeViewer.refresh方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: EcoreCodeGeneratorCheckStateListener

import org.eclipse.jface.viewers.CheckboxTreeViewer; //導入方法依賴的package包/類
public EcoreCodeGeneratorCheckStateListener(EditingDomain editingDomain, WritableValue<EcoreCodeGenerator> eCoreCodeGeneratorWritableValue, CheckboxTreeViewer checkboxTreeViewer) {
	this.editingDomain = editingDomain;
	this.eCoreCodeGeneratorWritableValue = eCoreCodeGeneratorWritableValue;
	this.checkboxTreeViewer = checkboxTreeViewer;
	refreshCommand = new AbstractCommand() {

			@Override
			public void redo() {
				checkboxTreeViewer.refresh();							
			}

			@Override
			public void undo() {
				checkboxTreeViewer.refresh();
			}

			@Override
			public void execute() {
				// NOP							
			}

			@Override
			protected boolean prepare() {
				return true;
			}

		};
}
 
開發者ID:Nasdanika,項目名稱:codegen-ecore,代碼行數:29,代碼來源:EcoreCodeGeneratorCheckStateListener.java

示例2: setFileTreeRoot

import org.eclipse.jface.viewers.CheckboxTreeViewer; //導入方法依賴的package包/類
/**
 * Set the root of the directory tree view and refresh the view if appropriate
 */
static void setFileTreeRoot(CheckboxTreeViewer tv, File root) {
  DirectoryTreeContentProvider provider = (DirectoryTreeContentProvider) tv.getContentProvider();
  if ((root == null && provider.getRoot() != null) || !root.equals(provider.getRoot())) {
    provider.setRoot(root);
    tv.refresh();
  }
}
 
開發者ID:bazelbuild,項目名稱:eclipse,代碼行數:11,代碼來源:DirectoryTreeContentProvider.java

示例3: addSourceDBServer

import org.eclipse.jface.viewers.CheckboxTreeViewer; //導入方法依賴的package包/類
private void addSourceDBServer() {
	IHandlerService handlerService = (IHandlerService) PlatformUI
			.getWorkbench().getService(IHandlerService.class);
	try {
		serverViewer = (CheckboxTreeViewer) handlerService.executeCommand(
				"de.goettingen.i2b2.importtool.idrt.addSourceServer",
				null);
		serverViewer.refresh();
	} catch (Exception ex) {
		ex.printStackTrace();
		throw new RuntimeException("de.goettingen.i2b2.importtool.idrt.addSourceServer.command not found");
	}
}
 
開發者ID:tmfev,項目名稱:IDRT-Import-and-Mapping-Tool,代碼行數:14,代碼來源:DBWizardPage2.java

示例4: deleteSourceServer

import org.eclipse.jface.viewers.CheckboxTreeViewer; //導入方法依賴的package包/類
/**
 * commands for importDBServer
 */
private void deleteSourceServer() {
	IHandlerService handlerService = (IHandlerService) PlatformUI
			.getWorkbench().getService(IHandlerService.class);
	try {
		serverViewer = (CheckboxTreeViewer) handlerService.executeCommand(
				"de.goettingen.i2b2.importtool.idrt.deleteSourceServer",
				null);
		serverViewer.refresh();
	} catch (Exception ex) {
		ex.printStackTrace();
		throw new RuntimeException("de.goettingen.i2b2.importtool.idrt.deleteSourceServer.command not found");
	}
}
 
開發者ID:tmfev,項目名稱:IDRT-Import-and-Mapping-Tool,代碼行數:17,代碼來源:DBWizardPage2.java

示例5: editSourceServer

import org.eclipse.jface.viewers.CheckboxTreeViewer; //導入方法依賴的package包/類
private void editSourceServer() {
	IHandlerService handlerService = (IHandlerService) PlatformUI
			.getWorkbench().getService(IHandlerService.class);
	try {
		serverViewer = (CheckboxTreeViewer) handlerService.executeCommand(
				"de.goettingen.i2b2.importtool.idrt.editSourceServer",
				null);
		serverViewer.refresh();
	} catch (Exception ex) {
		ex.printStackTrace();
		throw new RuntimeException("de.goettingen.i2b2.importtool.idrt.editSourceServer.command not found");
	}
}
 
開發者ID:tmfev,項目名稱:IDRT-Import-and-Mapping-Tool,代碼行數:14,代碼來源:DBWizardPage2.java

示例6: newFolderButtonPressed

import org.eclipse.jface.viewers.CheckboxTreeViewer; //導入方法依賴的package包/類
protected void newFolderButtonPressed() {
    NewFolderDialog dialog= new NewFolderDialog(getShell(), fSelectedContainer);
    if (dialog.open() == Window.OK) {
        CheckboxTreeViewer treeViewer= fViewer;
        treeViewer.refresh(fSelectedContainer);
        Object createdFolder= dialog.getResult()[0];
        treeViewer.reveal(createdFolder);
        treeViewer.setChecked(createdFolder, true);
        treeViewer.setSelection(new StructuredSelection(createdFolder));
        updateOKStatus();
    }
}
 
開發者ID:iloveeclipse,項目名稱:filesync4eclipse,代碼行數:13,代碼來源:MultipleFolderSelectionDialog.java

示例7: move

import org.eclipse.jface.viewers.CheckboxTreeViewer; //導入方法依賴的package包/類
private void move(Object element, CheckboxTreeViewer tree, int direction) {
	Object[] array= getContainingArray(element);
	int position= getElementPosition(element, array);
	Object temp= array[position];
	array[position]= array[position + direction];
	array[position + direction]= temp;
	tree.setSelection(new StructuredSelection(element));
	tree.refresh();
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:10,代碼來源:GenerateToStringDialog.java

示例8: newFolderButtonPressed

import org.eclipse.jface.viewers.CheckboxTreeViewer; //導入方法依賴的package包/類
protected void newFolderButtonPressed() {
	Object createdFolder= createFolder(fSelectedContainer);
	if (createdFolder != null) {
		CheckboxTreeViewer treeViewer= fViewer;
		treeViewer.refresh(fSelectedContainer);
		treeViewer.reveal(createdFolder);
		treeViewer.setChecked(createdFolder, true);
		treeViewer.setSelection(new StructuredSelection(createdFolder));
		updateOKStatus();
	}
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:12,代碼來源:MultipleFolderSelectionDialog.java

示例9: setElements

import org.eclipse.jface.viewers.CheckboxTreeViewer; //導入方法依賴的package包/類
public void setElements(List<IVariableBinding> elements, CheckboxTreeViewer tree) {
	fFields= new ArrayList<IVariableBinding>(elements);
	if (tree != null)
		tree.refresh();
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:6,代碼來源:GenerateConstructorUsingFieldsContentProvider.java

示例10: refreshView

import org.eclipse.jface.viewers.CheckboxTreeViewer; //導入方法依賴的package包/類
private void refreshView(CheckboxTreeViewer viewer, PatientInboxElements patInboxElements){
	InboxElementContentProvider contentProvider =
		(InboxElementContentProvider) viewer.getContentProvider();
	contentProvider.refreshElement(patInboxElements);
	viewer.refresh(false);
}
 
開發者ID:elexis,項目名稱:elexis-3-base,代碼行數:7,代碼來源:ChangeMandantCommand.java


注:本文中的org.eclipse.jface.viewers.CheckboxTreeViewer.refresh方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。