diff options
Diffstat (limited to 'core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CDescriptorEvent.java')
-rw-r--r-- | core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CDescriptorEvent.java | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CDescriptorEvent.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CDescriptorEvent.java deleted file mode 100644 index fd1d21a7638..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CDescriptorEvent.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 QNX Software Systems and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation - *******************************************************************************/ -package org.eclipse.cdt.core; - -import java.util.EventObject; - -public class CDescriptorEvent extends EventObject { - - public static final int CDTPROJECT_CHANGED = 1; - public static final int CDTPROJECT_ADDED = 2; - public static final int CDTPROJECT_REMOVED = 3; - - public static final int OWNER_CHANGED = 0x10; - public static final int EXTENSION_CHANGED = 0x20; - - private static final int FLAGS_MASK = 0xf; - - int fType; - - public CDescriptorEvent(ICDescriptor descriptor, int type, int flags) { - super(descriptor); - fType = type | flags; - } - - public ICDescriptor getDescriptor() { - return (ICDescriptor) getSource(); - } - - public int getType() { - return fType & FLAGS_MASK; - } - - public int getFlags() { - return fType & ~FLAGS_MASK; - } - - public String toString() { - StringBuffer buf = new StringBuffer(); - switch (getType()) { - case CDTPROJECT_ADDED : - buf.append("CDTPROJECT_ADDED"); //$NON-NLS-1$ - break; - case CDTPROJECT_REMOVED : - buf.append("CDTPROJECT_REMOVED"); //$NON-NLS-1$ - break; - case CDTPROJECT_CHANGED : - buf.append("CDTPROJECT_CHANGED"); //$NON-NLS-1$ - break; - } - if ( (getFlags() & OWNER_CHANGED) != 0 ) { - buf.append("[OWNER CHANGED]"); //$NON-NLS-1$ - } - if ( (getFlags() & EXTENSION_CHANGED) != 0 ) { - buf.append("[EXTENSION CHANGED]"); //$NON-NLS-1$ - } - if (getFlags() == 0) { - buf.append("[UNSPECIFIED]"); //$NON-NLS-1$ - } - return buf.toString(); - } -} |