Examples of PaletteFinder


Examples of org.eclipse.swtbot.eclipse.gef.finder.finders.PaletteFinder

  private SWTBotGefViewer activateTool(final Pattern labelMatcher, final int index) throws WidgetNotFoundException {
    final WidgetNotFoundException[] exception = new WidgetNotFoundException[1];
    UIThreadRunnable.syncExec(new VoidResult() {
      public void run() {
        final EditDomain editDomain = getEditDomain();
        final List<PaletteEntry> entries = new PaletteFinder(editDomain).findEntries(new ToolEntryLabelMatcher(labelMatcher));
        if (entries.size() > 0) {
          final PaletteEntry paletteEntry = entries.get(index);
          if (paletteEntry instanceof ToolEntry) {
            editDomain.getPaletteViewer().setActiveTool((ToolEntry) paletteEntry);
          } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.