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

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

本文整理了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

  1. @Override
  2. public void focusLost(final FocusEvent e) {
  3. fScrollbarClicked= false;
  4. Display d= fTable.getDisplay();
  5. d.asyncExec(new Runnable() {
  6. @Override
  7. public void run() {
  8. if (Helper.okToUse(fTable) && !fTable.isFocusControl() && !fScrollbarClicked && fContentAssistant != null)
  9. fContentAssistant.popupFocusLost(e);
  10. }
  11. });
  12. }

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

  1. @Override
  2. public void focusLost(final FocusEvent e) {
  3. fScrollbarClicked= false;
  4. Display d= fTable.getDisplay();
  5. d.asyncExec(new Runnable() {
  6. @Override
  7. public void run() {
  8. if (Helper2.okToUse(fTable) && !fTable.isFocusControl() && !fScrollbarClicked && fContentAssistant != null)
  9. fContentAssistant.popupFocusLost(e);
  10. }
  11. });
  12. }

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

  1. public void asyncRefresh(final INlsEntry row) {
  2. m_table.getDisplay().asyncExec(new Runnable() {
  3. @Override
  4. public void run() {
  5. refresh(row);
  6. }
  7. });
  8. }

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

  1. public ContentSelector(Table table, Thing thing, ActionContext actionContext, ActionContext selectorContext){
  2. this.actionContext = actionContext;
  3. this.selectorContext = selectorContext;
  4. this.thing = thing;
  5. this.table = table;
  6. delayAction = new DelayAction(table.getDisplay(), 200);
  7. }

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

  1. private void retrieveResult( )
  2. {
  3. BusyIndicator.showWhile( viewer.getDisplay( ), new Runnable( ) {
  4. /*
  5. * @see java.lang.Runnable#run()
  6. */
  7. public void run( )
  8. {
  9. refresh( );
  10. }
  11. } );
  12. }

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

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

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

  1. public static void onLoaded(final ActionContext actionContext){
  2. Table table = (Table) actionContext.get("table");
  3. table.getDisplay().asyncExec(new Runnable(){
  4. public void run(){
  5. try{
  6. actionContext.getScope(0).put("loaded", "true");
  7. setValue(actionContext);
  8. }catch(Exception e){
  9. e.printStackTrace();
  10. }
  11. }
  12. });
  13. }
  14. }

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

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

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

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

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

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

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

  1. protected final void makeDirty() {
  2. if (!dirty) {
  3. dirty = true;
  4. stopListening();
  5. SWTUtil.runOnce(table.getDisplay(), this);
  6. }
  7. }

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

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

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

  1. @Override
  2. public void focusLost(final FocusEvent e) {
  3. fScrollbarClicked= false;
  4. Display d= fTable.getDisplay();
  5. d.asyncExec(() -> {
  6. if (Helper.okToUse(fTable) && !fTable.isFocusControl() && !fScrollbarClicked && fContentAssistant != null)
  7. fContentAssistant.popupFocusLost(e);
  8. });
  9. }

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

  1. @Override
  2. public void focusLost(final FocusEvent e) {
  3. fScrollbarClicked= false;
  4. Display d= fTable.getDisplay();
  5. d.asyncExec(() -> {
  6. if (Helper2.okToUse(fTable) && !fTable.isFocusControl() && !fScrollbarClicked && fContentAssistant != null)
  7. fContentAssistant.popupFocusLost(e);
  8. });
  9. }

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

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

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

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

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

  1. void resize () {
  2. layout();
  3. /*
  4. * On some platforms, the table scrolls when an item that
  5. * is partially visible at the bottom of the table is
  6. * selected. Ensure that the correct row is edited by
  7. * laying out one more time in a timerExec().
  8. */
  9. if (table != null) {
  10. Display display = table.getDisplay();
  11. display.timerExec(-1, timer);
  12. display.timerExec(TIMEOUT, timer);
  13. }
  14. }
  15. /**

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

  1. @Override
  2. public boolean doGlobalAction(String actionId) {
  3. if (actionId.equals(ActionFactory.DELETE.getId())) {
  4. BusyIndicator.showWhile(fTable.getDisplay(), () -> handleDelete());
  5. return true;
  6. }
  7. if (actionId.equals(ActionFactory.SELECT_ALL.getId())) {
  8. handleSelectAll();
  9. return true;
  10. }
  11. return super.doGlobalAction(actionId);
  12. }

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

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

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

  1. private void handleNew() {
  2. IFile file = ((IFileEditorInput) getPage().getPDEEditor().getEditorInput()).getFile();
  3. final IProject project = file.getProject();
  4. BusyIndicator.showWhile(pointTable.getTable().getDisplay(), () -> {
  5. NewExtensionPointWizard wizard = new NewExtensionPointWizard(project,
  6. (IPluginModelBase) getPage().getModel(), (ManifestEditor) getPage().getPDEEditor());
  7. WizardDialog dialog = new WizardDialog(PDEPlugin.getActiveWorkbenchShell(), wizard);
  8. dialog.create();
  9. SWTUtil.setDialogSize(dialog, 400, 450);
  10. dialog.open();
  11. });
  12. }

相关文章

Table类方法