~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to apisupport/project/src/org/netbeans/modules/apisupport/project/ui/wizard/loader/templateDataLoaderBeanInfo.javx

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
ImportĀ upstreamĀ versionĀ 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<#assign licenseFirst = "/*">
 
2
<#assign licensePrefix = " * ">
 
3
<#assign licenseLast = " */">
 
4
<#include "../Licenses/license-${project.license}.txt">
 
5
 
 
6
package ${PACKAGENAME};
 
7
 
 
8
import java.awt.Image;
 
9
import java.beans.BeanInfo;
 
10
import java.beans.IntrospectionException;
 
11
import java.beans.Introspector;
 
12
import java.beans.SimpleBeanInfo;
 
13
import org.openide.loaders.UniFileLoader;
 
14
import org.openide.util.Utilities;
 
15
 
 
16
public class ${PREFIX}DataLoaderBeanInfo extends SimpleBeanInfo {
 
17
 
 
18
    @Override
 
19
    public BeanInfo[] getAdditionalBeanInfo() {
 
20
        try {
 
21
            return new BeanInfo[] {Introspector.getBeanInfo(UniFileLoader.class)};
 
22
        } catch (IntrospectionException e) {
 
23
            throw new AssertionError(e);
 
24
        }
 
25
    }
 
26
 
 
27
    @Override
 
28
    public Image getIcon(int type) {
 
29
        ${IMAGESNIPPET}
 
30
    }
 
31
 
 
32
}