diff options
Diffstat (limited to 'plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEBooleanTypeBeanTypeProxy.java')
-rw-r--r-- | plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEBooleanTypeBeanTypeProxy.java | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEBooleanTypeBeanTypeProxy.java b/plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEBooleanTypeBeanTypeProxy.java deleted file mode 100644 index 45f0fd0ae..000000000 --- a/plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEBooleanTypeBeanTypeProxy.java +++ /dev/null @@ -1,59 +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: IDEBooleanTypeBeanTypeProxy.java,v $ - * $Revision: 1.5 $ $Date: 2005/08/24 20:39:06 $ - */ - -import org.eclipse.jem.internal.proxy.core.*; - -final public class IDEBooleanTypeBeanTypeProxy extends IDEPrimitiveBeanTypeProxy { - - // 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; - -IDEBooleanTypeBeanTypeProxy(IDEProxyFactoryRegistry aRegistry, Class aClass) { - - super(aRegistry, aClass); - trueProxy = new IDEBooleanBeanTypeProxy( fProxyFactoryRegistry, Boolean.TRUE, this ); - falseProxy = new IDEBooleanBeanTypeProxy( fProxyFactoryRegistry, Boolean.FALSE, this ); - - // TODO Need to go through all of the primitives, separate them out into a separate classes so - // that sameAs can work with them correctly. Currently only boolean type will do sameAs correctly. - // Should also look into storing the primitive in the proxy instead of creating a new wrapper object - // for each for the non-boolean primitives. -} -/** - * Static helper to create a bean proxy - * Package protected because everyone should go through the factory API - * that is defined as part of IBeanProxyFactory - */ -IBooleanBeanProxy createBooleanBeanProxy(boolean aBoolean) { - if ( aBoolean ){ - return trueProxy; - } else { - return falseProxy; - } -} -/* Specialized from IDEBeanTypeProxy to ensure IBooleanBeanProxies are created correctly - */ -protected IIDEBeanProxy newBeanProxy(Object anObject){ - - return (IIDEBeanProxy)createBooleanBeanProxy( anObject != null ? ((Boolean)anObject).booleanValue() : false ); - -} -int getPrimitiveType(){ - return BOOLEAN; -} -} |