org.eclipse.swt.widgets.Table.getDisplay()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(247)

本文整理了Java中org.eclipse.swt.widgets.Table.getDisplay()方法的一些代码示例,展示了Table.getDisplay()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getDisplay()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:getDisplay

Table.getDisplay介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public void focusLost(final FocusEvent e) {
  fScrollbarClicked= false;
  Display d= fTable.getDisplay();
  d.asyncExec(new Runnable() {
    @Override
    public void run() {
      if (Helper.okToUse(fTable) && !fTable.isFocusControl() && !fScrollbarClicked && fContentAssistant != null)
        fContentAssistant.popupFocusLost(e);
    }
  });
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public void focusLost(final FocusEvent e) {
  fScrollbarClicked= false;
  Display d= fTable.getDisplay();
  d.asyncExec(new Runnable() {
    @Override
    public void run() {
      if (Helper2.okToUse(fTable) && !fTable.isFocusControl() && !fScrollbarClicked && fContentAssistant != null)
        fContentAssistant.popupFocusLost(e);
    }
  });
}

代码示例来源:origin: org.eclipse.scout.sdk.s2e/org.eclipse.scout.sdk.s2e.nls

public void asyncRefresh(final INlsEntry row) {
 m_table.getDisplay().asyncExec(new Runnable() {
  @Override
  public void run() {
   refresh(row);
  }
 });
}

代码示例来源:origin: org.xworker/xworker_swt

public ContentSelector(Table table, Thing thing, ActionContext actionContext, ActionContext selectorContext){
  this.actionContext = actionContext;
  this.selectorContext = selectorContext;
  this.thing = thing;
  this.table = table;
  delayAction = new DelayAction(table.getDisplay(), 200);
}

代码示例来源:origin: org.eclipse/org.eclipse.datatools.enablement.oda.xml.ui

private void retrieveResult( )
{
  BusyIndicator.showWhile( viewer.getDisplay( ), new Runnable( ) {
    /*
     * @see java.lang.Runnable#run()
     */
    public void run( )
    {
      refresh( );
    }
  } );
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
  public void focusLost(FocusEvent e) {
    // Once the focus event is complete, check if we should close
    // the shell
    table.getDisplay().asyncExec(() -> checkFocusLost(table, txtQuickAccess));
  }
});

代码示例来源:origin: org.xworker/xworker_swt

public static void onLoaded(final ActionContext actionContext){
    Table table = (Table) actionContext.get("table");
    table.getDisplay().asyncExec(new Runnable(){
      public void run(){
        try{
          actionContext.getScope(0).put("loaded", "true");
          setValue(actionContext);
        }catch(Exception e){
          e.printStackTrace();
        }
      }
    });        
  }
}

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15

/**
 * Creates a new viewer for the given {@link Table} that updates the table
 * contents in response to changes on the specified {@link EventList}. The
 * {@link Table} is formatted with the specified {@link TableFormat}.
 *
 * @param source the EventList that provides the row objects
 * @param table the Table viewing the source objects
 * @param tableFormat the object responsible for extracting column data
 *      from the row objects
 * @param tableItemConfigurer responsible for configuring table items
 */
public EventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat,
    TableItemConfigurer<? super E> tableItemConfigurer) {
  this(source, createProxyList(source, table.getDisplay()), table, tableFormat, tableItemConfigurer);
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
  public void run() {
    BusyIndicator.showWhile(fUrlViewer.getTable().getDisplay(), () -> handleDelete());
  }
};

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
  public void run() {
    BusyIndicator.showWhile(fPluginViewer.getTable().getDisplay(), () -> handleDelete());
  }
};

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.databinding

protected final void makeDirty() {
  if (!dirty) {
    dirty = true;
    stopListening();
    SWTUtil.runOnce(table.getDisplay(), this);
  }
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
  public void run() {
    BusyIndicator.showWhile(fIncludesViewer.getTable().getDisplay(), () -> handleDelete());
  }
};

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void focusLost(final FocusEvent e) {
  fScrollbarClicked= false;
  Display d= fTable.getDisplay();
  d.asyncExec(() -> {
    if (Helper.okToUse(fTable) && !fTable.isFocusControl() && !fScrollbarClicked && fContentAssistant != null)
      fContentAssistant.popupFocusLost(e);
  });
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void focusLost(final FocusEvent e) {
  fScrollbarClicked= false;
  Display d= fTable.getDisplay();
  d.asyncExec(() -> {
    if (Helper2.okToUse(fTable) && !fTable.isFocusControl() && !fScrollbarClicked && fContentAssistant != null)
      fContentAssistant.popupFocusLost(e);
  });
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

private TableOwnerDrawSupport(Table table) {
  int orientation= table.getStyle() & (SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT);
  fSharedLayout= new TextLayout(table.getDisplay());
  fSharedLayout.setOrientation(orientation);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

private TableOwnerDrawSupport(Table table) {
  int orientation= table.getStyle() & (SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT);
  fSharedLayout= new TextLayout(table.getDisplay());
  fSharedLayout.setOrientation(orientation);
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

void resize () {
  layout();
  /*
   * On some platforms, the table scrolls when an item that
   * is partially visible at the bottom of the table is
   * selected.  Ensure that the correct row is edited by
   * laying out one more time in a timerExec().
   */
  if (table != null) {
    Display display = table.getDisplay();
    display.timerExec(-1, timer);
    display.timerExec(TIMEOUT, timer);
  }
}
/**

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
public boolean doGlobalAction(String actionId) {
  if (actionId.equals(ActionFactory.DELETE.getId())) {
    BusyIndicator.showWhile(fTable.getDisplay(), () -> handleDelete());
    return true;
  }
  if (actionId.equals(ActionFactory.SELECT_ALL.getId())) {
    handleSelectAll();
    return true;
  }
  return super.doGlobalAction(actionId);
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

private void showDialog(final ISiteArchive archive) {
  final ISiteModel model = (ISiteModel) getPage().getModel();
  BusyIndicator.showWhile(fTable.getDisplay(), () -> {
    NewArchiveDialog dialog = new NewArchiveDialog(fTable.getShell(), model, archive);
    dialog.create();
    SWTUtil.setDialogSize(dialog, 400, -1);
    dialog.open();
  });
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

private void handleNew() {
  IFile file = ((IFileEditorInput) getPage().getPDEEditor().getEditorInput()).getFile();
  final IProject project = file.getProject();
  BusyIndicator.showWhile(pointTable.getTable().getDisplay(), () -> {
    NewExtensionPointWizard wizard = new NewExtensionPointWizard(project,
        (IPluginModelBase) getPage().getModel(), (ManifestEditor) getPage().getPDEEditor());
    WizardDialog dialog = new WizardDialog(PDEPlugin.getActiveWorkbenchShell(), wizard);
    dialog.create();
    SWTUtil.setDialogSize(dialog, 400, 450);
    dialog.open();
  });
}

相关文章

Table类方法