Browse Source

Code update

main
Vítězslav Dvořák 2 months ago
parent
commit
79340955b5
  1. 1
      .gitignore
  2. 4
      manifest.mf
  3. 16
      pom.xml
  4. 9
      src/com/vitexsoftware/netbeans/modules/php/versionswitch/Bundle.properties
  5. 9
      src/com/vitexsoftware/netbeans/modules/php/versionswitch/Bundle_cs_CZ.properties
  6. 35
      src/com/vitexsoftware/netbeans/modules/php/versionswitch/Installer.java
  7. 9
      src/com/vitexsoftware/netbeans/modules/php/versionswitch/ToolbarSwitch.java
  8. 2
      src/main/nbm/manifest.mf

1
.gitignore

@ -1,2 +1,3 @@
/nbproject/private/
/build/
/target/

4
manifest.mf

@ -1,7 +1,7 @@
Manifest-Version: 1.0
AutoUpdate-Show-In-Client: true
OpenIDE-Module: com.vitexsoftware.netbeans.modules.php.versionswitch
OpenIDE-Module-Install: com/vitexsoftware/netbeans/modules/php/versionswitch/PHPSwitch.class
OpenIDE-Module-Install: com/vitexsoftware/netbeans/modules/php/versionswitch/Installer.class
OpenIDE-Module-Localizing-Bundle: com/vitexsoftware/netbeans/modules/php/versionswitch/Bundle.properties
OpenIDE-Module-Layer: com/vitexsoftware/netbeans/modules/php/versionswitch/layer.xml
OpenIDE-Module-Specification-Version: 1.12
OpenIDE-Module-Specification-Version: 1.12

16
pom.xml

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.vitexsoftware.netbeans.modules.php</groupId>
<artifactId>versionswitch</artifactId>
<version>0.1.1</version>
<version>0.1.2</version>
<packaging>nbm</packaging>
<name>PHP Version Switcher</name>
<url>https://github.com/VitexSoftware/netbeans-php-switcher</url>
@ -17,7 +17,7 @@
<scm>
<connection>scm:git:https://github.com/VitexSoftware/netbeans-php-switcher.git</connection>
<developerConnection>scm:git:https://github.com/VitexSoftware/netbeans-php-switcher.git</developerConnection>
<url>https://github.com/VitexSoftware/netbeans-php-switcher/tree/${project.scm.tag}</url>
<url>https://github.com/VitexSoftware/netbeans-php-switcher/</url>
<tag>master</tag>
</scm>
<licenses>
@ -30,7 +30,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<netbeans.api.version>RELEASE110</netbeans.api.version>
<!-- deploy: mvn -Dgpg.skip=false deploy -->
<gpg.skip>true</gpg.skip>
<!-- gpg.skip>true</gpg.skip -->
</properties>
<build>
<plugins>
@ -66,8 +66,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
@ -112,15 +112,11 @@
</repository>
</repositories>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</distributionManagement>
<dependencies>
<dependency>
<groupId>org.netbeans.api</groupId>

9
src/com/vitexsoftware/netbeans/modules/php/versionswitch/Bundle.properties

@ -1,7 +1,12 @@
OpenIDE-Module-Name=PHP version switch
OpenIDE-Module-Short-Description=Current version of PHP switcher
OpenIDE-Module-Short-Description=Current running version of PHP switcher
OpenIDE-Module-Display-Category=PHP
OpenIDE-Module-Long-Description=<img width="100" src="https://raw.githubusercontent.com/VitexSoftware/netbeans-php-switcher/main/project-logo.png"><br>Active PHP version switcher <a href="https://github.com/VitexSoftware/netbeans-php-tools ">netbeans-php-tools</a> by <a href="https://vitexsoftware.cz/">VitexSoftware</a> <br><img src="https://raw.githubusercontent.com/VitexSoftware/netbeans-php-switcher/main/screenshot.png">
OpenIDE-Module-Long-Description=\
<img width="100" src="https://raw.githubusercontent.com/VitexSoftware/netbeans-php-switcher/main/project-logo.png">\
<br>\
Active PHP version switcher <br>using <a href="https://github.com/VitexSoftware/php-tools">php-tools</a> by <a href="https://vitexsoftware.cz/">VitexSoftware</a>\
<br>\
<img src="https://raw.githubusercontent.com/VitexSoftware/netbeans-php-switcher/main/screenshot.png">
Services/AutoupdateType/com_vitexsoftware_phpswitch_update_center.instance=PHPSwitch
UpdateHandler.NewModules=false
CTL_ToolbarSwitch=Set PHP version

