• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java UISynchronize类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.e4.ui.di.UISynchronize的典型用法代码示例。如果您正苦于以下问题:Java UISynchronize类的具体用法?Java UISynchronize怎么用?Java UISynchronize使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



UISynchronize类属于org.eclipse.e4.ui.di包,在下文中一共展示了UISynchronize类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setTootipConnectionStatus

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
public static void setTootipConnectionStatus(final UISynchronize uiSynchronize, final Control control,
		final String host, final boolean connected) {
	final DefaultToolTip toolTip = new DefaultToolTip(control);
	toolTip.setShift(new Point(5, 5));
	uiSynchronize.asyncExec(new Runnable() {

		@Override
		public void run() {
			if (connected) {
				toolTip.setText("Connected to " + host);
			} else {
				toolTip.setText("Disconnected");
			}
		}
	});
}
 
开发者ID:amitjoy,项目名称:Kura-MQTT-Client-Utility,代码行数:17,代码来源:FormUtil.java


示例2: AssetsControl

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
public AssetsControl(Composite parent, int style, Long accountId,
    INxtService nxt, IUserService userService,
    IContactsService contactsService, UISynchronize sync,
    IStylingEngine engine) {
  super(parent, style);
  this.accountId = accountId;
  // this.user = userService.findUser(accountId);
  GridLayoutFactory.fillDefaults().spacing(10, 5).numColumns(1).applyTo(this);

  paginationContainer = new PaginationContainer(this, SWT.NONE);
  GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true)
      .applyTo(paginationContainer);

  assetsViewer = new AssetsViewer(paginationContainer.getViewerParent(),
      accountId, nxt, userService, contactsService, sync, engine);
  paginationContainer.setTableViewer(assetsViewer, 100);
}
 
开发者ID:incentivetoken,项目名称:offspring,代码行数:18,代码来源:AssetsControl.java


示例3: GeneratedBlocksControl

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
public GeneratedBlocksControl(Composite parent, int style, Long accountId,
    IStylingEngine engine, INxtService nxt, IUserService userService,
    UISynchronize sync, IContactsService contactsService) {
  super(parent, style);
  GridLayoutFactory.fillDefaults().numColumns(1).spacing(5, 2).margins(0, 0)
      .applyTo(this);

  paginationContainer = new PaginationContainer(this, SWT.NONE);
  GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true)
      .applyTo(paginationContainer);

  generatedBlocksViewer = new GeneratedBlocksViewer(
      paginationContainer.getViewerParent(), accountId, engine, nxt,
      userService, sync, contactsService);
  paginationContainer.setTableViewer(generatedBlocksViewer, 300);
}
 
开发者ID:incentivetoken,项目名称:offspring,代码行数:17,代码来源:GeneratedBlocksControl.java


示例4: TransactionsControl

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
public TransactionsControl(Composite parent, int style, Long accountId,
    INxtService nxt, IStylingEngine engine, IUserService userService,
    UISynchronize sync) {
  super(parent, style);
  GridLayoutFactory.fillDefaults().numColumns(1).spacing(5, 2).margins(0, 0)
      .applyTo(this);

  paginationContainer = new PaginationContainer(this, SWT.NONE);
  GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true)
      .applyTo(paginationContainer);

  transactionViewer = new TransactionsViewer(
      paginationContainer.getViewerParent(), accountId, null, nxt, engine,
      userService, sync);
  paginationContainer.setTableViewer(transactionViewer, 300);

  transactionViewer.getControl().pack();
}
 
开发者ID:incentivetoken,项目名称:offspring,代码行数:19,代码来源:TransactionsControl.java


示例5: SellOrderTableViewer

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
public SellOrderTableViewer(Composite parent, UISynchronize sync) {
  super(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION
      | SWT.BORDER);

  this.contentProvider = new SellOrderContentProvider(sync);
  this.comparator = new SellOrderComparator();

  setUseHashlookup(false);
  setContentProvider(contentProvider);
  setComparator(comparator);

  createColumns();

  /* Pack the columns */
  for (TableColumn column : getTable().getColumns())
    column.pack();

  Table table = getTable();
  table.setHeaderVisible(true);
  table.setLinesVisible(true);
}
 
开发者ID:incentivetoken,项目名称:offspring,代码行数:22,代码来源:SellOrderTableViewer.java


示例6: BuyOrderTableViewer

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
public BuyOrderTableViewer(Composite parent, UISynchronize sync) {
  super(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION
      | SWT.BORDER);

  this.contentProvider = new BuyOrderContentProvider(sync);
  this.comparator = new BuyOrderComparator();

  setUseHashlookup(false);
  setContentProvider(contentProvider);
  setComparator(comparator);

  createColumns();

  /* Pack the columns */
  for (TableColumn column : getTable().getColumns())
    column.pack();

  Table table = getTable();
  table.setHeaderVisible(true);
  table.setLinesVisible(true);
}
 
开发者ID:incentivetoken,项目名称:offspring,代码行数:22,代码来源:BuyOrderTableViewer.java


