1 19 20 25 26 package org.netbeans.modules.css.editor; 27 import org.netbeans.modules.css.visual.model.CssMetaModel; 28 import org.netbeans.modules.css.visual.model.CssStyleData; 29 import org.openide.loaders.DataObject; 30 import org.openide.nodes.Node; 31 import org.openide.text.CloneableEditor; 32 import org.openide.util.HelpCtx; 33 import org.openide.windows.TopComponent; 34 import org.openide.windows.WindowManager; 35 36 41 public class CssCloneableEditor extends CloneableEditor{ 42 43 DataObject dataObject = null; 44 45 public CssCloneableEditor() { 46 super(); 47 } 48 49 public CssCloneableEditor(CssEditorSupport support) { 50 super(support); 51 } 52 53 public HelpCtx getHelpCtx() { 54 return new HelpCtx("projrave_ui_elements_editors_about_css_editor") ; } 56 57 public void setDataObject(DataObject dObject){ 58 if(dataObject == null){ 59 dataObject = dObject; 60 CssMetaModel.setDataObject(dataObject); 61 } 62 } 63 64 public void componentOpened(){ 65 super.componentOpened(); 66 CssMetaModel.setDataObject(dataObject); 67 } 73 74 public void componentActivated(){ 75 super.componentActivated(); 76 CssMetaModel.setDataObject(dataObject); 77 } 82 83 public void componentClosed(){ 84 super.componentClosed(); 85 CssMetaModel.removeDataObject(dataObject); 86 dataObject = null; 87 } 88 89 public void setCssStyleData(CssStyleData cssStyleData){ 90 } 93 } 94 | Popular Tags |