KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > web > jsf > JSFConfigEditorContextImpl


1 /*
2  * JSFConfigContextImpl.java
3  *
4  * Created on February 9, 2007, 11:18 AM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package org.netbeans.modules.web.jsf;
11
12 import java.io.Serializable JavaDoc;
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 /**
19  *
20  * @author petr
21  */

22 public class JSFConfigEditorContextImpl implements JSFConfigEditorContext, Serializable JavaDoc{
23     static final long serialVersionUID = -4802489998350639459L;
24
25     JSFConfigDataObject jsfDataObject;
26     /** Creates a new instance of JSFConfigContextImpl */
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