diff options
Diffstat (limited to 'bundles/org.eclipse.wst.sse.core/src-contentproperties/org/eclipse/wst/sse/internal/contentproperties/AbstractContentSettingsHandler.java')
-rw-r--r-- | bundles/org.eclipse.wst.sse.core/src-contentproperties/org/eclipse/wst/sse/internal/contentproperties/AbstractContentSettingsHandler.java | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/bundles/org.eclipse.wst.sse.core/src-contentproperties/org/eclipse/wst/sse/internal/contentproperties/AbstractContentSettingsHandler.java b/bundles/org.eclipse.wst.sse.core/src-contentproperties/org/eclipse/wst/sse/internal/contentproperties/AbstractContentSettingsHandler.java deleted file mode 100644 index e94bfa286f..0000000000 --- a/bundles/org.eclipse.wst.sse.core/src-contentproperties/org/eclipse/wst/sse/internal/contentproperties/AbstractContentSettingsHandler.java +++ /dev/null @@ -1,83 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation 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: - * IBM Corporation - initial API and implementation - * Jens Lukowski/Innoopract - initial renaming/restructuring - * - *******************************************************************************/ -package org.eclipse.wst.sse.internal.contentproperties; - -import org.eclipse.core.resources.IResourceDelta; - -/** - * @deprecated This is package protected so no one cares anyways. - */ -abstract class AbstractContentSettingsHandler implements IContentSettingsHandler { - - - private IContentSettings contentSettings = ContentSettingsCreator.create(); - private IResourceDelta fDelta; - - private void commonWithRespectToKind() { - getContentSettings().releaseCache(); - } - - protected final IContentSettings getContentSettings() { - return contentSettings; - } - - protected final IResourceDelta getDelta() { - return fDelta; - } - - - /* - * @see IContentSettingsHandler#handle(IResourceDelta) - */ - public void handle(final IResourceDelta delta) { - this.fDelta = delta; - // get Resource delta kind - final int kind = delta.getKind(); - // never used!? - //IResource resource = delta.getResource(); - - - switch (kind) { - case IResourceDelta.CHANGED : { - handleChanged(); - } - break; - case IResourceDelta.REMOVED : { - handleRemoved(); - } - break; - case IResourceDelta.ADDED : { - handleAdded(); - } - break; - - - } - - - - } - - protected void handleAdded() { - commonWithRespectToKind(); - } - - protected void handleChanged() { - commonWithRespectToKind(); - } - - protected void handleRemoved() { - commonWithRespectToKind(); - } - -} |