Skip to content

Commit a29a88e

Browse files
committed
cleanup
1 parent 8f42c43 commit a29a88e

6 files changed

Lines changed: 10 additions & 19 deletions

File tree

.idea/runConfigurations/Mathematica_Plugin.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/META-INF/plugin.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181

8282
<projectTemplatesFactory implementation="de.halirutan.mathematica.module.MathematicaProjectTemplatesFactory"/>
8383

84-
8584
<!-- Highlighting and annotating of code, StructureView and documentation lookup-->
8685

8786
<lang.syntaxHighlighterFactory language="Mathematica"

src/de/halirutan/mathematica/codeinsight/inspections/bugs/UnsupportedVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import de.halirutan.mathematica.codeinsight.inspections.AbstractInspection;
3636
import de.halirutan.mathematica.codeinsight.inspections.MathematicaInspectionBundle;
3737
import de.halirutan.mathematica.filetypes.MathematicaFileType;
38-
import de.halirutan.mathematica.module.MathematicaLanguageLevel;
38+
import de.halirutan.mathematica.sdk.MathematicaLanguageLevel;
3939
import de.halirutan.mathematica.parsing.psi.MathematicaVisitor;
4040
import de.halirutan.mathematica.parsing.psi.api.Symbol;
4141
import de.halirutan.mathematica.sdk.MathematicaSdkType;

src/de/halirutan/mathematica/module/MathematicaLanguageLevelCombo.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,11 @@
2121
package de.halirutan.mathematica.module;
2222

2323
import com.intellij.openapi.project.Project;
24-
import com.intellij.openapi.projectRoots.JavaSdk;
25-
import com.intellij.openapi.projectRoots.JavaSdkVersion;
2624
import com.intellij.openapi.projectRoots.Sdk;
27-
import com.intellij.openapi.roots.LanguageLevelProjectExtension;
2825
import com.intellij.openapi.roots.ModifiableRootModel;
29-
import com.intellij.openapi.roots.ex.ProjectRootManagerEx;
3026
import com.intellij.openapi.ui.ComboBox;
3127
import com.intellij.ui.ColoredListCellRenderer;
32-
import com.intellij.ui.ColoredListCellRendererWrapper;
33-
import com.intellij.ui.SimpleTextAttributes;
34-
import de.halirutan.mathematica.MathematicaLanguage;
28+
import de.halirutan.mathematica.sdk.MathematicaLanguageLevel;
3529
import de.halirutan.mathematica.sdk.MathematicaSdkType;
3630
import org.jetbrains.annotations.NotNull;
3731

src/de/halirutan/mathematica/module/MathematicaModuleBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import com.intellij.openapi.vfs.VirtualFile;
3535
import de.halirutan.mathematica.MathematicaFileTemplateProvider;
3636
import de.halirutan.mathematica.MathematicaIcons;
37+
import de.halirutan.mathematica.sdk.MathematicaLanguageLevel;
3738
import de.halirutan.mathematica.sdk.MathematicaSdkType;
3839
import org.jetbrains.annotations.NotNull;
3940
import org.jetbrains.annotations.Nullable;
@@ -44,14 +45,14 @@
4445
/**
4546
* @author patrick (4/8/13)
4647
*/
47-
public class MathematicaModuleBuilder extends JavaModuleBuilder {
48+
class MathematicaModuleBuilder extends JavaModuleBuilder {
4849

4950
private final ProjectType myProjectType;
5051
/**
5152
* Additions by rsmenon (5/6/13) Will need some more reworking to implement checkboxes for Test/Documentation.
5253
*/
5354

54-
private String myProjectName;
55+
private String myProjectName = null;
5556

5657
public MathematicaLanguageLevel getLanguageLevel() {
5758
return myLanguageLevel;

src/de/halirutan/mathematica/module/MathematicaLanguageLevel.java renamed to src/de/halirutan/mathematica/sdk/MathematicaLanguageLevel.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,17 @@
1818
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1919
* THE SOFTWARE.
2020
*/
21-
package de.halirutan.mathematica.module;
21+
22+
package de.halirutan.mathematica.sdk;
2223

2324
import com.intellij.openapi.projectRoots.Sdk;
24-
import com.intellij.openapi.roots.LanguageLevelModuleExtension;
25-
import com.intellij.openapi.roots.LanguageLevelProjectExtension;
2625
import de.halirutan.mathematica.MathematicaBundle;
27-
import de.halirutan.mathematica.sdk.MathematicaSdkType;
2826
import org.jetbrains.annotations.Nls;
2927
import org.jetbrains.annotations.NotNull;
3028

3129
/**
32-
* @author dsl
33-
* @see LanguageLevelProjectExtension
34-
* @see LanguageLevelModuleExtension
30+
* Provides a way to represent the different versions of a Mathematica SDK
31+
* @author patrick (11/22/2016)
3532
*/
3633
@SuppressWarnings({"EnumeratedConstantNamingConvention", "WeakerAccess"})
3734
public enum MathematicaLanguageLevel {

0 commit comments

Comments
 (0)