本文整理了Java中org.eclipse.swt.widgets.Table.setRedraw()
方法的一些代码示例,展示了Table.setRedraw()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setRedraw()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:setRedraw
暂无
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
private void shortenTable() {
if (VIRTUAL)
return;
if (fNextElement < fItems.size()) {
fTable.setRedraw(false);
fTable.remove(fNextElement, fItems.size() - 1);
fTable.setRedraw(true);
}
for (int i= fItems.size() - 1; i >= fNextElement; i--) {
fItems.remove(i);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
private void shortenTable() {
if (VIRTUAL)
return;
if (fNextElement < fItems.size()) {
fTable.setRedraw(false);
fTable.remove(fNextElement, fItems.size() - 1);
fTable.setRedraw(true);
}
for (int i= fItems.size() - 1; i >= fNextElement; i--) {
fItems.remove(i);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
private void shortenTable() {
if (VIRTUAL)
return;
if (fNextElement < fItems.size()) {
fTable.setRedraw(false);
fTable.remove(fNextElement, fItems.size() - 1);
fTable.setRedraw(true);
}
for (int i= fItems.size() - 1; i >= fNextElement; i--) {
fItems.remove(i);
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
private void shortenTable() {
if (VIRTUAL)
return;
if (fNextElement < fItems.size()) {
fTable.setRedraw(false);
fTable.remove(fNextElement, fItems.size() - 1);
fTable.setRedraw(true);
}
for (int i= fItems.size() - 1; i >= fNextElement; i--) {
fItems.remove(i);
}
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void updateRowCount() {
NSTableView widget = (NSTableView)view;
setRedraw(false);
ignoreSelect = true;
widget.noteNumberOfRowsChanged ();
ignoreSelect = false;
widget.tile();
setRedraw(true);
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
private void setRedraw(boolean redraw) {
fAvailableViewer.getTable().setRedraw(redraw);
fSelectedViewer.getTable().setRedraw(redraw);
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
private void setRedraw(boolean redraw) {
fAvailableListViewer.getTable().setRedraw(redraw);
fSelectedListViewer.getTable().setRedraw(redraw);
}
代码示例来源:origin: org.eclipse.scout.sdk.s2e/org.eclipse.scout.sdk.s2e.nls
public void setHideInherited(boolean hideInherited) {
m_table.setRedraw(false);
try {
if (hideInherited) {
m_viewer.addFilter(m_inheritedFilter);
}
else {
m_viewer.removeFilter(m_inheritedFilter);
}
}
finally {
m_table.setRedraw(true);
}
}
代码示例来源:origin: cbeust/testng-eclipse
private void updateTable(String trace) {
if((trace == null) || trace.trim().equals("")) { //$NON-NLS-1$
clear();
return;
}
trace = trace.trim();
fTable.setRedraw(false);
fTable.removeAll();
fillTable(trace);
fTable.setRedraw(true);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.search
@Override
protected void internalRefresh(Object element, boolean updateLabels) {
// see bug 44891
getTable().setRedraw(false);
super.internalRefresh(element, updateLabels);
getTable().setRedraw(true);
}
代码示例来源:origin: org.eclipse/org.eclipse.search
protected void internalRefresh(Object element, boolean updateLabels) {
// see bug 44891
getTable().setRedraw(false);
super.internalRefresh(element, updateLabels);
getTable().setRedraw(true);
}
代码示例来源:origin: ifedorenko/p2-browser
void applyListFilter()
{
listTableViewer.getTable().setRedraw( false );
listTableViewer.refresh();
listTableViewer.getTable().setRedraw( true );
}
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15
* Sets this {@link Table} to be formatted by a different {@link TableFormat}.
* @param tableFormat the new TableFormat
* @throws IllegalArgumentException if tableFormat is <code>null</code>
*/
public void setTableFormat(TableFormat<? super E> tableFormat) {
if (tableFormat == null)
throw new IllegalArgumentException("TableFormat may not be null");
this.tableFormat = tableFormat;
table.setRedraw(false);
removeTableColumns();
initTable();
this.tableHandler.redraw();
table.setRedraw(true);
}
/**
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
private void handleFilter() {
boolean changed = false;
String newFilter;
if (fFilterText == null || (newFilter = fFilterText.getText().trim()).length() == 0)
newFilter = AvailableFilter.WILDCARD;
changed = fFilter.setPattern(newFilter);
if (changed) {
fAvailableListViewer.getTable().setRedraw(false);
fAvailableListViewer.refresh();
fAvailableListViewer.getTable().setRedraw(true);
updateButtonEnablement(false, false);
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
/**
* Handles changes to the list based on changes to the text field.
*/
private void handleFilter() {
boolean changed = false;
String newFilter;
if (fFilterText == null || (newFilter = fFilterText.getText().trim()).length() == 0)
newFilter = AvailableFilter.WILDCARD;
changed = fFilter.setPattern(newFilter);
if (changed) {
fAvailableViewer.getTable().setRedraw(false);
fAvailableViewer.refresh();
fAvailableViewer.getTable().setRedraw(true);
updateButtonEnablement(false, false);
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools.ui
@Override
public IStatus runInUIThread(IProgressMonitor monitor) {
if (tableviewer != null) {
try {
tableviewer.getTable().setRedraw(false);
synchronized (this) {
filter.setPattern(pattern + '*');
}
tableviewer.refresh(true);
tableviewer.setCheckedElements(checkedset.toArray());
} finally {
tableviewer.getTable().setRedraw(true);
}
}
return Status.OK_STATUS;
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
/**
* Show inherited methods
* @param on the new state
*/
public void showInheritedMethods(boolean on) {
if (on == isShowInheritedMethods()) {
return;
}
try {
getTable().setRedraw(false);
showInheritedMethodsNoRedraw(on);
refresh();
} finally {
getTable().setRedraw(true);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
/**
* Show the name of the defining type
* @param on the new state
*/
public void sortByDefiningType(boolean on) {
if (on == isShowDefiningTypes()) {
return;
}
try {
getTable().setRedraw(false);
sortByDefiningTypeNoRedraw(on);
refresh();
} finally {
getTable().setRedraw(true);
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
/**
* Show the name of the defining type
* @param on the new state
*/
public void sortByDefiningType(boolean on) {
if (on == isShowDefiningTypes()) {
return;
}
try {
getTable().setRedraw(false);
sortByDefiningTypeNoRedraw(on);
refresh();
} finally {
getTable().setRedraw(true);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.s2e/org.eclipse.scout.sdk.s2e.nls
public void setModel(NlsTableModel model) {
try {
m_viewer.getTable().setRedraw(false);
m_tableModel = model;
createColumns(m_table);
m_viewer.setLabelProvider(m_tableModel);
m_viewer.setContentProvider(m_tableModel);
m_viewer.setInput(m_tableModel);
m_viewer.setComparator(m_tableModel);
updateSortIcon();
}
finally {
m_viewer.getTable().setRedraw(true);
}
}
内容来源于网络,如有侵权,请联系作者删除!