站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

JavaDataSupport (Java Source) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.java.source 0.13.0 1

org.netbeans.api.java.loaders
Class JavaDataSupport

java.lang.Object
  extended by org.netbeans.api.java.loaders.JavaDataSupport

public final class JavaDataSupport
extends Object

This class contains helper methods necessary to write extensions of the java data support.


Method Summary
static MultiDataObject.Entry createJavaFileEntry(MultiDataObject mdo, FileObject javafile)
          In case you write own data loader you should use this entry for the .java file object.
static Node createJavaNode(FileObject javafile)
          Creates a default node for a particular java file object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createJavaFileEntry

public static MultiDataObject.Entry createJavaFileEntry(MultiDataObject mdo,
                                                        FileObject javafile)
In case you write own data loader you should use this entry for the .java file object. The entry provides functionality like create from template.

Parameters:
mdo - the data object this entry will belong to
javafile - the file object for the entry
Returns:
the java entry

createJavaNode

public static Node createJavaNode(FileObject javafile)
Creates a default node for a particular java file object.

Parameters:
javafile - the java file object to represent
Returns:
the node

org.netbeans.modules.java.source 0.13.0 1

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.