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
|
@Override
|
||||||
public void keyReleased(KeyEvent e) {
|
public void keyReleased(KeyEvent e) {
|
||||||
UMLManager.setDefaultEncapsulation(defaultEncapsulationField.getText() + " ");
|
manager.setDefaultEncapsulation(defaultEncapsulationField.getText() + " ");
|
||||||
refreshTextArea();
|
refreshTextArea();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ public class UMLField {
|
||||||
default -> "[undefined] ";
|
default -> "[undefined] ";
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
this.encapsulation = UMLManager.DEFAULT_ENCAPSULATION;
|
this.encapsulation = manager.getDefaultEncapsulation();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.name = formattedSplit[2];
|
this.name = formattedSplit[2];
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import java.util.ArrayList;
|
||||||
*/
|
*/
|
||||||
public class UMLManager {
|
public class UMLManager {
|
||||||
|
|
||||||
public static String DEFAULT_ENCAPSULATION = "";
|
private String defaultEncapsulation = "";
|
||||||
private UMLClassView view;
|
private UMLClassView view;
|
||||||
private boolean showWatermark;
|
private boolean showWatermark;
|
||||||
private boolean getSetAuto;
|
private boolean getSetAuto;
|
||||||
|
|
@ -87,7 +87,13 @@ public class UMLManager {
|
||||||
this.ignoreEcapsulation = ignoreEcapsulation;
|
this.ignoreEcapsulation = ignoreEcapsulation;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setDefaultEncapsulation(String defaultEncapsulation) {
|
public void setDefaultEncapsulation(String defaultEncapsulation) {
|
||||||
DEFAULT_ENCAPSULATION = defaultEncapsulation;
|
this.defaultEncapsulation = defaultEncapsulation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDefaultEncapsulation() {
|
||||||
|
return defaultEncapsulation;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,8 @@ public class UMLMethod {
|
||||||
default -> "[undefined] ";
|
default -> "[undefined] ";
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
this.encapsulation = UMLManager.DEFAULT_ENCAPSULATION;
|
this.encapsulation = manager.getDefaultEncapsulation();
|
||||||
System.out.println(UMLManager.DEFAULT_ENCAPSULATION);
|
System.out.println(manager.getDefaultEncapsulation());
|
||||||
}
|
}
|
||||||
|
|
||||||
this.name = parts[2];
|
this.name = parts[2];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue