Skip to content

Commit 0673eb6

Browse files
author
psk
committed
2 parents 240888a + 3f76888 commit 0673eb6

File tree

376 files changed

+7981
-3961
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

376 files changed

+7981
-3961
lines changed

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,24 @@ local.properties
123123

124124
# JDT-specific (Eclipse Java Development Tools)
125125
.classpath
126+
127+
### Gradle ###
128+
.gradle
129+
build/
130+
131+
# Ignore Gradle GUI config
132+
gradle-app.setting
133+
134+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
135+
!gradle-wrapper.jar
136+
137+
# Cache of project
138+
.gradletasknamecache
139+
140+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
141+
# gradle/wrapper/gradle-wrapper.properties
142+
143+
### Gradle Patch ###
144+
**/build/
145+
126146
# End of https://www.gitignore.io/api/java,maven,intellij

swan_assist/README.md

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,37 @@ Moreover, users can manually inspect the proper usage of the methods detected by
1515

1616
## Setting Up the Plugin
1717

18-
Import the project using either of the following methods:
19-
##### Cloning Project from the Repository
20-
1) Select the *File>Project from Version Control>Git* option, enter the repository’s URL and then select *Clone* to import the project.
21-
2) Go to *File>Project Structure* to edit the project settings.
22-
3) For the project's SDK, select the *IntelliJ IDEA IU-** option.
23-
4) Select *Modules* from the left panel and use the *Add* button to add a new project module. In the window that appears, select *IntelliJ Platform Plugin* from the left panel and select *OK*. Select a name for the module and ensure that the *Content Root* and *Module File Location* point to the project's root folder and select *Finish*. If a default module was generated while importing the project, you can remove it.
24-
5) Select Libraries from the left panel, select the *Add* button and select Java. Select the ``/libs`` folder in the window that appears and select *Open*.
25-
26-
##### Downloading and Importing Project
27-
1) Download the project from Github and then use the *File>Project from Existing Resources* from the menu to import the project. Select the downloaded project's root folder and select *Open*.
28-
2) Select the option to *Create Project from existing sources* and then proceed.
29-
3) At the step to select the project's source files, deselect the ``test-project/src`` entry, if it was automatically selected. The project libraries will be automatically detected and a module will also be created.
30-
4) Validate that the project was imported correctly and the module was correctly created. If there are issues, follow the steps in step 2 in the above section.
18+
The project can be downloaded using any of the methods below. the project using either of the following methods:
19+
##### Method 1: Cloning Project
20+
1) Select the **File>Project from Version Control>Git** option, enter the repository’s URL and then select **Clone** to import the project.
21+
2) Go to **File>Project Structure** to edit the project settings.
22+
3) For **Project SDK**, select the most recent Java SDK version.
23+
4) Select **Modules** from the left panel/
24+
1) Click the **Add** button and then **Import Module**.
25+
2) In the window that appears, open the ``/swan_assist`` directory of the project.
26+
27+
##### Method 2: Downloading Project
28+
1) Download the project from Github and then use the **File>Project from Existing Resources** from the menu to import the project.
29+
2) Select the ``/swan_assist`` directory in the downloaded project's root folder and select **Open**.
30+
31+
##### Importing Project Module
32+
After following the steps of either Method 1 or 2, the **Import Module** dialog will appear. Follow the steps below to setup the project module.
33+
1) Select **Import module from external module** and then the **Gradle** option.
34+
2) Select the **Use auto-import** option.
35+
3) If the correct Gradle JVM isn’t selected, you can change it.
36+
37+
The module should then be built.
38+
3139

3240
## Running the Plugin
33-
To run the plugin, select the *Run Configuration* drop down menu and select *Edit Configurations*. Ensure that the module that was created previously is selected and press Ok. You should now be able to run the project.
41+
To run the plugin:
3442

35-
A separate instance of IntelliJ will be launched. Use the open option to select the project found in ``/example-project`` directory. You may need to setup a project SDK for the project if one isn’t automatically configured. You should then be able to run the test project.
43+
1) Select the **Run Configuration** drop down menu and select **Edit Configurations** or from the **Run** menu select **Edit Configurations**.
44+
2) Click the **Add** button and select **Gradle**.
45+
3) Select the **swan_assist** Gradle module that was just created and enter ``:runIde`` as the value for **Tasks** - this tasks will run the plugin in a new instance of IntelliJ.
46+
4) When the new instance of IntelliJ launches, use the open option to select the project found in ``/test-project`` directory. You may need to set a project SDK, if one isn’t automatically configured.
3647

3748
Logs for the plugin will appear in the initial instance of IntelliJ.
3849

39-
## Building the Plugin
40-
To build the plugin, select the "Prepare Plugin Module '...' For Deployment" option from the Build menu. This will generate the a zip file that contains the plugin's jars and resources in the project's root directory.
4150

42-
## Installing the Plugin
43-
To install the plugin, go Preferences and select "Plugins" from the sidebar. Select the "Install Plugin from disk" button, locate the plugin file and select it. You will need to restart IntelliJ for the plugin to work.
4451

swan_assist/build.gradle

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
plugins {
2+
id 'java'
3+
id 'org.jetbrains.intellij' version '0.4.8'
4+
}
5+
6+
group 'de.fraunhofer'
7+
version '1.0-SNAPSHOT'
8+
9+
sourceCompatibility = 1.8
10+
11+
repositories {
12+
mavenCentral()
13+
mavenLocal()
14+
}
15+
16+
dependencies {
17+
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
18+
compile group:'de.upb.cs.swt', name: 'swan_core', version: '1.2.1'
19+
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'
22+
testCompile group: 'junit', name: 'junit', version: '4.12'
23+
}
24+
25+
intellij {
26+
version '2018.3.6'
27+
}
28+
patchPluginXml {
29+
changeNotes """
30+
Add change notes here.<br>
31+
<em>most HTML tags may be used</em>"""
32+
}

swan_assist/example-project/src/de/fraunhofer/iem/swan/example/ExampleSQLiOpenRedirect.java

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

swan_assist/example-project/src/de/fraunhofer/iem/swan/example/api/TravelWishlist.java

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

swan_assist/example-project/src/de/fraunhofer/iem/swan/example/api/comm/EmailClient.java

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

swan_assist/example-project/src/de/fraunhofer/iem/swan/example/api/data/Customer.java

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

swan_assist/example-project/src/de/fraunhofer/iem/swan/example/api/data/TravelOffer.java

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

swan_assist/example-project/src/de/fraunhofer/iem/swan/example/api/util/UserManagement.java

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

swan_assist/example-project/travellistmethods.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)