summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-02-27 09:58:56 (EST)
committerStefan Liebig2008-02-27 09:58:56 (EST)
commit1451c9bc7adb8952895a4da12d42c8ba31bc7fd1 (patch)
tree6e1bfdc049b284711956ed57f78aa8aadd2e9e28
parent3c3a2a7e3202e9eb09ea4944f545a03224aea153 (diff)
downloadorg.eclipse.riena-1451c9bc7adb8952895a4da12d42c8ba31bc7fd1.zip
org.eclipse.riena-1451c9bc7adb8952895a4da12d42c8ba31bc7fd1.tar.gz
org.eclipse.riena-1451c9bc7adb8952895a4da12d42c8ba31bc7fd1.tar.bz2
divided so that status can only be set from this plugins activator
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/RienaStartupStatus.java33
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/internal/core/RienaStartupStatusSetter.java30
2 files changed, 53 insertions, 10 deletions
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/RienaStartupStatus.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/RienaStartupStatus.java
index bc4f4cc..56a4b9b 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/RienaStartupStatus.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/RienaStartupStatus.java
@@ -1,19 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.core;
-public class RienaStartupStatus {
- private boolean started = true;
- private static RienaStartupStatus myself = new RienaStartupStatus();
+import org.eclipse.riena.internal.core.RienaStartupStatusSetter;
+public abstract class RienaStartupStatus {
+
+ private static RienaStartupStatus myself = new RienaStartupStatusSetter();
+
+ /**
+ * Get the riena startup status.<br>
+ * <code>true</code> indicates that the
+ * <code>org.eclipse.riena.core</code> plugin has been started.
+ *
+ * @return startup status
+ */
public static RienaStartupStatus getInstance() {
return myself;
}
- public boolean isStarted() {
- return started;
- }
-
- public void setStarted(boolean startedParm) {
- started = startedParm;
- }
+ public abstract boolean isStarted();
}
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/internal/core/RienaStartupStatusSetter.java b/org.eclipse.riena.core/src/org/eclipse/riena/internal/core/RienaStartupStatusSetter.java
new file mode 100644
index 0000000..ea9398a
--- /dev/null
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/internal/core/RienaStartupStatusSetter.java
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.riena.internal.core;
+
+import org.eclipse.riena.core.RienaStartupStatus;
+
+/**
+ *
+ */
+public class RienaStartupStatusSetter extends RienaStartupStatus {
+
+ private boolean started;
+
+ public boolean isStarted() {
+ return started;
+ }
+
+ void setStarted(boolean started) {
+ this.started = started;
+ }
+
+}