alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 * GazoogleDataObject.java
 *
 * Created on 12 July 2001 1616 MDT
 */

package com.example.nb.tutorial.chapter_5;

import org.openide.filesystems.FileObject;
import org.openide.loaders.DataObjectExistsException;
import org.openide.loaders.MultiDataObject;
import org.openide.nodes.CookieSet;

/**
 *
 * @author  adams
 * @version 1.0
 */
public class GazoogleDataObject extends MultiDataObject
{

    /** Creates new GazoogleDataObject */
    public GazoogleDataObject(FileObject primaryFile, GazoogleDataObjectLoader loader) 
      throws DataObjectExistsException
    {
        super(primaryFile, loader);
        
        // blank out the cookie set for this data object:
        CookieSet cs = new CookieSet();
        cs.add(new GazoogleOpenSupport(this));
        this.setCookieSet(cs);
    }
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.