diff options
author | rsuen | 2007-04-15 02:46:38 +0000 |
---|---|---|
committer | rsuen | 2007-04-15 02:46:38 +0000 |
commit | 857d57db9691dd352dd5ea807bd2c2e7a06915b2 (patch) | |
tree | cb7b88421795eee51df3a07aa118fa38d771e1da /framework | |
parent | 2d337e55130bde0e7796c19ea599f7901393dd3b (diff) | |
download | org.eclipse.ecf-857d57db9691dd352dd5ea807bd2c2e7a06915b2.tar.gz org.eclipse.ecf-857d57db9691dd352dd5ea807bd2c2e7a06915b2.tar.xz org.eclipse.ecf-857d57db9691dd352dd5ea807bd2c2e7a06915b2.zip |
Remove this unused class.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatLayout.java | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatLayout.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatLayout.java deleted file mode 100644 index 57402092f..000000000 --- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatLayout.java +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************** - * Copyright (c) 2004 Composent, Inc. 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: - * Composent, Inc. - initial API and implementation - *****************************************************************************/ - -package org.eclipse.ecf.ui.views; - -import org.eclipse.swt.SWT; -import org.eclipse.swt.graphics.Point; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Layout; - -/** - * @deprecated not used anywhere - */ -class ChatLayout extends Layout { - protected static final int TEXT_HEIGHT_FUDGE = 8; - - Point iExtent, tExtent; - - int inputSize = 15; - - int separatorSize = 5; - - int textHeight = -1; - - ChatLayout(int defaultInputSize, int sepSize) { - this.inputSize = defaultInputSize; - this.separatorSize = sepSize; - } - - protected Point computeSize(Composite composite, int wHint, int hHint, - boolean changed) { - Control[] children = composite.getChildren(); - if (changed || iExtent == null || tExtent == null) { - iExtent = children[0].computeSize(SWT.DEFAULT, SWT.DEFAULT, false); - tExtent = children[1].computeSize(SWT.DEFAULT, SWT.DEFAULT, false); - } - int width = iExtent.x + 5 + tExtent.x; - int height = Math.max(iExtent.y, tExtent.y); - return new Point(width + 2, height + 200); - } - - protected void layout(Composite composite, boolean changed) { - Control[] children = composite.getChildren(); - Point windowSize = composite.getSize(); - children[0].setBounds(1, 1, windowSize.x, windowSize.y - - (inputSize + separatorSize)); - children[1].setBounds(1, children[0].getSize().y + separatorSize, - windowSize.x, inputSize); - if (changed || iExtent == null || tExtent == null) { - iExtent = children[0].computeSize(SWT.DEFAULT, SWT.DEFAULT, false); - tExtent = children[1].computeSize(SWT.DEFAULT, SWT.DEFAULT, false); - } - } - - protected void setInputTextHeight(int height) { - textHeight = height; - inputSize = textHeight + TEXT_HEIGHT_FUDGE; - } -}
\ No newline at end of file |