Package net.sourceforge.ztail.modules.bookmark.data

Examples of net.sourceforge.ztail.modules.bookmark.data.BookmarkFolder


   
    win.open();
  }
 
  public void createNewBookmarkFolder(final BookmarkTreeComp tree) {
    final BookmarkFolder pFolder = tree.getSelectedFolder();
   
    if (pFolder == null) {
      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();
View Full Code Here


   
    win.open();
  }
 
  public void editBookmarkFolder(final BookmarkManagerWin mWin) {
    final BookmarkFolder folder = mWin.getSelectedFolder();
   
    if (folder == null) {
      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) {
View Full Code Here

   
    win.open();
  }
 
  public void removeBookmarkFolder(final BookmarkManagerWin mWin) {
    final BookmarkFolder folder = mWin.getSelectedFolder();
   
    if (folder == null) {
      UXMessages.getInstance()
        .showWarningMessage("Please select a folder to be able to remove it!");
      return;
    }
   
    final UXConfirmWindow win =
      new UXConfirmWindow(mWin.getShell(), "Bookmark Folder", "You are sure you want to remove folder?");
   
    win.setOkAction(new UXAbstractAction() {
      @Override
      public void doAction() {
        try {
          BookmarkService.instance().remove(folder);
          folder.getParent().removeFolder(folder);
          mWin.refreshTree();
        } catch (ServiceException e) {
          UXMessages.getInstance().showErrorMessage(e);
        } finally {
          win.close();
View Full Code Here

        public void doAction() {
          BookmarkItem bookmark = new BookmarkItem();
          bookmark.setName(win.getName());
          bookmark.setNrOfLines(10);
         
          BookmarkFolder folder = win.getSelectedFolder();
          if (folder == null) {
            UXMessages.getInstance()
              .showWarningMessage("Please select a folder where the bookmark will be stored");
            return;
          }
View Full Code Here

        oldBookmark.setFolder(bookmark.getFolder());
       
        bookmark.setName(win.getName());
        bookmark.setNrOfLines(10);
       
        BookmarkFolder folder = win.getSelectedFolder();
        if (folder == null) {
          UXMessages.getInstance()
            .showWarningMessage("Please select a folder where the bookmark will be stored!");
          return;
        }
View Full Code Here

TOP

Related Classes of net.sourceforge.ztail.modules.bookmark.data.BookmarkFolder

Copyright © 2018 www.massapicom. 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.