/* * JBoss, Home of Professional Open Source. * * See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing. * * See the AUTHORS.txt file distributed with this work for a full listing of individual contributors. */ package org.teiid.designer.core.refactor; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.IPath; /** * This class provides an event data payload for resource refactor commands and actions. * * @since 8.0 */ public class RefactorResourceEvent { public static final int TYPE_UNKNOWN = -1; public static final int TYPE_RENAME = 0; public static final int TYPE_MOVE = 1; public static final int TYPE_DELETE = 2; private Object source; private IResource resource; private IPath originalPath; private int type = TYPE_UNKNOWN; /** * * @since 5.0 */ public RefactorResourceEvent(IResource theResource, int theType, Object theSource, IPath theOriginalPath) { super(); this.resource = theResource; this.type = theType; this.source = theSource; this.originalPath = theOriginalPath; } public int getType() { return this.type; } public Object getSource() { return this.source; } public IResource getResource() { return this.resource; } public IPath getOriginalPath() { return this.originalPath; } }