Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2008-05-21 04:24:09 +0000
committerrbrooks2008-05-21 04:24:09 +0000
commit4ebc7761278591c2f05e85f944756bb0228cecf0 (patch)
tree899f7a66363fcdad373ea859819dc8ff5d73c783 /org.eclipse.osee.framework.messaging.event.skynet
parent04813ef0462694beaccfd2f1fb31d8c03dbc7631 (diff)
downloadorg.eclipse.osee-4ebc7761278591c2f05e85f944756bb0228cecf0.tar.gz
org.eclipse.osee-4ebc7761278591c2f05e85f944756bb0228cecf0.tar.xz
org.eclipse.osee-4ebc7761278591c2f05e85f944756bb0228cecf0.zip
Diffstat (limited to 'org.eclipse.osee.framework.messaging.event.skynet')
-rw-r--r--org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/filter/BranchArtTypeFilter.java48
-rw-r--r--org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/filter/BranchFilter.java36
2 files changed, 0 insertions, 84 deletions
diff --git a/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/filter/BranchArtTypeFilter.java b/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/filter/BranchArtTypeFilter.java
deleted file mode 100644
index bec4bb2b342..00000000000
--- a/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/filter/BranchArtTypeFilter.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*******************************************************************************
- * 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.messaging.event.skynet.filter;
-
-import org.eclipse.osee.framework.messaging.event.skynet.ISkynetArtifactEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.ISkynetEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.ISkynetRelationLinkEvent;
-
-/**
- * @author Robert A. Fisher
- */
-public class BranchArtTypeFilter extends BranchFilter {
- private static final long serialVersionUID = 1951625401943195730L;
-
- private final int artTypeId;
-
- /**
- * @param branchId
- */
- public BranchArtTypeFilter(int branchId, int artTypeId) {
- super(branchId);
-
- this.artTypeId = artTypeId;
- }
-
- @Override
- public boolean accepts(ISkynetEvent event) {
- boolean accept = super.accepts(event);
-
- // If the event has artifact type information, then include it
- if (event instanceof ISkynetArtifactEvent) {
- accept &= ((ISkynetArtifactEvent) event).getArtTypeId() == artTypeId;
- } else if (event instanceof ISkynetRelationLinkEvent) {
- ISkynetRelationLinkEvent relEvent = (ISkynetRelationLinkEvent) event;
- accept &= relEvent.getArtATypeId() == artTypeId || relEvent.getArtBTypeId() == artTypeId;
- }
-
- return accept;
- }
-}
diff --git a/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/filter/BranchFilter.java b/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/filter/BranchFilter.java
deleted file mode 100644
index 50caa4af19e..00000000000
--- a/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/filter/BranchFilter.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * 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.messaging.event.skynet.filter;
-
-import org.eclipse.osee.framework.messaging.event.skynet.ISkynetEvent;
-
-/**
- * Filter Skynet events based on the branch they are associated with.
- *
- * @author Robert A. Fisher
- */
-public class BranchFilter implements IEventFilter {
- private static final long serialVersionUID = 6810368802224101971L;
-
- private final int branchId;
-
- /**
- * @param branchId
- */
- public BranchFilter(int branchId) {
- this.branchId = branchId;
- }
-
- public boolean accepts(ISkynetEvent event) {
- return event.getBranchId() == branchId;
- }
-
-}

Back to the top