本文整理了Java中org.eclipse.swt.widgets.Tree.setRedraw()
方法的一些代码示例,展示了Tree.setRedraw()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.setRedraw()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:setRedraw
暂无
代码示例来源:origin: org.eclipse.mylyn.builds/ui
public void run() {
if (!tree.isDisposed()) {
try {
tree.setRedraw(false);
packColumns(tree);
} finally {
tree.setRedraw(true);
}
}
}
});
代码示例来源:origin: cbeust/testng-eclipse
private void expandAll() {
m_tree.setRedraw(false);
for (TreeItem treeItem : m_tree.getItems()) {
expandAll(treeItem);
}
m_tree.setRedraw(true);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.search
@Override
public void run() {
if (fViewer != null) {
fViewer.getTree().setRedraw(false);
try {
fViewer.expandAll();
} finally {
fViewer.getTree().setRedraw(true);
}
}
}
}
代码示例来源:origin: ifedorenko/p2-browser
@Override
public void run()
{
treeViewer.getTree().setRedraw( false );
treeViewer.expandAll();
treeViewer.getTree().setRedraw( true );
}
};
代码示例来源:origin: ifedorenko/p2-browser
public void run()
{
hierarchyTreeViewer.getTree().setRedraw( false );
hierarchyTreeViewer.expandAll();
hierarchyTreeViewer.getTree().setRedraw( true );
};
} );
代码示例来源:origin: org.eclipse/org.eclipse.jdt.debug.ui
public void setRefreshEnabled(boolean refreshEnabled) {
this.refreshEnabled = refreshEnabled;
treeViewer.getTree().setRedraw(refreshEnabled);
if (refreshEnabled && refreshRequested) {
refresh();
}
}
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
public void toggleShowInheritedMembers() {
Tree tree= getTreeViewer().getTree();
tree.setRedraw(false);
fShowInheritedMembers= !fShowInheritedMembers;
getTreeViewer().refresh();
getTreeViewer().expandToLevel(2);
// reveal selection
Object selectedElement= getSelectedElement();
if (selectedElement != null)
getTreeViewer().reveal(selectedElement);
tree.setRedraw(true);
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public void updateContent(boolean expand) {
getTree().setRedraw(false);
refresh();
if (expand) {
expandAll();
}
getTree().setRedraw(true);
}
代码示例来源:origin: xzer/run-jetty-run
public void setRefreshEnabled(boolean refreshEnabled) {
this.refreshEnabled = refreshEnabled;
treeViewer.getTree().setRedraw(refreshEnabled);
if (refreshEnabled && refreshRequested) {
refresh();
}
}
public void setCustomEntries(IRuntimeClasspathEntry[] entries) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.ant.ui
public void setRefreshEnabled(boolean refreshEnabled) {
this.refreshEnabled = refreshEnabled;
treeViewer.getTree().setRedraw(refreshEnabled);
if (refreshEnabled && refreshRequested) {
refresh();
}
}
代码示例来源:origin: ifedorenko/p2-browser
public void run()
{
hierarchyTreeViewer.getTree().setRedraw( false );
hierarchyTreeViewer.collapseAll();
hierarchyTreeViewer.expandToLevel( 2 );
hierarchyTreeViewer.getTree().setRedraw( true );
};
} );
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public void updateContent(boolean expand) {
getTree().setRedraw(false);
refresh();
if (expand) {
int expandLevel= 2;
if (isMethodFiltering()) {
expandLevel++;
}
expandToLevel(expandLevel);
}
getTree().setRedraw(true);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@Override
public void updateContent(boolean expand) {
getTree().setRedraw(false);
refresh();
if (expand) {
int expandLevel= 2;
if (isMethodFiltering()) {
expandLevel++;
}
expandToLevel(expandLevel);
}
getTree().setRedraw(true);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@Override
public void updateContent(boolean expand) {
getTree().setRedraw(false);
refresh();
if (expand) {
HashSet<Object> visited= new HashSet<>();
TreeItem[] rootNodes= getTree().getItems();
for (TreeItem rootNode : rootNodes) {
expandNode(rootNode, visited);
}
}
getTree().setRedraw(true);
}
代码示例来源:origin: ifedorenko/p2-browser
@Override
public void run()
{
treeViewer.getTree().setRedraw( false );
treeViewer.getTree().setItemCount( repositories.size() );
treeViewer.refresh();
if ( unitMatcher != null )
{
treeViewer.expandAll();
}
treeViewer.getTree().setRedraw( true );
}
} );
代码示例来源:origin: org.eclipse.equinox.p2.ui.sdk/scheduler
public void handleEvent(Event event) {
if (event.detail == SWT.CHECK) {
if (hasInstalled(ProvUI.getAdapter(event.item.getData(), IInstallableUnit.class))) {
viewer.getTree().setRedraw(false);
((TreeItem) event.item).setChecked(false);
viewer.getTree().setRedraw(true);
}
}
updatePageCompletion();
}
});
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public void updateContent(boolean expand) {
getTree().setRedraw(false);
refresh();
if (expand) {
TraditionalHierarchyContentProvider contentProvider= (TraditionalHierarchyContentProvider) getContentProvider();
int expandLevel= contentProvider.getExpandLevel();
if (isMethodFiltering()) {
expandLevel++;
}
expandToLevel(expandLevel);
}
getTree().setRedraw(true);
}
代码示例来源:origin: org.eclipse.mylyn.wikitext/ui
private void refresh() {
getTreeViewer().getTree().setRedraw(false);
try {
getTreeViewer().refresh();
getTreeViewer().expandAll();
} finally {
getTreeViewer().getTree().setRedraw(true);
}
}
代码示例来源:origin: org.eclipse.mylyn.wikitext/ui
public void refresh() {
getTreeViewer().getTree().setRedraw(false);
try {
getTreeViewer().refresh();
getTreeViewer().expandAll();
} finally {
getTreeViewer().getTree().setRedraw(true);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public void toggleShowInheritedMembers() {
Tree tree= getTreeViewer().getTree();
tree.setRedraw(false);
fShowInheritedMembers= !fShowInheritedMembers;
getTreeViewer().refresh();
getTreeViewer().expandToLevel(2);
// reveal selection
Object selectedElement= getSelectedElement();
if (selectedElement != null)
getTreeViewer().reveal(selectedElement);
tree.setRedraw(true);
}
内容来源于网络,如有侵权,请联系作者删除!