01: /*
02: * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.ffj.loaders;
07:
08: import org.openide.actions.OpenAction;
09:
10: import org.openide.util.actions.SystemAction;
11:
12: import org.openide.loaders.DataObject;
13: import org.openide.loaders.DataNode;
14:
15: import org.openide.nodes.Children;
16: import org.openide.nodes.Sheet;
17:
18: import com.sun.portal.ffj.properties.PortletSetProperty;
19:
20: public class PortletAppNode extends DataNode {
21:
22: public PortletAppNode(DataObject dob) {
23: super (dob, Children.LEAF);
24: setIconBase("com/sun/portal/ffj/resources/images/PSIcon"); // NOI18N
25: setDefaultAction(SystemAction.get(OpenAction.class));
26: }
27:
28: protected Sheet createSheet() {
29: Sheet sheet = super .createSheet();
30: PortletSetProperty p = new PortletSetProperty(getDataObject()
31: .getPrimaryFile());
32: sheet.get(Sheet.PROPERTIES).put(p);
33: return sheet;
34: }
35: }
|