1 9 10 package org.netbeans.modules.web.jsf; 11 12 import java.io.Serializable ; 13 import org.netbeans.modules.web.jsf.api.editor.JSFConfigEditorContext; 14 import org.openide.awt.UndoRedo; 15 import org.openide.filesystems.FileObject; 16 import org.openide.windows.TopComponent; 17 18 22 public class JSFConfigEditorContextImpl implements JSFConfigEditorContext, Serializable { 23 static final long serialVersionUID = -4802489998350639459L; 24 25 JSFConfigDataObject jsfDataObject; 26 27 public JSFConfigEditorContextImpl(JSFConfigDataObject data) { 28 jsfDataObject = data; 29 } 30 31 public FileObject getFacesConfigFile() { 32 return jsfDataObject.getPrimaryFile(); 33 } 34 35 public UndoRedo getUndoRedo() { 36 return jsfDataObject.getEditorSupport().getUndoRedoManager(); 37 } 38 39 public void setMultiViewTopComponent(TopComponent topComponent) { 40 jsfDataObject.getEditorSupport().setMVTC(topComponent); 41 } 42 43 } 44 | Popular Tags |