mirror of
https://github.com/Noratrieb/UMLetClassParser.git
synced 2026-01-14 16:45:05 +01:00
fixed manager default encapsulation naming
This commit is contained in:
parent
c6bb0c2cbd
commit
b08937fd1a
4 changed files with 13 additions and 7 deletions
|
|
@ -101,7 +101,7 @@ public class UMLClassView {
|
|||
|
||||
@Override
|
||||
public void keyReleased(KeyEvent e) {
|
||||
UMLManager.setDefaultEncapsulation(defaultEncapsulationField.getText() + " ");
|
||||
manager.setDefaultEncapsulation(defaultEncapsulationField.getText() + " ");
|
||||
refreshTextArea();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public class UMLField {
|
|||
default -> "[undefined] ";
|
||||
};
|
||||
} else {
|
||||
this.encapsulation = UMLManager.DEFAULT_ENCAPSULATION;
|
||||
this.encapsulation = manager.getDefaultEncapsulation();
|
||||
}
|
||||
|
||||
this.name = formattedSplit[2];
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import java.util.ArrayList;
|
|||
*/
|
||||
public class UMLManager {
|
||||
|
||||
public static String DEFAULT_ENCAPSULATION = "";
|
||||
private String defaultEncapsulation = "";
|
||||
private UMLClassView view;
|
||||
private boolean showWatermark;
|
||||
private boolean getSetAuto;
|
||||
|
|
@ -87,7 +87,13 @@ public class UMLManager {
|
|||
this.ignoreEcapsulation = ignoreEcapsulation;
|
||||
}
|
||||
|
||||
public static void setDefaultEncapsulation(String defaultEncapsulation) {
|
||||
DEFAULT_ENCAPSULATION = defaultEncapsulation;
|
||||
public void setDefaultEncapsulation(String defaultEncapsulation) {
|
||||
this.defaultEncapsulation = defaultEncapsulation;
|
||||
}
|
||||
|
||||
public String getDefaultEncapsulation() {
|
||||
return defaultEncapsulation;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ public class UMLMethod {
|
|||
default -> "[undefined] ";
|
||||
};
|
||||
} else {
|
||||
this.encapsulation = UMLManager.DEFAULT_ENCAPSULATION;
|
||||
System.out.println(UMLManager.DEFAULT_ENCAPSULATION);
|
||||
this.encapsulation = manager.getDefaultEncapsulation();
|
||||
System.out.println(manager.getDefaultEncapsulation());
|
||||
}
|
||||
|
||||
this.name = parts[2];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue