Skip to content

Commit 7053b6d

Browse files
committed
forgot to commit texturepanel
1 parent 1e5ab27 commit 7053b6d

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/TexturePanel.java

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,21 @@
3232
*/
3333
public 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 ")) {

0 commit comments

Comments
 (0)