Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2008-01-24 18:32:40 +0000
committerslewis2008-01-24 18:32:40 +0000
commitdfa46e6be813ff3a18de0023e677b354e2f70365 (patch)
tree1db8bcf6ed7cf65346fb284b470a220b6174965a /examples/bundles/org.eclipse.ecf.example.collab/src/org
parent2c147489d5a3ac51dc2d041b185fa43d313e301c (diff)
downloadorg.eclipse.ecf-dfa46e6be813ff3a18de0023e677b354e2f70365.tar.gz
org.eclipse.ecf-dfa46e6be813ff3a18de0023e677b354e2f70365.tar.xz
org.eclipse.ecf-dfa46e6be813ff3a18de0023e677b354e2f70365.zip
Added catches for NoClassDefFoundError for optional classes being loaded.
Diffstat (limited to 'examples/bundles/org.eclipse.ecf.example.collab/src/org')
-rw-r--r--examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/ChatComposite.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/ChatComposite.java b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/ChatComposite.java
index dc5efc5ea..09e138d15 100644
--- a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/ChatComposite.java
+++ b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/ChatComposite.java
@@ -255,6 +255,9 @@ public class ChatComposite extends Composite {
} catch (final Exception e) {
ClientPlugin.getDefault().getLog().log(new Status(IStatus.WARNING, ClientPlugin.PLUGIN_ID, IStatus.WARNING, "Source viewer not available. Hyperlinking will be disabled.", e));
return new StyledText(parent, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI | SWT.READ_ONLY);
+ } catch (final NoClassDefFoundError e) {
+ ClientPlugin.getDefault().getLog().log(new Status(IStatus.WARNING, ClientPlugin.PLUGIN_ID, IStatus.WARNING, "Source viewer not available. Hyperlinking will be disabled.", e));
+ return new StyledText(parent, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI | SWT.READ_ONLY);
}
}

Back to the top