01: /*
02: * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: //
07: package com.sun.portal.ffj.loaders;
08:
09: import org.netbeans.modules.jarpackager.JarDataLoader;
10:
11: import org.openide.filesystems.FileObject;
12: import org.openide.util.NbBundle;
13:
14: // simply recognize "par" as an alias for "jar"
15:
16: public class PSParLoader extends JarDataLoader {
17:
18: protected void initialize() {
19:
20: super .initialize();
21:
22: String displayName = NbBundle.getMessage(PSParLoader.class,
23: "LBL_PSParLoader");
24: setDisplayName(displayName);
25: }
26:
27: protected FileObject findPrimaryFile(FileObject fo) {
28: if (fo.hasExt("par")) {
29: return fo;
30: }
31:
32: return null;
33: }
34: }
|