9
src/com/vitexsoftware/netbeans/modules/php/versionswitch/Bundle_cs_CZ.properties

@ -0,0 +1,9 @@
OpenIDE-Module-Name=P\u0159ep\u00edna\u010d verz\u00ed PHP
OpenIDE-Module-Short-Description=Rychl\u00e1 volba aktu\u00e1ln\u011b pou\u017e\u00edvan\u00e9 verze PHP
OpenIDE-Module-Display-Category=PHP
OpenIDE-Module-Long-Description=\
<img width="100" src="https://raw.githubusercontent.com/VitexSoftware/netbeans-php-switcher/main/project-logo.png">\n<br>\nP\u0159ep\u00edna\u010d pr\u00e1v\u011b aktivn\u00ed verze PHP. \n\
<BR> \nVyu\u017e\u00edv\u00e1 <a href="https://github.com/VitexSoftware/php-tools ">php-tools</a> od <a href="https://vitexsoftware.cz/">VitexSoftware</a> \n<br>\n<img src="https://raw.githubusercontent.com/VitexSoftware/netbeans-php-switcher/main/screenshot.png">
Services/AutoupdateType/com_vitexsoftware_phpswitch_update_center.instance=PHPSwitch
UpdateHandler.NewModules=false
CTL_ToolbarSwitch=Nastav PHP verzi

35
src/com/vitexsoftware/netbeans/modules/php/versionswitch/Installer.java

@ -0,0 +1,35 @@
/**
* PHPSwitch module Installer
*
* @author Vítězslav Dvořák <info@vitexsoftware.cz>
* @copyright 2021 Vitex@hippy.cz (G)
*/
package com.vitexsoftware.netbeans.modules.php.versionswitch;
import org.openide.modules.ModuleInstall;
import org.openide.util.Exceptions;
/**
*
* @author vitex
*/
public class Installer extends ModuleInstall {
private static final long serialVersionUID = 1L;
@Override
public void restored() {
}
@Override
public void close() {
try {
// if other exceptions are thrown when IDE is closed, the options may not be saved
// so sleep a bit
Thread.sleep(100);
} catch (InterruptedException ex) {
Exceptions.printStackTrace(ex);
}
}
}

9
src/com/vitexsoftware/netbeans/modules/php/versionswitch/ToolbarSwitch.java

@ -1,7 +1,8 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
/**
* PHPSwitch ToolbarButton class
*
* @author Vítězslav Dvořák <info@vitexsoftware.cz>
* @copyright 2021 Vitex@hippy.cz (G)
*/
package com.vitexsoftware.netbeans.modules.php.versionswitch;

2
src/main/nbm/manifest.mf

@ -1,5 +1,5 @@
Manifest-Version: 1.0
OpenIDE-Module-Install: com/vitexsoftware/netbeans/modules/php/versionswitch/Installer.class
OpenIDE-Module-Install: com/vitexsoftware/netbeans/modules/php/versionswitch/PHPSwitch.class
OpenIDE-Module-Layer: com/vitexsoftware/netbeans/modules/php/versionswitch/resources/layer.xml
OpenIDE-Module-Localizing-Bundle: com/vitexsoftware/netbeans/modules/php/versionswitch/Bundle.properties
OpenIDE-Module-Recommends: org.netbeans.modules.php.editor
Loading…
Cancel
Save