diff options
Diffstat (limited to 'bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/views/SleakView.java')
-rw-r--r-- | bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/views/SleakView.java | 42 |
1 files changed, 2 insertions, 40 deletions
diff --git a/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/views/SleakView.java b/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/views/SleakView.java index 12e4219757..3b614c4291 100644 --- a/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/views/SleakView.java +++ b/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/views/SleakView.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2009 IBM Corporation and others. + * Copyright (c) 2004, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -10,12 +10,9 @@ *******************************************************************************/ package org.eclipse.swt.tools.views; -import java.io.*; - import org.eclipse.swt.*; import org.eclipse.swt.tools.internal.*; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.ui.internal.UIPlugin; +import org.eclipse.swt.widgets.*; import org.eclipse.ui.part.*; /** @@ -63,40 +60,5 @@ public class SleakView extends ViewPart { public void setFocus() { parent.setFocus(); } - - private boolean extractOptions (String fileName) { - FileOutputStream os = null; - InputStream is = null; - File file = new File(fileName); - try { - if (!file.exists ()) { - is = Class.forName("org.eclipse.ui.internal.UIPlugin").getResourceAsStream ("/.options"); //$NON-NLS-1$ - if (is != null) { - int read; - byte [] buffer = new byte [4096]; - os = new FileOutputStream (fileName); - while ((read = is.read (buffer)) != -1) { - os.write(buffer, 0, read); - } - os.close (); - is.close (); - } - } - return true; - } catch (Throwable e) { - } finally { - try { - if (os != null) - os.close(); - } catch (IOException e1) { - } - try { - if (is != null) - is.close(); - } catch (IOException e1) { - } - } - return false; - } }
\ No newline at end of file |