diff options
author | Eike Stepper | 2012-11-08 05:40:10 +0000 |
---|---|---|
committer | Eike Stepper | 2012-11-08 18:36:14 +0000 |
commit | 36a064c02556267eafbc4cb57ecb99533d553035 (patch) | |
tree | 214a3aaf73f2793456a2aee4e002a937ad4c3aec /plugins | |
parent | 7dcf3665836c5741c254eb85fc2b2199890ce7ab (diff) | |
download | cdo-36a064c02556267eafbc4cb57ecb99533d553035.tar.gz cdo-36a064c02556267eafbc4cb57ecb99533d553035.tar.xz cdo-36a064c02556267eafbc4cb57ecb99533d553035.zip |
Offline Example
Diffstat (limited to 'plugins')
3 files changed, 38 insertions, 10 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.client.offline/src/org/eclipse/emf/cdo/examples/client/offline/RepositoryDetails.java b/plugins/org.eclipse.emf.cdo.examples.client.offline/src/org/eclipse/emf/cdo/examples/client/offline/RepositoryDetails.java index c6fcad94c3..c64a51e248 100644 --- a/plugins/org.eclipse.emf.cdo.examples.client.offline/src/org/eclipse/emf/cdo/examples/client/offline/RepositoryDetails.java +++ b/plugins/org.eclipse.emf.cdo.examples.client.offline/src/org/eclipse/emf/cdo/examples/client/offline/RepositoryDetails.java @@ -94,13 +94,16 @@ public class RepositoryDetails extends Composite { public void notifyEvent(IEvent event) { - getDisplay().asyncExec(new Runnable() + if (!isDisposed()) { - public void run() + getDisplay().asyncExec(new Runnable() { - updateUI(); - } - }); + public void run() + { + updateUI(); + } + }); + } } }); } diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.client.offline/nodes/purgeDBs.ant b/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.client.offline/nodes/purgeDBs.ant new file mode 100644 index 0000000000..9fc2d61a0b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.client.offline/nodes/purgeDBs.ant @@ -0,0 +1,22 @@ +<?xml version="1.0"?> +<!-- + Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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 + http://www.eclipse.org/legal/epl-v10.html + + Contributors: + Eike Stepper - initial API and implementation +--> +<project name="purgeDBs" basedir="." default="main"> + + <target name="main"> + <delete includeemptydirs="true" verbose="true"> + <fileset dir="."> + <include name="*/db/**" /> + </fileset> + </delete> + </target> + +</project> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.client.offline/src/org/eclipse/emf/cdo/examples/client/offline/RepositoryDetails.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.client.offline/src/org/eclipse/emf/cdo/examples/client/offline/RepositoryDetails.java index c6fcad94c3..c64a51e248 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.client.offline/src/org/eclipse/emf/cdo/examples/client/offline/RepositoryDetails.java +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.client.offline/src/org/eclipse/emf/cdo/examples/client/offline/RepositoryDetails.java @@ -94,13 +94,16 @@ public class RepositoryDetails extends Composite { public void notifyEvent(IEvent event) { - getDisplay().asyncExec(new Runnable() + if (!isDisposed()) { - public void run() + getDisplay().asyncExec(new Runnable() { - updateUI(); - } - }); + public void run() + { + updateUI(); + } + }); + } } }); } |