Skip to content

Commit 75886ec

Browse files
authored
Notification text update (#156)
* Notification text update (premium), analytics landing click event
1 parent 139f950 commit 75886ec

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

platform/src/main/resources/graphdb/messages/GraphBundle.properties

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
updater.title=Graph Database Support plugin updated to v{0}
2-
updater.notification=<b>New:</b> <br/>Now you can query TinkerPop Gremlin-enabled databases \
3-
like Cosmos DB, Neptune and JanusGraph using Cypher.<br/><br/>\
2+
updater.notification=New: querying TinkerPop Gremlin databases! <br/> \
3+
Check out the premium features of the plugin: <a href="https://technologies.neueda.com/plugin">here</a> <br/><br/>\
44
<b>Improvements:</b><br/>\
5-
- Gremlin support<br/>\
6-
- Faster startup when using a number of databases.<br/>\
5+
- Gremlin support <br/>\
6+
- Execute Cypher queries in databases like Cosmos DB, Neptune and JanusGraph <br/>\
7+
- Faster startup when using a number of databases <br/>\
78
- Graph metadata is refreshed in the background <br/>\
89
- DB connection testing is asynchronous <br/>\
910
- Improved UI <br/>\
1011
- More intuitive graph view zoom <br/><br/>\
1112
<b>Bugfixes:</b><br/>\
13+
- Fix for CREATE without RETURN in Cosmos DB<br/>\
1214
- Execute Query button in gutter<br/>\
1315
<br/>\
1416
<a href="https://github.com/neueda/jetbrains-plugin-graph-database-support">Github</a> | \

ui/jetbrains/src/main/java/com/neueda/jetbrains/plugin/graphdb/jetbrains/component/updater/PluginUpdateActivity.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
import com.intellij.openapi.project.DumbAware;
55
import com.intellij.openapi.project.Project;
66
import com.intellij.openapi.startup.StartupActivity;
7+
import com.neueda.jetbrains.plugin.graphdb.jetbrains.component.analytics.Analytics;
78
import com.neueda.jetbrains.plugin.graphdb.jetbrains.component.settings.SettingsComponent;
89
import com.neueda.jetbrains.plugin.graphdb.jetbrains.util.PluginUtil;
910
import com.neueda.jetbrains.plugin.graphdb.platform.GraphBundle;
1011
import com.neueda.jetbrains.plugin.graphdb.platform.GraphConstants;
1112
import org.jetbrains.annotations.NotNull;
1213

14+
import javax.swing.event.HyperlinkEvent;
15+
1316
public class PluginUpdateActivity implements StartupActivity, DumbAware {
1417

1518
private static final String NOTIFICATION_ID = "GraphDatabaseSupportUpdateNotification";
@@ -36,9 +39,22 @@ private void showNotification(Project project, String currentVersion) {
3639
GraphBundle.message("updater.title", currentVersion),
3740
GraphBundle.message("updater.notification"),
3841
NotificationType.INFORMATION,
39-
new NotificationListener.UrlOpeningListener(false)
42+
new UrlOpeningListenerWithAnalytics(false)
4043
);
4144
Notifications.Bus.notify(notification, project);
4245
}
4346

47+
static class UrlOpeningListenerWithAnalytics extends NotificationListener.UrlOpeningListener {
48+
49+
UrlOpeningListenerWithAnalytics(boolean expireNotification) {
50+
super(expireNotification);
51+
}
52+
53+
@Override
54+
protected void hyperlinkActivated(@NotNull Notification notification, @NotNull HyperlinkEvent event) {
55+
Analytics.event("landingPage", "landFromNotification");
56+
super.hyperlinkActivated(notification, event);
57+
}
58+
}
59+
4460
}

0 commit comments

Comments
 (0)