Skip to content

Commit

Permalink
Removed Plugin-Self-Patching leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
pbi-qfs committed Aug 15, 2017
1 parent b260dcb commit 2adab09
Showing 1 changed file with 0 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,12 @@

package org.sf.feeling.decompiler.update;

import java.io.File;

import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleException;
import org.sf.feeling.decompiler.JavaDecompilerPlugin;
import org.sf.feeling.decompiler.util.Logger;
import org.sf.feeling.decompiler.util.ReflectionUtils;

/**
* The activator class controls the plug-in life cycle
Expand All @@ -38,7 +32,6 @@ public class DecompilerUpdatePlugin extends AbstractUIPlugin implements IPropert

private IPreferenceStore preferenceStore;

private File patchFile;

/**
* The constructor
Expand Down Expand Up @@ -81,26 +74,6 @@ public IPreferenceStore getPreferenceStore( )
public void stop( BundleContext context ) throws Exception
{
getPreferenceStore( ).removePropertyChangeListener( this );
if ( patchFile != null )
{
try
{
Bundle bundle = (Bundle) ReflectionUtils.invokeMethod( context, "getBundle", new Class[]{ //$NON-NLS-1$
String.class
}, new Object[]{
patchFile.toURI( ).toString( )
} );
if ( bundle == null )
{
return;
}
bundle.uninstall( );
}
catch ( BundleException e )
{
Logger.debug( e );
}
}
plugin = null;
super.stop( context );
}
Expand All @@ -120,14 +93,4 @@ public void propertyChange( PropertyChangeEvent event )
{

}

public File getPatchFile( )
{
return patchFile;
}

public void setPatchFile( File patchFile )
{
this.patchFile = patchFile;
}
}

0 comments on commit 2adab09

Please sign in to comment.