本文整理匯總了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;
}
};
}
示例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();
}
}
示例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");
}
}
示例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");
}
}
示例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");
}
}
示例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();
}
}
示例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();
}
示例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);
}