mirror of
https://github.com/Noratrieb/UMLetClassParser.git
synced 2026-01-14 08:35:07 +01:00
removed convert button
This commit is contained in:
parent
0901c23207
commit
3b484441ec
3 changed files with 3 additions and 26 deletions
|
|
@ -72,7 +72,7 @@
|
|||
</component>
|
||||
</children>
|
||||
</grid>
|
||||
<grid id="425fa" layout-manager="GridLayoutManager" row-count="3" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<grid id="425fa" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<constraints>
|
||||
<tabbedpane title="Text Mode"/>
|
||||
|
|
@ -98,14 +98,6 @@
|
|||
<editable value="false"/>
|
||||
</properties>
|
||||
</component>
|
||||
<component id="66adb" class="javax.swing.JButton" binding="convertButton" default-binding="true">
|
||||
<constraints>
|
||||
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
<properties>
|
||||
<text value="Convert"/>
|
||||
</properties>
|
||||
</component>
|
||||
</children>
|
||||
</grid>
|
||||
</children>
|
||||
|
|
|
|||
|
|
@ -24,14 +24,6 @@ public class UMLClassView {
|
|||
|
||||
public UMLClassView() {
|
||||
|
||||
convertButton.addActionListener(e -> {
|
||||
String text = inputArea.getText();
|
||||
|
||||
UMLClass umlClass = new UMLClass(text, "");
|
||||
|
||||
outputArea.setText(umlClass.toString());
|
||||
});
|
||||
|
||||
inputArea.addKeyListener(new KeyAdapter() {
|
||||
@Override
|
||||
public void keyPressed(KeyEvent e) {
|
||||
|
|
|
|||
|
|
@ -6,20 +6,13 @@ public class UMLMethod {
|
|||
private final String name;
|
||||
private final String encapsulation;
|
||||
|
||||
private ArrayList<String> argsNames = new ArrayList<>();
|
||||
private ArrayList<String> argsTypes = new ArrayList<>();
|
||||
private final ArrayList<String> argsNames = new ArrayList<>();
|
||||
private final ArrayList<String> argsTypes = new ArrayList<>();
|
||||
|
||||
public UMLMethod(String line, String className) {
|
||||
|
||||
//First, format it nicely
|
||||
|
||||
/**
|
||||
* Formatted line:
|
||||
* EncapsulationIndicator;
|
||||
* retunType("" for void);
|
||||
* name;
|
||||
* args in the UML format
|
||||
*/
|
||||
String formatted = line.replaceAll(Regex.METHOD_FIND_REGEX, "$1;$4;$2;$3");
|
||||
String[] parts = formatted.split(";");
|
||||
this.encapsulation = switch (parts[0]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue