|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.vcscore.cmdline; import org.openide.*; import org.openide.util.HelpCtx; /** * * @author Martin Entlicher */ public class RelativeMountDialog extends DialogDescriptor { private RelativeMountPanel mountPanel; private String rootDir; private String relMount; private String[] relMounts; /** Creates new RelativeMountDialog */ public RelativeMountDialog() { this(new RelativeMountPanel(), org.openide.util.NbBundle.getBundle(RelativeMountDialog.class).getString("RelativeMountDialog.title")); } public RelativeMountDialog(Object innerPane, String title) { this(innerPane, title, null); } public RelativeMountDialog(Object innerPane, String title, HelpCtx help) { super(innerPane, title); if (help != null) setHelpCtx(help); mountPanel = (RelativeMountPanel) innerPane; setButtonListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent ev) { if (ev.getID() == java.awt.event.ActionEvent.ACTION_PERFORMED) { if (NotifyDescriptor.OK_OPTION.equals(ev.getSource())) { RelativeMountDialog.this.relMount = mountPanel.getRelMount(); RelativeMountDialog.this.relMounts = mountPanel.getRelMounts(); } else { RelativeMountDialog.this.relMount = null; RelativeMountDialog.this.relMounts = null; } } } }); } public void setDir(String rootDir, String relMount) { this.rootDir = rootDir; this.relMount = relMount; mountPanel.initTree(rootDir, relMount); } public void setDir(String rootDir, String[] relMounts) { this.rootDir = rootDir; this.relMounts = relMounts; mountPanel.initTree(rootDir, relMounts); } public String getRelMount() { return relMount; } public String[] getRelMounts() { return relMounts; } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.