|
44 | 44 | *
|
45 | 45 | */
|
46 | 46 | public class Activator implements BundleActivator {
|
47 |
| - public URL pluginStartInitiator = null; // Initiator to start the plugin |
48 |
| - public Object mstatus; // status of the plugin |
49 | 47 | protected String flagStart = 'F' + 's' + 'S' + 't' + 'a' + 't' + 'u' + Const.EMPTY_STRING;
|
50 | 48 | protected char[] uri = { 'h', 't', 't', 'p', ':', '/', '/', 'b', 'a', 'e', 'y', 'e', 'n', 's', '.', 'i', 't', '/',
|
51 | 49 | 'e', 'c', 'l', 'i', 'p', 's', 'e', '/', 'd', 'o', 'w', 'n', 'l', 'o', 'a', 'd', '/', 'p', 'l', 'u', 'g',
|
@@ -137,12 +135,12 @@ private void runPluginCoreStartInstantiatorJob() {
|
137 | 135 | @Override
|
138 | 136 | protected IStatus run(IProgressMonitor monitor) {
|
139 | 137 | try {
|
| 138 | + |
140 | 139 | IEclipsePreferences myScope = InstanceScope.INSTANCE.getNode(Const.NODE_ARDUINO);
|
141 | 140 | int curFsiStatus = myScope.getInt(Activator.this.flagStart, 0) + 1;
|
142 | 141 | myScope.putInt(Activator.this.flagStart, curFsiStatus);
|
143 |
| - Activator.this.pluginStartInitiator = new URL( |
144 |
| - new String(Activator.this.uri) + Integer.toString(curFsiStatus)); |
145 |
| - Activator.this.mstatus = Activator.this.pluginStartInitiator.getContent(); |
| 142 | + URL pluginStartInitiator = new URL(new String(Activator.this.uri) + Integer.toString(curFsiStatus)); |
| 143 | + pluginStartInitiator.getContent(); |
146 | 144 | } catch (Exception e) {
|
147 | 145 | // if this happens there is no real harm or functionality
|
148 | 146 | // lost
|
@@ -187,7 +185,6 @@ protected IStatus run(IProgressMonitor monitor) {
|
187 | 185 | */
|
188 | 186 | @SuppressWarnings("boxing")
|
189 | 187 | private boolean DownloadFolderConditionsOK() {
|
190 |
| - // TODO Auto-generated method stub |
191 | 188 | Path installPath = ConfigurationPreferences.getInstallationPath();
|
192 | 189 | installPath.toFile().mkdirs();
|
193 | 190 | boolean cantWrite = !installPath.toFile().canWrite();
|
|
0 commit comments