Revision 518 2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.app/org.gvsig.view3d.app.common/src/main/java/org/gvsig/view3d/app/properties/General3DPreferencePage.java
General3DPreferencePage.java | ||
---|---|---|
102 | 102 |
.setStarsBackgroundVisibility(starsBackgroundVisibility); |
103 | 103 |
generalProperties3D.setScaleVisibility(scaleVisibility); |
104 | 104 |
generalProperties3D.setViewPortAnimation(viewportAnimation); |
105 |
generalProperties3D.setCachePath(new File(cachePath)); |
|
105 |
|
|
106 |
if(cachePath != null){ |
|
107 |
generalProperties3D.setCachePath(new File(cachePath)); |
|
108 |
} |
|
106 | 109 |
|
107 | 110 |
swingManager.setGeneral3DProperties(generalProperties3D); |
108 | 111 |
|
109 | 112 |
} |
110 | 113 |
|
111 | 114 |
public void initializeDefaults() { |
112 |
|
|
115 |
|
|
113 | 116 |
} |
114 | 117 |
|
115 | 118 |
@Override |
... | ... | |
136 | 139 |
View3DSwingManager swingManager = View3DSwingLocator.getManager(); |
137 | 140 |
GeneralProperties3D general3dProperties = swingManager.getGeneral3DProperties(); |
138 | 141 |
|
139 |
if (width != general3dProperties.getDefaultViewWidht()
|
|
142 |
if (width != general3dProperties.getDefaultViewWidth()
|
|
140 | 143 |
|| heigth != general3dProperties.getDefaultViewHeight() |
141 | 144 |
|| atmosphereVisibility != general3dProperties |
142 | 145 |
.getAtmosphereVisibility() |
Also available in: Unified diff