mirror of
https://github.com/Noratrieb/UMLetClassParser.git
synced 2026-01-15 17:15:08 +01:00
working
This commit is contained in:
parent
5b0937a8eb
commit
501fa2f293
6 changed files with 66 additions and 16 deletions
|
|
@ -11,6 +11,7 @@ public class UMLClassView {
|
|||
private JTextArea outputArea;
|
||||
private JTextField pathField;
|
||||
private JButton convertFileButton;
|
||||
private JTextField packagePathField;
|
||||
|
||||
private UMLManager manager;
|
||||
|
||||
|
|
@ -20,7 +21,7 @@ public class UMLClassView {
|
|||
convertButton.addActionListener(e -> {
|
||||
String text = inputArea.getText();
|
||||
|
||||
UMLClass umlClass = new UMLClass(text);
|
||||
UMLClass umlClass = new UMLClass(text, "");
|
||||
|
||||
outputArea.setText(umlClass.toString());
|
||||
});
|
||||
|
|
@ -29,7 +30,7 @@ public class UMLClassView {
|
|||
@Override
|
||||
public void keyPressed(KeyEvent e) {
|
||||
String text = inputArea.getText();
|
||||
UMLClass umlClass = new UMLClass(text);
|
||||
UMLClass umlClass = new UMLClass(text, "");
|
||||
outputArea.setText(umlClass.toString());
|
||||
}
|
||||
});
|
||||
|
|
@ -38,8 +39,9 @@ public class UMLClassView {
|
|||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
String path = pathField.getText();
|
||||
String packagePath = packagePathField.getText();
|
||||
XMLParser parser = new XMLParser(path);
|
||||
manager.parseClasses(parser.getClassesText());
|
||||
manager.parseClasses(parser.getClassesText(), packagePath);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue