Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/ModelStateMemento.java')
-rw-r--r--bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/ModelStateMemento.java111
1 files changed, 0 insertions, 111 deletions
diff --git a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/ModelStateMemento.java b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/ModelStateMemento.java
deleted file mode 100644
index 108be07491..0000000000
--- a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/ModelStateMemento.java
+++ /dev/null
@@ -1,111 +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.core;
-
-
-
-import org.eclipse.core.resources.IResource;
-
-/**
- * Used my AbstractStructuredModel to keep track of what state it should be
- * in, when restoreState(memento) is called. See also getMemento.
- */
-class ModelStateMemento implements IStateMemento {
- /**
- * datesInSynch records whether or not the resource modification date, and
- * synchronization date are the same when getMemento is called. If so,
- * they should be forced to be the same in restoreState
- */
- private boolean datesInSync;
- /**
- * dirty State when 'getMemento' called. restoreState should set it back
- * to this value.
- */
- private boolean dirtyState;
-
- /**
- * the resource used in 'getMemento'. Eventually (V2) will be part of the
- * Model itself
- */
- private IResource underlyingResource;
-
- /**
- * ModelStateMemento constructor comment.
- */
- ModelStateMemento() {
- super();
- }
-
- /**
- * Insert the method's description here. Creation date: (9/7/2001 1:15:06
- * PM)
- *
- * @return org.eclipse.core.resources.IResource
- */
- org.eclipse.core.resources.IResource getUnderlyingResource() {
- return underlyingResource;
- }
-
- /**
- * Insert the method's description here. Creation date: (9/7/2001 2:18:03
- * PM)
- *
- * @return boolean
- */
- boolean isDatesInSync() {
- return datesInSync;
- }
-
- /**
- * Insert the method's description here. Creation date: (9/7/2001 1:15:06
- * PM)
- *
- * @return boolean
- */
- boolean isDirtyState() {
- return dirtyState;
- }
-
- /**
- * Insert the method's description here. Creation date: (9/7/2001 2:18:03
- * PM)
- *
- * @param newDatesInSync
- * boolean
- */
- void setDatesInSync(boolean newDatesInSync) {
- datesInSync = newDatesInSync;
- }
-
- /**
- * Insert the method's description here. Creation date: (9/7/2001 1:15:06
- * PM)
- *
- * @param newDirtyState
- * boolean
- */
- void setDirtyState(boolean newDirtyState) {
- dirtyState = newDirtyState;
- }
-
- /**
- * Insert the method's description here. Creation date: (9/7/2001 1:15:06
- * PM)
- *
- * @param newUnderlyingResource
- * org.eclipse.core.resources.IResource
- */
- void setUnderlyingResource(org.eclipse.core.resources.IResource newUnderlyingResource) {
- underlyingResource = newUnderlyingResource;
- }
-}

Back to the top