Package net.alteiar.campaign.player.gui.centerViews.explorer.actions

Examples of net.alteiar.campaign.player.gui.centerViews.explorer.actions.PropertyDocumentAction


    JPopupMenu popup = new JPopupMenu();

    if (doc.isDirectory()) {
      BeanDirectory dir = (BeanDirectory) doc;

      popup.add(new JMenuItem(new PropertyDocumentAction(dir)));
      popup.add(new JMenuItem(new RemoveDirectoryAction(dir)));
      popup.addSeparator();
      popup.add(new JMenuItem(new NewDirectoryAction(dir)));
      popup.add(new JMenuItem(new NewDocumentAction(dir)));
    } else {
      BeanDocument file = (BeanDocument) doc;
      popup.add(new JMenuItem(new PropertyDocumentAction(file)));
      popup.add(new JMenuItem(new ViewDocumentAction(file)));
      popup.addSeparator();
      popup.add(new JMenuItem(new DeleteDocumentAction(file)));
    }
View Full Code Here

TOP

Related Classes of net.alteiar.campaign.player.gui.centerViews.explorer.actions.PropertyDocumentAction

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.