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 28103 - Regarding docking of the property sheet window.
Summary: Regarding docking of the property sheet window.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: t_h
URL:
Keywords: UI
: 54782 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-18 06:24 UTC by sachin
Modified: 2008-12-23 10:58 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 sachin 2002-10-18 06:24:29 UTC
Using the Net Bean API,
I created one module, want expose the Java Bean properties 
in the Property sheet. 

As there is properties popup menu for every node in the 
IDEs explorer window. 
Same thing I want to implement in my module.

In UI window, there is node tree hierarchy each node have 
properties popup menu. 
In short I explain here what I did?

I have the Java Bean and its corresponding Bean Info. 
Using the org.openide.nodes API I create one class 
OperationNode, which extends org.openide.nodes.BeanNode. 
I pass the instance of the bean (of which properties want 
to 
expose in the property sheet) to OperationNodes 
constructor. And using TopManager class,

TopManager.getDefault().getNodeOperation().showProperties
(instance  of OperationNode);

It shows the property sheet properly with the proper 
properties of Bean class. 

The OperationNode is like this;

public class OperationNode extends BeanNode
{
public OperationNode(Object AOperationBean) throws 
IntrospectionException
{ 
  super(AOperationBean);
  setName("Opeartion");
  setShortDescription("Operation");
  setDisplayName("Test");
}

protected void createProperties(Object bean, BeanInfo info)
{
   super.createProperties(bean,info);
}
}


My requirement is whenever the properties pop-up menu from 
my UI window clicked the property sheet windows should 
display/docked into the Explorer window of the S1S.  I 
know that this can be done by using Window menus Dock 
view into menu item.  But I dont  want for every property 
sheet window, user do the same steps. 

Is there any solution so that every property sheet window 
should be display into the Explorer Window by default?


Waiting for the response.

Regards,

Sachin Patil

Software Engineer
ABC.
Comment 1 Petr Nejedly 2004-01-09 09:44:19 UTC
Taking over the node bugs from phrebejk.
Comment 2 Antonin Nebuzelsky 2008-02-08 15:02:06 UTC
Reassigning to new module owner Tomas Holy.
Comment 3 t_h 2008-10-13 15:04:51 UTC
Register org.openide.nodes.NodeOperation in META-INF/services just as NodeOperationImpl does and replace default behavior.
Comment 4 t_h 2008-10-13 15:17:49 UTC
*** Issue 54782 has been marked as a duplicate of this issue. ***