Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-07-24 04:02:08 -0400
committerrbrooks2010-07-24 04:02:08 -0400
commit4ed8bddc791fda93940f238c5135556a07041dc0 (patch)
tree64a118285c5006c3a38320dbb2d374e8ea72a061 /plugins/org.eclipse.osee.framework.lifecycle
parent542cc7344d3f129d64e47f547384297c8e1b1f43 (diff)
downloadorg.eclipse.osee-4ed8bddc791fda93940f238c5135556a07041dc0.tar.gz
org.eclipse.osee-4ed8bddc791fda93940f238c5135556a07041dc0.tar.xz
org.eclipse.osee-4ed8bddc791fda93940f238c5135556a07041dc0.zip
converted all line terminators to unix style
Diffstat (limited to 'plugins/org.eclipse.osee.framework.lifecycle')
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/.classpath14
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/.project56
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/build.properties8
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleOperation.java106
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecyclePoint.java110
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleVisitor.java102
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/IAccessCheckProvider.java16
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/ILifecycleService.java66
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/ILifecycleServiceProvider.java20
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleHandler.java38
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleOpHandler.java54
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleServiceImpl.java152
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/internal/Activator.java90
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/internal/OperationPointId.java64
14 files changed, 448 insertions, 448 deletions
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/.classpath b/plugins/org.eclipse.osee.framework.lifecycle/.classpath
index 8a8f1668cd..ad32c83a78 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/.classpath
+++ b/plugins/org.eclipse.osee.framework.lifecycle/.classpath
@@ -1,7 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/.project b/plugins/org.eclipse.osee.framework.lifecycle/.project
index c06605aee1..102f8238b0 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/.project
+++ b/plugins/org.eclipse.osee.framework.lifecycle/.project
@@ -1,28 +1,28 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.osee.framework.lifecycle</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.osee.framework.lifecycle</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/build.properties b/plugins/org.eclipse.osee.framework.lifecycle/build.properties
index 41eb6ade2b..34d2e4d2da 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/build.properties
+++ b/plugins/org.eclipse.osee.framework.lifecycle/build.properties
@@ -1,4 +1,4 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleOperation.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleOperation.java
index 7c775eac73..f74e45dc4a 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleOperation.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleOperation.java
@@ -1,53 +1,53 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.osee.framework.lifecycle;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.osee.framework.core.operation.AbstractOperation;
-import org.eclipse.osee.framework.lifecycle.internal.OperationPointId;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public abstract class AbstractLifecycleOperation extends AbstractOperation {
-
- private final ILifecycleService service;
- private final AbstractLifecyclePoint<?> lifecyclepoint;
-
- public AbstractLifecycleOperation(ILifecycleService service, AbstractLifecyclePoint<?> lifecyclePoint, String operationName, String pluginId) {
- super(operationName, pluginId);
- this.service = service;
- this.lifecyclepoint = lifecyclePoint;
- }
-
- @Override
- protected final void doWork(IProgressMonitor monitor) throws Exception {
- doPointWork(monitor, OperationPointId.CHECK_CONDITION_ID);
- doPointWork(monitor, OperationPointId.PRE_CONDITION_ID);
- try {
- doCoreWork(monitor);
- } finally {
- doPointWork(monitor, OperationPointId.POST_CONDITION_ID);
- }
- }
-
- private void doPointWork(IProgressMonitor monitor, OperationPointId pointId) throws Exception {
- IStatus status = service.dispatch(monitor, lifecyclepoint, pointId.name());
- setStatus(status);
- checkForErrorsOrCanceled(monitor);
- }
-
- abstract protected void doCoreWork(IProgressMonitor monitor) throws Exception;
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.osee.framework.lifecycle;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.osee.framework.core.operation.AbstractOperation;
+import org.eclipse.osee.framework.lifecycle.internal.OperationPointId;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public abstract class AbstractLifecycleOperation extends AbstractOperation {
+
+ private final ILifecycleService service;
+ private final AbstractLifecyclePoint<?> lifecyclepoint;
+
+ public AbstractLifecycleOperation(ILifecycleService service, AbstractLifecyclePoint<?> lifecyclePoint, String operationName, String pluginId) {
+ super(operationName, pluginId);
+ this.service = service;
+ this.lifecyclepoint = lifecyclePoint;
+ }
+
+ @Override
+ protected final void doWork(IProgressMonitor monitor) throws Exception {
+ doPointWork(monitor, OperationPointId.CHECK_CONDITION_ID);
+ doPointWork(monitor, OperationPointId.PRE_CONDITION_ID);
+ try {
+ doCoreWork(monitor);
+ } finally {
+ doPointWork(monitor, OperationPointId.POST_CONDITION_ID);
+ }
+ }
+
+ private void doPointWork(IProgressMonitor monitor, OperationPointId pointId) throws Exception {
+ IStatus status = service.dispatch(monitor, lifecyclepoint, pointId.name());
+ setStatus(status);
+ checkForErrorsOrCanceled(monitor);
+ }
+
+ abstract protected void doCoreWork(IProgressMonitor monitor) throws Exception;
+
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecyclePoint.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecyclePoint.java
index 243d273ec3..a52de34c36 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecyclePoint.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecyclePoint.java
@@ -1,55 +1,55 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.lifecycle;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.osee.framework.lifecycle.internal.OperationPointId;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public abstract class AbstractLifecyclePoint<H extends LifecycleOpHandler> extends AbstractLifecycleVisitor<H> {
-
- protected AbstractLifecyclePoint() {
- }
-
- /**
- * Should only be called by {@link ILifecycleService}.
- */
- @Override
- final protected IStatus dispatch(IProgressMonitor monitor, H handler, String sourceId) {
- initializeHandlerData(handler);
-
- IStatus status = Status.OK_STATUS;
- OperationPointId pointId = OperationPointId.toEnum(sourceId);
- switch (pointId) {
- case CHECK_CONDITION_ID:
- status = handler.onCheck(monitor);
- break;
- case PRE_CONDITION_ID:
- status = handler.onPreCondition(monitor);
- break;
- case POST_CONDITION_ID:
- status = handler.onPostCondition(monitor);
- break;
- case NOOP_ID:
- default:
- break;
- }
- return status;
- }
-
- protected abstract void initializeHandlerData(H handler);
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.lifecycle;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.osee.framework.lifecycle.internal.OperationPointId;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public abstract class AbstractLifecyclePoint<H extends LifecycleOpHandler> extends AbstractLifecycleVisitor<H> {
+
+ protected AbstractLifecyclePoint() {
+ }
+
+ /**
+ * Should only be called by {@link ILifecycleService}.
+ */
+ @Override
+ final protected IStatus dispatch(IProgressMonitor monitor, H handler, String sourceId) {
+ initializeHandlerData(handler);
+
+ IStatus status = Status.OK_STATUS;
+ OperationPointId pointId = OperationPointId.toEnum(sourceId);
+ switch (pointId) {
+ case CHECK_CONDITION_ID:
+ status = handler.onCheck(monitor);
+ break;
+ case PRE_CONDITION_ID:
+ status = handler.onPreCondition(monitor);
+ break;
+ case POST_CONDITION_ID:
+ status = handler.onPostCondition(monitor);
+ break;
+ case NOOP_ID:
+ default:
+ break;
+ }
+ return status;
+ }
+
+ protected abstract void initializeHandlerData(H handler);
+
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleVisitor.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleVisitor.java
index 6644cf8469..4a3c307922 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleVisitor.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleVisitor.java
@@ -1,51 +1,51 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.lifecycle;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public abstract class AbstractLifecycleVisitor<H extends LifecycleHandler> {
-
- public static class Type<H> {
- private static int nextHashCode;
- private final int index;
-
- public Type() {
- index = ++nextHashCode;
- }
-
- @Override
- public final int hashCode() {
- return index;
- }
-
- @Override
- public String toString() {
- return "Handler Type";
- }
- }
-
- protected AbstractLifecycleVisitor() {
- }
-
- public abstract Type<H> getAssociatedType();
-
- /**
- * Should only be called by {@link ILifecycleService}.
- */
- protected abstract IStatus dispatch(IProgressMonitor monitor, H handler, String sourceId);
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.lifecycle;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public abstract class AbstractLifecycleVisitor<H extends LifecycleHandler> {
+
+ public static class Type<H> {
+ private static int nextHashCode;
+ private final int index;
+
+ public Type() {
+ index = ++nextHashCode;
+ }
+
+ @Override
+ public final int hashCode() {
+ return index;
+ }
+
+ @Override
+ public String toString() {
+ return "Handler Type";
+ }
+ }
+
+ protected AbstractLifecycleVisitor() {
+ }
+
+ public abstract Type<H> getAssociatedType();
+
+ /**
+ * Should only be called by {@link ILifecycleService}.
+ */
+ protected abstract IStatus dispatch(IProgressMonitor monitor, H handler, String sourceId);
+
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/IAccessCheckProvider.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/IAccessCheckProvider.java
index ec036f70bb..a9090545dd 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/IAccessCheckProvider.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/IAccessCheckProvider.java
@@ -8,11 +8,11 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.lifecycle;
-
-import org.eclipse.osee.framework.core.model.IBasicArtifact;
-
-public interface IAccessCheckProvider {
- public boolean canEdit(IBasicArtifact<?> user, IBasicArtifact<?> artTcheck);
-
-}
+package org.eclipse.osee.framework.lifecycle;
+
+import org.eclipse.osee.framework.core.model.IBasicArtifact;
+
+public interface IAccessCheckProvider {
+ public boolean canEdit(IBasicArtifact<?> user, IBasicArtifact<?> artTcheck);
+
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/ILifecycleService.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/ILifecycleService.java
index 073742d539..591125b344 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/ILifecycleService.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/ILifecycleService.java
@@ -1,33 +1,33 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.lifecycle;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-
-public interface ILifecycleService {
-
- public <H extends LifecycleHandler> void addHandler(AbstractLifecycleVisitor.Type<H> type, final H handler) throws OseeCoreException;
-
- public <H extends LifecycleHandler> void removeHandler(AbstractLifecycleVisitor.Type<H> type, final H handler) throws OseeCoreException;
-
- public Collection<AbstractLifecycleVisitor.Type<?>> getHandlerTypes();
-
- public int getHandlerCount(AbstractLifecycleVisitor.Type<?> type);
-
- public <H extends LifecycleHandler> IStatus dispatch(IProgressMonitor monitor, AbstractLifecycleVisitor<H> accessPoint, String sourceId);
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.lifecycle;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+import java.util.Collection;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+
+public interface ILifecycleService {
+
+ public <H extends LifecycleHandler> void addHandler(AbstractLifecycleVisitor.Type<H> type, final H handler) throws OseeCoreException;
+
+ public <H extends LifecycleHandler> void removeHandler(AbstractLifecycleVisitor.Type<H> type, final H handler) throws OseeCoreException;
+
+ public Collection<AbstractLifecycleVisitor.Type<?>> getHandlerTypes();
+
+ public int getHandlerCount(AbstractLifecycleVisitor.Type<?> type);
+
+ public <H extends LifecycleHandler> IStatus dispatch(IProgressMonitor monitor, AbstractLifecycleVisitor<H> accessPoint, String sourceId);
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/ILifecycleServiceProvider.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/ILifecycleServiceProvider.java
index 0b9577e86b..48d1b357e1 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/ILifecycleServiceProvider.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/ILifecycleServiceProvider.java
@@ -8,13 +8,13 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.lifecycle;
-
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-
-/**
- * @author Jeff C. Phillips
- */
-public interface ILifecycleServiceProvider {
- public ILifecycleService getLifecycleServices() throws OseeCoreException;
-}
+package org.eclipse.osee.framework.lifecycle;
+
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+
+/**
+ * @author Jeff C. Phillips
+ */
+public interface ILifecycleServiceProvider {
+ public ILifecycleService getLifecycleServices() throws OseeCoreException;
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleHandler.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleHandler.java
index 26bdca45ad..13d893a560 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleHandler.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleHandler.java
@@ -1,19 +1,19 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.lifecycle;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public interface LifecycleHandler {
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.lifecycle;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public interface LifecycleHandler {
+
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleOpHandler.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleOpHandler.java
index dd153d8260..0d6b5a4a83 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleOpHandler.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleOpHandler.java
@@ -1,27 +1,27 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.lifecycle;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-
-public interface LifecycleOpHandler extends LifecycleHandler {
-
- IStatus onPreCondition(IProgressMonitor monitor);
-
- IStatus onPostCondition(IProgressMonitor monitor);
-
- IStatus onCheck(IProgressMonitor monitor);
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.lifecycle;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+
+public interface LifecycleOpHandler extends LifecycleHandler {
+
+ IStatus onPreCondition(IProgressMonitor monitor);
+
+ IStatus onPostCondition(IProgressMonitor monitor);
+
+ IStatus onCheck(IProgressMonitor monitor);
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleServiceImpl.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleServiceImpl.java
index eb3c291349..68f36e4b52 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleServiceImpl.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/LifecycleServiceImpl.java
@@ -1,76 +1,76 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.lifecycle;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-import java.util.ArrayList;
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.util.Conditions;
-import org.eclipse.osee.framework.jdk.core.type.HashCollection;
-
-public class LifecycleServiceImpl implements ILifecycleService {
-
- private final HashCollection<AbstractLifecycleVisitor.Type<?>, LifecycleHandler> handlersByType =
- new HashCollection<AbstractLifecycleVisitor.Type<?>, LifecycleHandler>();
- private final HashCollection<String, LifecycleHandler> handlersById = new HashCollection<String, LifecycleHandler>();
-
- public LifecycleServiceImpl() {
- }
-
- public Collection<AbstractLifecycleVisitor.Type<?>> getHandlerTypes() {
- return handlersByType.keySet();
- }
-
- @SuppressWarnings("unchecked")
- private <H> ArrayList<H> get(AbstractLifecycleVisitor.Type<H> type) {
- return (ArrayList<H>) handlersByType.getValues(type);
- }
-
- public <H extends LifecycleHandler> IStatus dispatch(IProgressMonitor monitor, AbstractLifecycleVisitor<H> visitor, String sourceId) {
- AbstractLifecycleVisitor.Type<H> type = visitor.getAssociatedType();
- IStatus status = null;
- Collection<H> handlers = get(type);
- if (handlers != null) {
- for (H handler : handlers) {
- status = visitor.dispatch(monitor, handler, sourceId);
- if (!status.isOK()) {
- break;
- }
- }
- }
- return status;
- }
-
- public int getHandlerCount(AbstractLifecycleVisitor.Type<?> type) {
- ArrayList<?> handlers = get(type);
- return handlers == null ? 0 : handlers.size();
- }
-
- public <H extends LifecycleHandler> void addHandler(AbstractLifecycleVisitor.Type<H> type, final H handler) throws OseeCoreException {
- Conditions.checkNotNull(type, "handler type");
- Conditions.checkNotNull(handler, "handler");
- handlersByType.put(type, handler);
-
- handlersById.put("", handler);
- }
-
- public <H extends LifecycleHandler> void removeHandler(AbstractLifecycleVisitor.Type<H> type, final H handler) throws OseeCoreException {
- Conditions.checkNotNull(type, "handler type");
- Conditions.checkNotNull(handler, "handler");
- handlersByType.removeValue(type, handler);
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.lifecycle;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+import java.util.ArrayList;
+import java.util.Collection;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.util.Conditions;
+import org.eclipse.osee.framework.jdk.core.type.HashCollection;
+
+public class LifecycleServiceImpl implements ILifecycleService {
+
+ private final HashCollection<AbstractLifecycleVisitor.Type<?>, LifecycleHandler> handlersByType =
+ new HashCollection<AbstractLifecycleVisitor.Type<?>, LifecycleHandler>();
+ private final HashCollection<String, LifecycleHandler> handlersById = new HashCollection<String, LifecycleHandler>();
+
+ public LifecycleServiceImpl() {
+ }
+
+ public Collection<AbstractLifecycleVisitor.Type<?>> getHandlerTypes() {
+ return handlersByType.keySet();
+ }
+
+ @SuppressWarnings("unchecked")
+ private <H> ArrayList<H> get(AbstractLifecycleVisitor.Type<H> type) {
+ return (ArrayList<H>) handlersByType.getValues(type);
+ }
+
+ public <H extends LifecycleHandler> IStatus dispatch(IProgressMonitor monitor, AbstractLifecycleVisitor<H> visitor, String sourceId) {
+ AbstractLifecycleVisitor.Type<H> type = visitor.getAssociatedType();
+ IStatus status = null;
+ Collection<H> handlers = get(type);
+ if (handlers != null) {
+ for (H handler : handlers) {
+ status = visitor.dispatch(monitor, handler, sourceId);
+ if (!status.isOK()) {
+ break;
+ }
+ }
+ }
+ return status;
+ }
+
+ public int getHandlerCount(AbstractLifecycleVisitor.Type<?> type) {
+ ArrayList<?> handlers = get(type);
+ return handlers == null ? 0 : handlers.size();
+ }
+
+ public <H extends LifecycleHandler> void addHandler(AbstractLifecycleVisitor.Type<H> type, final H handler) throws OseeCoreException {
+ Conditions.checkNotNull(type, "handler type");
+ Conditions.checkNotNull(handler, "handler");
+ handlersByType.put(type, handler);
+
+ handlersById.put("", handler);
+ }
+
+ public <H extends LifecycleHandler> void removeHandler(AbstractLifecycleVisitor.Type<H> type, final H handler) throws OseeCoreException {
+ Conditions.checkNotNull(type, "handler type");
+ Conditions.checkNotNull(handler, "handler");
+ handlersByType.removeValue(type, handler);
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/internal/Activator.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/internal/Activator.java
index 89c21b0f09..7dcd4b583b 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/internal/Activator.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/internal/Activator.java
@@ -1,45 +1,45 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.lifecycle.internal;
-
-import org.eclipse.osee.framework.lifecycle.ILifecycleService;
-import org.eclipse.osee.framework.lifecycle.LifecycleServiceImpl;
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public class Activator implements BundleActivator {
- public static final String PLUGIN_ID = "org.eclipse.osee.framework.lifecycle";
- private ServiceRegistration service;
-
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- service = context.registerService(ILifecycleService.class.getName(), new LifecycleServiceImpl(), null);
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- service.unregister();
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.lifecycle.internal;
+
+import org.eclipse.osee.framework.lifecycle.ILifecycleService;
+import org.eclipse.osee.framework.lifecycle.LifecycleServiceImpl;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public class Activator implements BundleActivator {
+ public static final String PLUGIN_ID = "org.eclipse.osee.framework.lifecycle";
+ private ServiceRegistration service;
+
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ service = context.registerService(ILifecycleService.class.getName(), new LifecycleServiceImpl(), null);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ service.unregister();
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/internal/OperationPointId.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/internal/OperationPointId.java
index 8048f63436..1a2d23e5f2 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/internal/OperationPointId.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/internal/OperationPointId.java
@@ -1,33 +1,33 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.lifecycle.internal;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public enum OperationPointId {
- NOOP_ID,
- PRE_CONDITION_ID,
- POST_CONDITION_ID,
- CHECK_CONDITION_ID;
-
- public static OperationPointId toEnum(String sourceId) {
- OperationPointId toReturn = OperationPointId.NOOP_ID;
- for (OperationPointId pointId : OperationPointId.values()) {
- if (pointId.name().equalsIgnoreCase(sourceId)) {
- toReturn = pointId;
- break;
- }
- }
- return toReturn;
- }
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.lifecycle.internal;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public enum OperationPointId {
+ NOOP_ID,
+ PRE_CONDITION_ID,
+ POST_CONDITION_ID,
+ CHECK_CONDITION_ID;
+
+ public static OperationPointId toEnum(String sourceId) {
+ OperationPointId toReturn = OperationPointId.NOOP_ID;
+ for (OperationPointId pointId : OperationPointId.values()) {
+ if (pointId.name().equalsIgnoreCase(sourceId)) {
+ toReturn = pointId;
+ break;
+ }
+ }
+ return toReturn;
+ }
} \ No newline at end of file

Back to the top