示例7: execute

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
@Execute
public void execute(Display display, IWallet wallet, INxtService nxt,
    IUserService userService, UISynchronize sync) {

  AddAccountDialog dialog = new AddAccountDialog(display.getActiveShell(),
      wallet, nxt);
  if (dialog.open() == Window.OK) {
    try {
      boolean select = userService.getActiveUser() == null;
      for (IWalletAccount walletAccount : wallet.getAccounts()) {
        if (walletAccount instanceof INXTWalletAccount) {
          userService.createUser(walletAccount.getLabel(),
              ((INXTWalletAccount) walletAccount).getPrivateKey(),
              ((INXTWalletAccount) walletAccount).getAccountNumber());
        }
      }
      if (select && userService.getUsers().size() > 0)
        userService.setActiveUser(userService.getUsers().get(0));
    }
    catch (WalletNotInitializedException e) {
      logger.error("Wallet not initialized", e);
    }
  }
}
 
开发者ID:incentivetoken,项目名称:offspring,代码行数:25,代码来源:CreateAccountHandler.java


示例8: postConstruct

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
@PostConstruct
 public void postConstruct(Composite parent, INxtService nxt,
     final IUserService userService, IStylingEngine engine,
UISynchronize sync) {

   mainComposite = new Composite(parent, SWT.NONE);
   GridLayoutFactory.fillDefaults().numColumns(1).spacing(5, 2).margins(0, 0)
       .applyTo(mainComposite);
   GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true)
       .applyTo(mainComposite);

   paginationContainer = new PaginationContainer(mainComposite, SWT.NONE);
   GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true)
       .applyTo(paginationContainer);

   tradesViewer = new TradesViewer(paginationContainer.getViewerParent(), nxt,
       ContactsService.getInstance(), engine, userService, sync);
   paginationContainer.setTableViewer(tradesViewer, 100);
 }
 
开发者ID:incentivetoken,项目名称:offspring,代码行数:20,代码来源:TradesPart.java


示例9: postConstruct

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
@PostConstruct
public void postConstruct(Composite parent, INxtService nxt,
    final IUserService userService, IStylingEngine engine,
    UISynchronize sync, IAssetExchange exchange) {
  mainComposite = new Composite(parent, SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(1).spacing(5, 2).margins(0, 0)
      .applyTo(mainComposite);
  GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true)
      .applyTo(mainComposite);

  paginationContainer = new PaginationContainer(mainComposite, SWT.NONE);
  GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true)
      .applyTo(paginationContainer);

  // tradesViewer = new TradeTableViewer(mainComposite, exchange);
  tradesViewer = new MyTradesViewer(paginationContainer.getViewerParent(),
      nxt, ContactsService.getInstance(), engine, userService, sync, exchange);
  paginationContainer.setTableViewer(tradesViewer, 100);
}
 
开发者ID:incentivetoken,项目名称:offspring,代码行数:20,代码来源:MyTradesPart.java


示例10: execute

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
@Execute
public void execute(IProvisioningAgent agent, UISynchronize sync,
        IWorkbench workbench) {
	// update using a progress monitor
	final IRunnableWithProgress runnable = new IRunnableWithProgress() {
		@Override
		public void run(IProgressMonitor monitor)
	            throws InvocationTargetException, InterruptedException {
			update(agent, monitor, sync, workbench);
		}
	};

	try {
		new ProgressMonitorDialog(null).run(true, true, runnable);
	}
	catch (InvocationTargetException | InterruptedException exc) {
		exc.printStackTrace();
	}
}
 
开发者ID:aktion-hip,项目名称:relations,代码行数:20,代码来源:UpdateHandler.java


示例11: WorkbenchPipelineListener

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
public WorkbenchPipelineListener(SubMonitor monitor, UISynchronize sync, int totalWork) {
	super();
	this.lastProgress = 0;
	this.monitor = monitor;
	this.sync = sync;
	this.totalWork = totalWork;
}
 
开发者ID:termsuite,项目名称:termsuite-ui,代码行数:8,代码来源:WorkbenchPipelineListener.java


示例12: ConnectionSettingsDialog

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
private ConnectionSettingsDialog(final Shell parentShell, final IEventBroker broker,
		final UISynchronize synchronize, final MWindow window) {
	super(parentShell);
	this.broker = broker;
	this.synchronize = synchronize;
	this.window = window;
}
 
开发者ID:amitjoy,项目名称:Kura-MQTT-Client-Utility,代码行数:8,代码来源:ConnectionSettingsDialog.java


示例13: LogViewPart

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
@Inject
public LogViewPart(final EPartService partService, final IEclipseContext context, final UISynchronize synchronize,
		@Optional final IBundleResourceLoader bundleResourceService) {
	this.synchronize = synchronize;
	this.logTracker = context.get(LogTracker.class);
	this.bundleResourceLoader = bundleResourceService;
}
 
开发者ID:amitjoy,项目名称:Kura-MQTT-Client-Utility,代码行数:8,代码来源:LogViewPart.java


