From ce0877a8b2680199d56dcd74e5159ecbfdcabba2 Mon Sep 17 00:00:00 2001 From: rbrooks Date: Tue, 14 Sep 2010 16:28:08 -0700 Subject: refactor: Remove unnecessary exception OseeTrackedChangesException --- .../attribute/OseeTrackedChangesException.java | 23 ---------------------- .../skynet/core/attribute/WordAttribute.java | 4 ++-- 2 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeTrackedChangesException.java (limited to 'plugins') diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeTrackedChangesException.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeTrackedChangesException.java deleted file mode 100644 index 6b57167b99f..00000000000 --- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeTrackedChangesException.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.skynet.core.attribute; - -import org.eclipse.osee.framework.core.exception.OseeArgumentException; - -public class OseeTrackedChangesException extends OseeArgumentException { - - private static final long serialVersionUID = -4953741614901835086L; - - public OseeTrackedChangesException(String message) { - super(message); - } - -} diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/WordAttribute.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/WordAttribute.java index dcabcd8cf67..bed894200c7 100644 --- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/WordAttribute.java +++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/WordAttribute.java @@ -51,9 +51,9 @@ public class WordAttribute extends StringAttribute { "This document contains track changes and cannot be saved with them. Do you want OSEE to remove them?" + "\n\nNote:You will need to reopen this artifact in OSEE to see the final result.")) { returnValue = WordAnnotationHandler.removeAnnotations(value); } else { - throw new OseeTrackedChangesException(String.format( + throw new OseeCoreException( "Artifact %s (%s), Branch %s (%s) contains track changes. Please remove them and save again.", - art.getName(), art.getArtId(), branch.getName(), branch.getId())); + art.getName(), art.getArtId(), branch.getName(), branch.getId()); } } catch (CoreException ex) { OseeExceptions.wrapAndThrow(ex); -- cgit v1.2.3