Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-11-08 05:40:10 +0000
committerEike Stepper2012-11-08 18:36:14 +0000
commit36a064c02556267eafbc4cb57ecb99533d553035 (patch)
tree214a3aaf73f2793456a2aee4e002a937ad4c3aec /plugins
parent7dcf3665836c5741c254eb85fc2b2199890ce7ab (diff)
downloadcdo-36a064c02556267eafbc4cb57ecb99533d553035.tar.gz
cdo-36a064c02556267eafbc4cb57ecb99533d553035.tar.xz
cdo-36a064c02556267eafbc4cb57ecb99533d553035.zip
Offline Example
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.client.offline/src/org/eclipse/emf/cdo/examples/client/offline/RepositoryDetails.java13
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.client.offline/nodes/purgeDBs.ant22
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.client.offline/src/org/eclipse/emf/cdo/examples/client/offline/RepositoryDetails.java13
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();
+ }
+ });
+ }
}
});
}

Back to the top