forked from apache/netbeans-website
-
Notifications
You must be signed in to change notification settings - Fork 1
DevFaqGetProjectForFileInEditor
Antonio Vieiro edited this page Jan 25, 2018
·
1 revision
-
get the project from the lookup of the active TopComponent AND/OR
-
get the project from the lookup of the active DataObject
Project p = TopComponent.getRegistry().getActivated().getLookup().lookup(Project.class); if (p == null) { DataObject dob = TopComponent.getRegistry().getActivated().getLookup().lookup(DataObject.class); if (dob != null) { FileObject fo = dob.getPrimaryFile(); p = FileOwnerQuery.getOwner(fo); ...
Taken from platform-dev mailing list / Tim Boudreau === Apache Migration Information The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation. This page was exported from link:http://wiki.netbeans.org/DevFaqGetProjectForFileInEditor[http://wiki.netbeans.org/DevFaqGetProjectForFileInEditor] , that was last modified by NetBeans user Markiewb on 2012-12-27T10:47:54Z. *NOTE:* This document was automatically converted to the AsciiDoc format on 2018-01-26, and needs to be reviewed.
Apache NetBeans is an effort undergoing incubation at The Apache Software Foundation (ASF).
Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects.
While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
This wiki is an experiment pending Apache NetBeans Community approval.