From: jsurfer Date: Tue, 5 Oct 2004 18:31:40 +0000 (+0000) Subject: fixed bug #1038071 X-Git-Url: http://git.phpeclipse.com fixed bug #1038071 --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPEditor.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPEditor.java index 6c521d6..01a510c 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPEditor.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPEditor.java @@ -2745,7 +2745,12 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I if (value instanceof Integer) { sourceViewer.getTextWidget().setTabs(((Integer) value).intValue()); } else if (value instanceof String) { - sourceViewer.getTextWidget().setTabs(Integer.parseInt((String) value)); + try { + sourceViewer.getTextWidget().setTabs(Integer.parseInt((String) value)); + } catch (NumberFormatException e){ + // bug #1038071 - set default tab: + sourceViewer.getTextWidget().setTabs(80); + } } return; }