Skip to content

Commit 231314e

Browse files
author
jantje
committed
getting wierd error trying to fix
1 parent 6654496 commit 231314e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

it.baeyens.arduino.core/src/it/baeyens/arduino/ui/Activator.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
*
4545
*/
4646
public class Activator implements BundleActivator {
47-
public URL pluginStartInitiator = null; // Initiator to start the plugin
48-
public Object mstatus; // status of the plugin
4947
protected String flagStart = 'F' + 's' + 'S' + 't' + 'a' + 't' + 'u' + Const.EMPTY_STRING;
5048
protected char[] uri = { 'h', 't', 't', 'p', ':', '/', '/', 'b', 'a', 'e', 'y', 'e', 'n', 's', '.', 'i', 't', '/',
5149
'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() {
137135
@Override
138136
protected IStatus run(IProgressMonitor monitor) {
139137
try {
138+
140139
IEclipsePreferences myScope = InstanceScope.INSTANCE.getNode(Const.NODE_ARDUINO);
141140
int curFsiStatus = myScope.getInt(Activator.this.flagStart, 0) + 1;
142141
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();
146144
} catch (Exception e) {
147145
// if this happens there is no real harm or functionality
148146
// lost
@@ -187,7 +185,6 @@ protected IStatus run(IProgressMonitor monitor) {
187185
*/
188186
@SuppressWarnings("boxing")
189187
private boolean DownloadFolderConditionsOK() {
190-
// TODO Auto-generated method stub
191188
Path installPath = ConfigurationPreferences.getInstallationPath();
192189
installPath.toFile().mkdirs();
193190
boolean cantWrite = !installPath.toFile().canWrite();

0 commit comments

Comments
 (0)