Examples of UXPromptWindow


Examples of net.sourceforge.ztail.swtux.windows.UXPromptWindow

      UXMessages.getInstance()
        .showWarningMessage("Please select a folder to be able to create a child folder");
      return;
    }
   
    final UXPromptWindow win =
      new UXPromptWindow(tree.getContainer().getShell(), "Bookmark Folder", "Please enter the name of new folder!");
   
    win.setOkAction(new UXAbstractAction() {
      @Override
      public void doAction() {
        BookmarkFolder folder = new BookmarkFolder();
        folder.setName(win.getInput());
        folder.setParent(pFolder);
       
        try {
          BookmarkService.instance().save(folder);
          pFolder.addFolder(folder);
          tree.refresh();
        } catch (ServiceException e) {
          UXMessages.getInstance().showErrorMessage(e);
        } finally {
          win.close();
        }
      }
    });
   
    win.open();
  }
View Full Code Here

Examples of net.sourceforge.ztail.swtux.windows.UXPromptWindow

      UXMessages.getInstance()
        .showWarningMessage("Please select a folder to be able to edit it!");
      return;
    }
   
    final UXPromptWindow win =
      new UXPromptWindow(mWin.getShell(), "Bookmark Folder", "Please enter the new name for folder!");
    win.setInput(folder.getName());
   
    win.setOkAction(new UXAbstractAction() {
      @Override
      public void doAction() {
        folder.setName(win.getInput());
       
        try {
          BookmarkService.instance().update(folder);
          mWin.refreshTree();
        } catch (ServiceException e) {
          UXMessages.getInstance().showErrorMessage(e);
        } finally {
          win.close();
        }
      }
    });
   
    win.open();
  }
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.