File tree Expand file tree Collapse file tree
jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 */
3333public class TexturePanel extends MaterialPropertyWidget {
3434
35- private final TexturePropertyEditor editor ;
36- private final ProjectAssetManager manager ;
35+ private TexturePropertyEditor editor ;
36+ private ProjectAssetManager manager ;
3737 private boolean flip = false ;
3838 private boolean repeat = false ;
3939 protected String textureName = null ; // always enclosed with ""
4040 private TexturePreview texPreview ;
4141 private final ScheduledThreadPoolExecutor exec = new ScheduledThreadPoolExecutor (1 );
4242
43+ /**
44+ * Used by tests
45+ */
46+ protected TexturePanel () {
47+
48+ }
49+
4350 /**
4451 * Creates new form SelectionPanel
4552 */
@@ -67,12 +74,14 @@ public void run() {
6774 }
6875 }
6976
70- private String extractTextureName (String textureName ) {
77+ // visible for tests
78+ protected String extractTextureName (String textureName ) {
7179 final String [] textureNameComponents = textureName .split ("\" " );
7280 return textureNameComponents [textureNameComponents .length - 1 ];
7381 }
7482
75- private void updateFlipRepeat () {
83+ // visible for tests
84+ protected void updateFlipRepeat () {
7685 String propertyValue = property .getValue ();
7786 propertyValue = propertyValue .replaceFirst (textureName , "" );
7887 if (flip && !propertyValue .contains ("Flip " )) {
You can’t perform that action at this time.
0 commit comments