diff options
author | Rolf Theunissen | 2020-06-13 13:43:11 +0000 |
---|---|---|
committer | Rolf Theunissen | 2020-06-14 17:21:20 +0000 |
commit | d8ab1068048b58172c3e78ab6f6865e3b9db5837 (patch) | |
tree | e4a2f1cb1bc1d0086473f41883e283bfd1db412c | |
parent | 2d0a20d1e50d7322f3cc7ed11face32e43a4304e (diff) | |
download | eclipse.platform.ui-d8ab1068048b58172c3e78ab6f6865e3b9db5837.tar.gz eclipse.platform.ui-d8ab1068048b58172c3e78ab6f6865e3b9db5837.tar.xz eclipse.platform.ui-d8ab1068048b58172c3e78ab6f6865e3b9db5837.zip |
Bug 564144 - Remove bundles/org.eclipse.ui.workbench/Eclipse
UI/org/eclipse/ui/internal/preferences/Abstract<XYZ>Listener.java
Abstract classes, full text search also showed no usage, removes:
bundles/org.eclipse.ui.workbench/Eclipse
UI/org/eclipse/ui/internal/preferences/AbstractIntegerListener.java
bundles/org.eclipse.ui.workbench/Eclipse
UI/org/eclipse/ui/internal/preferences/AbstractPropertyListener.java
Change-Id: If9ffcfcec38cdc0ddaf6cd6d22d991e9e510bcbf
Signed-off-by: Rolf Theunissen <rolf.theunissen@gmail.com>
2 files changed, 0 insertions, 85 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/AbstractIntegerListener.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/AbstractIntegerListener.java deleted file mode 100644 index e8c91a06908..00000000000 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/AbstractIntegerListener.java +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2015 IBM Corporation and others. - * - * This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.ui.internal.preferences; - -/** - * @since 3.1 - */ -public abstract class AbstractIntegerListener extends AbstractPropertyListener { - - private IDynamicPropertyMap map; - private int defaultValue; - private String propertyId; - - public AbstractIntegerListener() { - } - - public void attach(IDynamicPropertyMap map, String propertyId, int defaultValue) { - this.defaultValue = defaultValue; - this.propertyId = propertyId; - if (this.map != null) { - this.map.removeListener(this); - } - - this.map = map; - - if (this.map != null) { - this.map.addListener(new String[] { propertyId }, this); - } - } - - @Override - protected void update() { - handleValue(PropertyUtil.get(map, propertyId, defaultValue)); - } - - /** - * @param b - * @since 3.1 - */ - protected abstract void handleValue(int b); - -} diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/AbstractPropertyListener.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/AbstractPropertyListener.java deleted file mode 100644 index ee78989ac25..00000000000 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/AbstractPropertyListener.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2015 IBM Corporation and others. - * - * This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.ui.internal.preferences; - -/** - * @since 3.1 - */ -public abstract class AbstractPropertyListener implements IPropertyMapListener { - - @Override - public void propertyChanged(String[] propertyIds) { - update(); - } - - @Override - public void listenerAttached() { - update(); - } - - protected abstract void update(); -} |