Skip to content

Commit 0abf83b

Browse files
committed
Update plugin configuration and messages
1 parent 9959c8f commit 0abf83b

File tree

6 files changed

+2456
-912
lines changed

6 files changed

+2456
-912
lines changed

swan_assist/build.gradle

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
2-
id 'org.jetbrains.intellij' version '0.4.8'
32
id 'java'
3+
id 'org.jetbrains.intellij' version '0.4.15'
44
}
55

66
group 'de.fraunhofer'
7-
version '1.1'
7+
version '1.3'
88

99
sourceCompatibility = 1.8
1010

@@ -15,10 +15,11 @@ repositories {
1515

1616
dependencies {
1717
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
18-
compile group:'de.upb.cs.swt', name: 'swan_core', version: '1.4.0'
18+
compile group:'de.upb.cs.swt', name: 'swan_core', version: '1.5.0'
1919
compile group: 'ca.mcgill.sable', name: 'soot', version: '3.3.0'
20-
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.5'
21-
compile group: 'org.slf4j', name: 'slf4j-simple', version : '1.7.5'
20+
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.29'
21+
compile group: 'org.slf4j', name:'slf4j-simple', version: '1.7.29'
22+
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
2223
}
2324

2425
intellij {
@@ -30,4 +31,8 @@ patchPluginXml {
3031
"<br>- suggest methods" +
3132
"<br>- filter list" +
3233
"<br>- import and export configuration file"
34+
}
35+
36+
runIde {
37+
jvmArgs '-Xmx1024m'
3338
}

swan_assist/src/main/resources/META-INF/plugin.xml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<idea-plugin>
22
<id>de.fraunhofer.iem.swan_assist</id>
3-
<name>SWAN_Assist</name>
3+
<name>SWAN-Assist</name>
44
<vendor email="support@iem.fraunhofer.de" url="https://www.iem.fraunhofer.de/">Fraunhofer IEM</vendor>
55

6-
<description> SWAN_Assist provides a GUI support for SWAN -a machine-learning approach for detection of
6+
<description>SWAN-Assist provides a GUI support for SWAN -a machine-learning approach for detection of
77
methods of interest for security in Java libraries. The user is able to interact with the learning
88
process by giving feedback on the methods of interest. The tool helps users that write static analyses
99
to create list of security methods for weakness detection for their specific Java libraries.
@@ -22,9 +22,7 @@
2222
<extensions defaultExtensionNs="com.intellij">
2323
<codeInsight.lineMarkerProvider language="JAVA"
2424
implementationClass="de.fraunhofer.iem.swan.assist.ui.markers.ErrorLineMarker"/>
25-
<toolWindow id="SWAN_Assist" anchor="right" factoryClass="de.fraunhofer.iem.swan.assist.ui.SummaryToolWindow" icon="PluginIcons.SWAN_ASSIST"/>
26-
<applicationService serviceInterface="de.fraunhofer.iem.swan.assist.ui.LoggerService"
27-
serviceImplementation="de.fraunhofer.iem.swan.assist.ui.impl.LoggerServiceImpl"/>
25+
<toolWindow id="SWAN-Assist" anchor="right" factoryClass="de.fraunhofer.iem.swan.assist.ui.SummaryToolWindow" icon="PluginIcons.SWAN_ASSIST"/>
2826
</extensions>
2927

3028
<actions>
@@ -56,9 +54,9 @@
5654
<separator/>
5755

5856
<action id="SWAN_Assist.LaunchSWANAction"
59-
class="de.fraunhofer.iem.swan.assist.actions.LaunchSwanAction"
57+
class="de.fraunhofer.iem.swan.assist.actions.RunSwanAnalysisAction"
6058
icon="PluginIcons.REFRESH_SWAN"
61-
text="Load or Reload SWAN">
59+
text="Run Analysis">
6260
</action>
6361

6462
<action id="SuggestAction" class="de.fraunhofer.iem.swan.assist.actions.suggest.SuggestAction" text="Suggest Methods"
@@ -112,9 +110,9 @@
112110
</action>
113111
<separator/>
114112
<action id="SWAN_Assist.Editor.LaunchSWANAction"
115-
class="de.fraunhofer.iem.swan.assist.actions.LaunchSwanAction"
113+
class="de.fraunhofer.iem.swan.assist.actions.RunSwanAnalysisAction"
116114
icon="PluginIcons.REFRESH_SWAN"
117-
text="Run/Rerun SWAN">
115+
text="Run Analysis">
118116
</action>
119117

120118
<separator/>
@@ -123,7 +121,6 @@
123121
class="de.fraunhofer.iem.swan.assist.actions.HelpAction"
124122
text="Help" description="Resources" icon="PluginIcons.HELP_ACTION">
125123
</action>
126-
127124
</group>
128125
</actions>
129126

swan_assist/src/main/resources/dialog_messages.properties

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ Launcher.Project = Project JAR(s)
1717
Launcher.AdvancedOptionsCheckBox = Advanced Options
1818
Launcher.Output = Output Path
1919
Launcher.TrainingJars = Training JARs
20-
Launcher.DefaultPath = Use training JARs from diretory
20+
Launcher.DefaultPath = Use training JARs from directory
21+
Launcher.Checkbox.ConfigurationFile= Use project configuration file
22+
Launcher.ConfigurationFile= Configuration File
2123

2224
#Notifications when running SWAN
23-
Messages.Title.RefreshStarted = Reloading SWAN
24-
Messages.Notification.RefreshStarted = SWAN refresh started
25-
Messages.Notification.Title.Completed = SWAN Rerun Completed
26-
Messages.Notification.Completed = SWAN execution completed
25+
Messages.Notification.Title.Completed = SWAN-Assist Analysis
26+
Messages.Notification.Completed = Analysis completed
2727
Messages.Notification.EmptyTree = Select a configuration file using the \"Import\" button
2828
Messages.Notification.NoFilterResults = No methods match the filters you've selected
29+
Messages.Title.Progress = Running SWAN-Assist Analysis
2930

3031
Status.ImportFile = Loading Configuration File
3132

@@ -35,7 +36,7 @@ Messages.Notification.SuggestStarted = Process to suggest methods started
3536
Messages.Title.Suggest.Completed = Methods Suggested
3637
Messages.Notification.Suggest.Completed = <a href='methods'>View methods</a> that were suggested
3738
Messages.Notification.Suggest.Link = methods
38-
Messages.Title.Suggest.NewTrainingFile = New SWAN Training File Created
39+
Messages.Title.Suggest.NewTrainingFile = New SWAN-Assist Training File Created
3940

4041
#FileChooser
4142
FileChooser.FileDescription = JSON files

swan_assist/src/main/resources/log4j.properties

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)