2 * To change this template, choose Tools | Templates and open the template in
5 package org.netbeans.modules.plsql.filetype;
7 import java.io.IOException;
8 import org.netbeans.core.spi.multiview.MultiViewElement;
9 import org.netbeans.core.spi.multiview.text.MultiViewEditorElement;
10 import org.openide.filesystems.FileObject;
11 import org.openide.loaders.DataObjectExistsException;
12 import org.openide.loaders.MultiDataObject;
13 import org.openide.loaders.MultiFileLoader;
14 import org.openide.util.Lookup;
15 import org.openide.windows.TopComponent;
17 public class PrototypeDataObject extends MultiDataObject {
19 public PrototypeDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException {
21 registerEditor("text/x-plsql-prototype", true);
25 protected int associateLookup() {
29 @MultiViewElement.Registration(displayName = "#LBL_Prototype_EDITOR",
30 iconBase = "SET/PATH/TO/ICON/HERE",
31 mimeType = "text/x-plsql-prototype",
32 persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
33 preferredID = "Prototype",
35 public static MultiViewEditorElement createEditor(Lookup lkp) {
36 return new MultiViewEditorElement(lkp);