示例14: SubscribePart

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
@Inject
public SubscribePart(final MApplication application, final IEclipseContext context,
		final UISynchronize uiSynchronize, final IEventBroker broker,
		@Optional final IBundleResourceLoader bundleResourceService, final MWindow window,
		final EPartService partService) {
	this.uiSynchronize = uiSynchronize;
	this.broker = broker;
	this.window = window;
	this.bundleResourceService = context.get(IBundleResourceLoader.class);
	logTracker = context.get(LogTracker.class);
	this.partService = partService;
}
 
开发者ID:amitjoy,项目名称:Kura-MQTT-Client-Utility,代码行数:13,代码来源:SubscribePart.java


示例15: PublishPart

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
@Inject
public PublishPart(final MApplication application, final IEclipseContext context, final IEventBroker broker,
		final UISynchronize uiSynchronize, @Optional final IBundleResourceLoader bundleResourceService,
		final MWindow window, final EMenuService menuService) {
	this.broker = broker;
	this.uiSynchronize = uiSynchronize;
	this.window = window;
	this.menuService = menuService;
	this.bundleResourceService = context.get(IBundleResourceLoader.class);
}
 
开发者ID:amitjoy,项目名称:Kura-MQTT-Client-Utility,代码行数:11,代码来源:PublishPart.java


示例16: safelySetToolbarImage

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
public static void safelySetToolbarImage(final Form form, final UISynchronize uiSynchronize,
		final IBundleResourceLoader bundleResourceService, final String path) {
	uiSynchronize.asyncExec(new Runnable() {
		@Override
		public void run() {
			form.setImage(bundleResourceService.loadImage(this.getClass(), path));
		}
	});

}
 
开发者ID:amitjoy,项目名称:Kura-MQTT-Client-Utility,代码行数:11,代码来源:FormUtil.java


示例17: execute

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
@Execute
public void execute(EPartService partService, final IWorkbench workbench,
		Shell shell, DBManager dbManager, UISynchronize sync) {
	boolean saveAll = false;
	boolean close = false;
	if (!partService.getDirtyParts().isEmpty()) {
		saveAll = MessageDialog.openConfirm(shell, "Unsaved Data",
				"Unsaved data, do you want to save and restart?");

	} else {
		close = MessageDialog.openConfirm(shell, "Restart",
				"Restart application?");
	}

	if (saveAll) {
		partService.saveAll(false);
	}
	if (close || saveAll) {
		try {
			if (dbManager.optimizationRequired()) {
				// ask user if optimize
				dbManager.optimize();
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		sync.asyncExec(new Runnable() {
			@Override
			public void run() {
				workbench.restart();
			}
		});
	}

}
 
开发者ID:cplutte,项目名称:bts,代码行数:38,代码来源:RestartHandler.java


示例18: InstallationWizard

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
public InstallationWizard(IEclipseContext context,
		ApplicationStartupController startupController, UISynchronize sync,
		BTSUserController userController) {
	this.context = context;
	this.startupController = startupController;
	this.preferences = DefaultScope.INSTANCE.getNode("org.bbaw.bts.app");
	this.logger = context.get(Logger.class);
	this.sync = sync;
	this.userController = userController;
	setWindowTitle("BTS Installation Wizard");
}
 
开发者ID:cplutte,项目名称:bts,代码行数:12,代码来源:InstallationWizard.java


示例19: BlockTransactionViewer

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
public BlockTransactionViewer(Composite parent, Long blockId,
    IContactsService contactsService, INxtService nxt, IStylingEngine engine,
    IUserService userService, UISynchronize sync) {
  super(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE
      | SWT.BORDER);
  this.contactsService = contactsService;
  this.nxt = nxt;
  this.blockId = blockId;
  this.engine = engine;
  this.userService = userService;
  this.sync = sync;
  setGenericTable(new IGenericTable() {

    @Override
    public int getDefaultSortDirection() {
      return GenericComparator.DESCENDING;
    }

    @Override
    public IGenericTableColumn getDefaultSortColumn() {
      return columnDate;
    }

    @Override
    public IStructuredContentProvider getContentProvider() {
      return contentProvider;
    }

    @Override
    public IGenericTableColumn[] getColumns() {
      return new IGenericTableColumn[] { columnDate, columnAmount, columnFee,
          columnSender, columnRecipient, columnID, columnTransactionType };
    }
  });
  setInput(blockId);
}
 
开发者ID:incentivetoken,项目名称:offspring,代码行数:37,代码来源:BlockTransactionViewer.java


示例20: InspectBlockDialog

import org.eclipse.e4.ui.di.UISynchronize; //导入依赖的package包/类
public InspectBlockDialog(Shell shell, Long blockId, INxtService nxt,
    IStylingEngine engine, IUserService userService, UISynchronize sync,
    IContactsService contactsService) {
  super(shell);
  this.blockId = blockId;
  this.engine = engine;
  this.nxt = nxt;
  this.userService = userService;
  this.sync = sync;
  this.contactsService = contactsService;
}
 
开发者ID:incentivetoken,项目名称:offspring,代码行数:12,代码来源:InspectBlockDialog.java



注:本文中的org.eclipse.e4.ui.di.UISynchronize类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ResourceBanner类代码示例发布时间:2022-05-23
下一篇:
Java RawDexFile类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap