From 85c17e62f0b50c751ad327e408eca2a07da1ac89 Mon Sep 17 00:00:00 2001 From: Hiroki Kondo Date: Thu, 20 Jun 2013 11:01:23 +0900 Subject: [PATCH] start to implement 1.0.2 --- pom.xml | 7 ++- .../plugin/mindmapplanner/Activator.java | 6 --- .../plugin/mindmapplanner/EditionChecker.java | 46 ------------------- 3 files changed, 3 insertions(+), 56 deletions(-) delete mode 100644 src/main/java/com/change_vision/astah/extension/plugin/mindmapplanner/EditionChecker.java diff --git a/pom.xml b/pom.xml index c3e6ecc..93e8104 100644 --- a/pom.xml +++ b/pom.xml @@ -2,17 +2,16 @@ - - /Applications/astah professional/astah professional.app/Contents/Resources/Java - com.change_vision.astah.extension.plugin.mindmap-planner com.change_vision.astah.extension.plugin.mindmapplanner true + 6.6.4 + pro 4.0.0 com.change_vision.astah.extension.plugin mindmap-planner - 1.0.1 + 1.0.2 bundle %bundle.name %bundle.description diff --git a/src/main/java/com/change_vision/astah/extension/plugin/mindmapplanner/Activator.java b/src/main/java/com/change_vision/astah/extension/plugin/mindmapplanner/Activator.java index e95efc1..1b18b63 100644 --- a/src/main/java/com/change_vision/astah/extension/plugin/mindmapplanner/Activator.java +++ b/src/main/java/com/change_vision/astah/extension/plugin/mindmapplanner/Activator.java @@ -10,7 +10,6 @@ import javax.xml.bind.JAXB; - import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; @@ -32,11 +31,6 @@ public class Activator implements BundleActivator { private AstahAPIHandler handler; public void start(BundleContext context) { - EditionChecker checker = new EditionChecker(); - if (checker.hasError()) { - return; - } - tracker = new ServiceTracker(context, IMessageDialogHandlerFactory.class.getName(), null); tracker.open(); diff --git a/src/main/java/com/change_vision/astah/extension/plugin/mindmapplanner/EditionChecker.java b/src/main/java/com/change_vision/astah/extension/plugin/mindmapplanner/EditionChecker.java deleted file mode 100644 index da90290..0000000 --- a/src/main/java/com/change_vision/astah/extension/plugin/mindmapplanner/EditionChecker.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.change_vision.astah.extension.plugin.mindmapplanner; - -import java.util.HashSet; -import java.util.Set; - -import javax.swing.JFrame; -import javax.swing.SwingUtilities; - - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.change_vision.astah.extension.plugin.mindmapplanner.view.AlertEditionDialog; - -public class EditionChecker { - private AstahAPIHandler handler = new AstahAPIHandler(); - private static final Set targetEditon = new HashSet(); - - static { - targetEditon.add("professional"); - targetEditon.add("uml"); - } - - private static final Logger logger = LoggerFactory.getLogger(EditionChecker.class); - - public boolean hasError() { - String edition = handler.getAstahEdition(); - if (targetEditon.contains(edition)) { - return false; - } - logger.info(edition); - showEndOfPeriodDialog(); - return true; - } - - private void showEndOfPeriodDialog() { - SwingUtilities.invokeLater(new Runnable() { - public void run() { - JFrame frame = handler.getMainFrame(); - AlertEditionDialog dialog = new AlertEditionDialog(frame); - dialog.setModal(true); - dialog.setVisible(true); - } - }); - } -} \ No newline at end of file