01: /*
02: * $Header: /cvs/j3dfly/J3dEditor/src/org/jdesktop/j3dedit/J3dEditContext.java,v 1.1 2005/04/20 22:20:26 paulby Exp $
03: *
04: * Sun Public License Notice
05: *
06: * The contents of this file are subject to the Sun Public License Version
07: * 1.0 (the "License"). You may not use this file except in compliance with
08: * the License. A copy of the License is available at http://www.sun.com/
09: *
10: * The Original Code is the Java 3D(tm) Scene Graph Editor.
11: * The Initial Developer of the Original Code is Paul Byrne.
12: * Portions created by Paul Byrne are Copyright (C) 2002.
13: * All Rights Reserved.
14: *
15: * Contributor(s): Paul Byrne.
16: *
17: **/
18: package org.jdesktop.j3dedit;
19:
20: import org.jdesktop.j3dfly.utils.developmenttools.DevelopmentLocale;
21: import org.jdesktop.j3dfly.J3dFly;
22: import org.jdesktop.j3dedit.scenegrapheditor.SceneGraphControl;
23: import org.jdesktop.j3dedit.scenegrapheditor.ConfigLoader;
24:
25: /**
26: * A specialization of J3dFlyContext for the editor.
27: *
28: * @author Paul Byrne
29: */
30: public class J3dEditContext extends org.jdesktop.j3dfly.J3dFlyContext {
31:
32: /** Holds value of property sceneGraphControl. */
33: private SceneGraphControl sceneGraphControl;
34:
35: /** Holds value of property configLoader. */
36: private ConfigLoader configLoader;
37:
38: /** Creates new J3dEditContext when running the Editor normally */
39: public J3dEditContext(DevelopmentLocale locale, J3dFly j3dFly) {
40: super (locale, j3dFly);
41: }
42:
43: /**
44: * Used when running the Interposer
45: */
46: public J3dEditContext(DevelopmentLocale locale,
47: javax.swing.JMenuBar mainMenuBar) {
48: addLocale(locale);
49: this .mainMenuBar = mainMenuBar;
50: }
51:
52: /** Getter for property sceneGraphControl.
53: * @return Value of property sceneGraphControl.
54: */
55: public SceneGraphControl getSceneGraphControl() {
56: return this .sceneGraphControl;
57: }
58:
59: /** Setter for property sceneGraphControl.
60: * @param sceneGraphControl New value of property sceneGraphControl.
61: */
62: public void setSceneGraphControl(SceneGraphControl sceneGraphControl) {
63: this .sceneGraphControl = sceneGraphControl;
64: }
65:
66: /** Getter for property configLoader.
67: * @return Value of property configLoader.
68: */
69: public ConfigLoader getConfigLoader() {
70: return this .configLoader;
71: }
72:
73: /** Setter for property configLoader.
74: * @param configLoader New value of property configLoader.
75: */
76: public void setConfigLoader(ConfigLoader configLoader) {
77: this.configLoader = configLoader;
78: }
79:
80: }
|