This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 34814 - Supply a ulitity method to extract a ProjectMember from Document
Summary: Supply a ulitity method to extract a ProjectMember from Document
Status: CLOSED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@projects
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-07-09 09:47 UTC by Petr Jiricka
Modified: 2004-04-19 16:32 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2003-07-09 09:47:16 UTC
Currently, the Projects' editor support, when
creating the javax.swing.text.Document, inserts an
instance Project as a property to the docuemnt.
This is useful, because the EditorKit (which does
all the coloring and completion and stuff) can
then extract it and use it as context.

It would be useful if extracting the property was
supported by a utility method, e.g. 

public static Project getProject(Document doc) {...}

This would be analogous to what currently the
Editor module provides for DataObjects:

Class
org.netbeans.modules.editor.NbEditorUtilities
contains method

public static DataObject getDataObject(Document
doc) {...}
Comment 1 Petr Jiricka 2003-07-09 10:01:09 UTC
See also issue 34815.
Comment 2 Vitezslav Stejskal 2003-11-26 14:42:05 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.
Comment 3 Vitezslav Stejskal 2003-11-26 14:58:11 UTC
--> VERIFIED