Skip to content

Commit

Permalink
added version label in settings panel (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorviola authored Apr 29, 2020
1 parent ca9dffb commit bf45bf4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/it/unibz/inf/ontouml/vp/OntoUMLPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/
public class OntoUMLPlugin implements VPPlugin {

public static final String PLUGIN_VERSION_RELEASE = "0.2.0";
public static final String PLUGIN_ID = "it.unibz.inf.ontouml.vp";
public static final String PLUGIN_NAME = "OntoUML Plugin";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package it.unibz.inf.ontouml.vp.views;

import com.vp.plugin.view.IDialog;

import it.unibz.inf.ontouml.vp.OntoUMLPlugin;
import it.unibz.inf.ontouml.vp.utils.Configurations;
import it.unibz.inf.ontouml.vp.utils.ProjectConfigurations;

Expand Down Expand Up @@ -32,6 +34,8 @@ public class ConfigurationsView extends JPanel {
private JButton _btnApply;
private JButton _btnResetDefaults;

private JLabel pluginVersion;

private IDialog _dialog;

/**
Expand Down Expand Up @@ -166,6 +170,17 @@ public void actionPerformed(ActionEvent e) {
gbc__btnResetDefaults.gridx = 1;
gbc__btnResetDefaults.gridy = 0;
_controlButtonsPanel.add(_btnResetDefaults, gbc__btnResetDefaults);

pluginVersion = new JLabel("plugin version: " + OntoUMLPlugin.PLUGIN_VERSION_RELEASE);
pluginVersion.setEnabled(false);

GridBagConstraints gbc__versionLabel = new GridBagConstraints();
gbc__versionLabel.anchor = GridBagConstraints.SOUTHWEST;
gbc__versionLabel.gridx = 0;
gbc__versionLabel.gridy = 2;

add(pluginVersion, gbc__versionLabel);


updateComponentsValues(configurations);
updateComponentsStatus();
Expand Down

0 comments on commit bf45bf4

Please sign in to comment.