Search in sources :

Example 16 with Project

use of org.netbeans.api.project.Project in project netbeans-mmd-plugin by raydac.

the class MovePanel method getTarget.

public FileObject getTarget() {
    final Project project = (Project) this.comboProjects.getSelectedItem();
    final String folder = (String) this.comboFolders.getSelectedItem();
    if (project == null || folder == null) {
        return null;
    } else {
        return project.getProjectDirectory().getFileObject(folder);
    }
}
Also used : Project(org.netbeans.api.project.Project)

Aggregations

Project (org.netbeans.api.project.Project)16 FileObject (org.openide.filesystems.FileObject)6 File (java.io.File)5 ArrayList (java.util.ArrayList)3 Nullable (javax.annotation.Nullable)2 DefaultComboBoxModel (javax.swing.DefaultComboBoxModel)2 Problem (org.netbeans.modules.refactoring.api.Problem)2 DataObject (org.openide.loaders.DataObject)2 Node (org.openide.nodes.Node)2 PersistentArrayMap (clojure.lang.PersistentArrayMap)1 AsposeMavenProjectManager (com.aspose.barcode.maven.utils.AsposeMavenProjectManager)1 AsposeMavenProjectManager (com.aspose.cells.maven.utils.AsposeMavenProjectManager)1 DataFlavor (java.awt.datatransfer.DataFlavor)1 ItemEvent (java.awt.event.ItemEvent)1 ItemListener (java.awt.event.ItemListener)1 IOException (java.io.IOException)1 URISyntaxException (java.net.URISyntaxException)1 Hashtable (java.util.Hashtable)1 Iterator (java.util.Iterator)1 List (java.util.List)1