diff options
Diffstat (limited to 'plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEBooleanClassBeanTypeProxy.java')
-rw-r--r-- | plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEBooleanClassBeanTypeProxy.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEBooleanClassBeanTypeProxy.java b/plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEBooleanClassBeanTypeProxy.java deleted file mode 100644 index 41b31b4ab..000000000 --- a/plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEBooleanClassBeanTypeProxy.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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 - *******************************************************************************/ -package org.eclipse.jem.internal.proxy.ide; -/* - * $RCSfile: IDEBooleanClassBeanTypeProxy.java,v $ - * $Revision: 1.5 $ $Date: 2005/08/24 20:39:06 $ - */ - -import org.eclipse.jem.internal.proxy.core.*; - -final public class IDEBooleanClassBeanTypeProxy extends IDEBeanTypeProxy { - - // Cache these instances. Since the BeanType proxies are cached also, only one instance - // of true/false will be in system. - protected final IDEBooleanBeanProxy trueProxy; - protected final IDEBooleanBeanProxy falseProxy; - -IDEBooleanClassBeanTypeProxy(IDEProxyFactoryRegistry aRegistry, Class aClass) { - - super(aRegistry, aClass); - trueProxy = new IDEBooleanBeanProxy( fProxyFactoryRegistry, Boolean.TRUE, this ); - falseProxy = new IDEBooleanBeanProxy( fProxyFactoryRegistry, Boolean.FALSE, this); -} -IBooleanBeanProxy createBooleanBeanProxy(Boolean aBoolean) { - if ( aBoolean.booleanValue() ){ - return trueProxy; - } else { - return falseProxy; - } -} -/* Specialized from IDEBeanTypeProxy to ensure IBooleanBeanProxies are created correctly - */ -protected IIDEBeanProxy newBeanProxy(Object anObject){ - - if ( anObject == null || anObject == Boolean.FALSE ) { - return falseProxy; - } else { - return trueProxy; - } -} -} |