本文整理了Java中org.eclipse.swt.widgets.List.isDisposed()
方法的一些代码示例,展示了List.isDisposed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。List.isDisposed()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.List
类名称:List
方法名:isDisposed
暂无
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@Override
public void run() {
if (fAppearanceColorList != null && !fAppearanceColorList.isDisposed()) {
fAppearanceColorList.select(0);
handleAppearanceColorListSelection();
}
}
});
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.editors
@Override
public void run() {
if (fAppearanceColorList != null && !fAppearanceColorList.isDisposed()) {
fAppearanceColorList.select(0);
handleAppearanceColorListSelection();
}
}
});
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
@Override
public void run() {
if (fAppearanceColorList != null && !fAppearanceColorList.isDisposed()) {
fAppearanceColorList.select(0);
handleAppearanceColorListSelection();
}
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void runSupport() {
if (widget != null && !widget.isDisposed()) {
widget.setItems(list);
}
}
});
代码示例来源:origin: org.eclipse/org.eclipse.ui.editors
public void run() {
if (fAppearanceColorList != null && !fAppearanceColorList.isDisposed()) {
fAppearanceColorList.select(0);
handleAppearanceColorListSelection();
}
}
});
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public void run() {
if (fAppearanceColorList != null && !fAppearanceColorList.isDisposed()) {
fAppearanceColorList.select(0);
handleAppearanceColorListSelection();
}
}
});
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
private String prepareCopyString() {
if (list == null || list.isDisposed()) {
return ""; //$NON-NLS-1$
}
StringBuilder sb = new StringBuilder();
String newLine = System.getProperty("line.separator"); //$NON-NLS-1$
for (int i = 0; i < list.getItemCount(); i++) {
sb.append(list.getItem(i));
sb.append(newLine);
}
return sb.toString();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
/**
* Repopulate the supplied list widget.
*/
private void repopulateList() {
if (list != null && !list.isDisposed()) {
list.removeAll();
populateList(list);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
/**
* Repopulate the supplied list widget.
*/
private void repopulateList() {
if (list != null && !list.isDisposed()) {
list.removeAll();
populateList(list);
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
/**
* Repopulate the supplied list widget.
*/
private void repopulateList() {
if (list != null && !list.isDisposed()) {
list.removeAll();
populateList(list);
}
}
代码示例来源:origin: atdl4j/atdl4j
@Override
public void processReinit( Object aControlInitValue )
{
if ( ( listBox != null ) && ( ! listBox.isDisposed() ) )
{
if ( aControlInitValue != null )
{
// -- apply initValue if one has been specified --
setValue( (String) aControlInitValue, true );
}
else
{
// -- set to first when no initValue exists --
if ( listBox.getItemCount() > 0 )
{
listBox.select( 0 );
}
}
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ant.ui
/**
* @see org.eclipse.jface.preference.FieldEditorPreferencePage#initialize()
*/
@Override
protected void initialize() {
super.initialize();
for (int i = 0; i < fAppearanceColorListModel.length; i++) {
fConsoleColorList.add(fAppearanceColorListModel[i][0]);
}
fConsoleColorList.getDisplay().asyncExec(() -> {
if (fConsoleColorList != null && !fConsoleColorList.isDisposed()) {
fConsoleColorList.select(0);
handleAppearanceColorListSelection();
}
});
}
代码示例来源:origin: BiglySoftware/BiglyBT
int key = e.keyCode;
if ( list == null || list.isDisposed()){
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
@Override
LRESULT WM_SIZE (int /*long*/ wParam, int /*long*/ lParam) {
/*
* Bug in Windows. If the top index is changed while the
* list is being resized, Windows does not redraw properly
* when their is white space at the bottom of the control.
* The fix is to detect when the top index has changed and
* redraw the control.
*
* Bug in Windows. If the receiver is scrolled horizontally
* and is resized, the list does not redraw properly. The fix
* is to redraw the control when the horizontal scroll bar is
* not at the beginning.
*/
int oldIndex = (int)/*64*/OS.SendMessage (handle, OS.LB_GETTOPINDEX, 0, 0);
LRESULT result = super.WM_SIZE (wParam, lParam);
if (!isDisposed ()) {
SCROLLINFO info = new SCROLLINFO ();
info.cbSize = SCROLLINFO.sizeof;
info.fMask = OS.SIF_POS;
if (OS.GetScrollInfo (handle, OS.SB_HORZ, info)) {
if (info.nPos != 0) OS.InvalidateRect (handle, null, true);
}
int newIndex = (int)/*64*/OS.SendMessage (handle, OS.LB_GETTOPINDEX, 0, 0);
if (oldIndex != newIndex) OS.InvalidateRect (handle, null, true);
}
return result;
}
代码示例来源:origin: eclipse/aCute
private void updateTemplateList() {
if(templateViewer.getList().isDisposed()) {
return;
内容来源于网络,如有侵权,请联系作者删除!