OLD | NEW |
(Empty) | |
| 1 /******************************************************************************* |
| 2 * Copyright (c) 2012 xored software, Inc. All rights reserved. This program and
the accompanying |
| 3 * materials are made available under the terms of the Eclipse Public License v1
.0 which accompanies |
| 4 * this distribution, and is available at http://www.eclipse.org/legal/epl-v10.h
tml Contributors: |
| 5 * xored software, Inc. - initial API and implementation (Yuri Strot) |
| 6 ******************************************************************************/ |
| 7 package com.xored.glance.ui.controls.table; |
| 8 |
| 9 import org.eclipse.core.runtime.IProgressMonitor; |
| 10 import org.eclipse.core.runtime.ListenerList; |
| 11 import org.eclipse.swt.widgets.Table; |
| 12 |
| 13 import com.xored.glance.ui.controls.decor.IPath; |
| 14 import com.xored.glance.ui.controls.decor.IStructContent; |
| 15 import com.xored.glance.ui.controls.decor.StructCell; |
| 16 import com.xored.glance.ui.sources.ITextBlock; |
| 17 import com.xored.glance.ui.sources.ITextSourceListener; |
| 18 |
| 19 public class TableContent implements IStructContent { |
| 20 |
| 21 private final ListenerList listeners = new ListenerList(); |
| 22 |
| 23 public TableContent(Table table) { |
| 24 } |
| 25 |
| 26 public void addListener(ITextSourceListener listener) { |
| 27 listeners.add(listener); |
| 28 } |
| 29 |
| 30 public void removeListener(ITextSourceListener listener) { |
| 31 listeners.remove(listener); |
| 32 } |
| 33 |
| 34 public ITextSourceListener[] getListeners() { |
| 35 Object[] objects = listeners.getListeners(); |
| 36 ITextSourceListener[] listeners = new ITextSourceListener[objects.length]; |
| 37 System.arraycopy(objects, 0, listeners, 0, objects.length); |
| 38 return listeners; |
| 39 } |
| 40 |
| 41 public void dispose() { |
| 42 } |
| 43 |
| 44 public ITextBlock[] getBlocks() { |
| 45 return null; |
| 46 } |
| 47 |
| 48 public ITextBlock getContent(StructCell cell) { |
| 49 return null; |
| 50 } |
| 51 |
| 52 public IPath getPath(ITextBlock block) { |
| 53 return null; |
| 54 } |
| 55 |
| 56 public void index(IProgressMonitor monitor) { |
| 57 monitor.done(); |
| 58 } |
| 59 |
| 60 } |
OLD | NEW |