|
Added
Link Here
|
| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2009 Wind River Systems and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* http://www.eclipse.org/legal/epl-v10.html |
| 7 |
* |
| 8 |
* Contributors: |
| 9 |
* Wind River Systems - initial API and implementation |
| 10 |
*******************************************************************************/ |
| 11 |
package org.eclipse.debug.internal.ui.viewers.model; |
| 12 |
|
| 13 |
import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelChangedListener; |
| 14 |
import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta; |
| 15 |
import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; |
| 16 |
import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdateListener; |
| 17 |
import org.eclipse.debug.internal.ui.viewers.model.provisional.ModelDelta; |
| 18 |
import org.eclipse.debug.internal.ui.viewers.model.provisional.TreeModelViewer; |
| 19 |
import org.eclipse.jface.resource.ImageDescriptor; |
| 20 |
import org.eclipse.jface.viewers.ColumnLabelProvider; |
| 21 |
import org.eclipse.jface.viewers.ILabelProviderListener; |
| 22 |
import org.eclipse.jface.viewers.ISelection; |
| 23 |
import org.eclipse.jface.viewers.TreePath; |
| 24 |
import org.eclipse.jface.viewers.Viewer; |
| 25 |
import org.eclipse.jface.viewers.ViewerFilter; |
| 26 |
import org.eclipse.jface.viewers.ViewerLabel; |
| 27 |
import org.eclipse.swt.graphics.Color; |
| 28 |
import org.eclipse.swt.graphics.Font; |
| 29 |
import org.eclipse.swt.graphics.FontData; |
| 30 |
import org.eclipse.swt.graphics.Image; |
| 31 |
import org.eclipse.swt.graphics.RGB; |
| 32 |
import org.eclipse.swt.widgets.Composite; |
| 33 |
import org.eclipse.swt.widgets.Control; |
| 34 |
import org.eclipse.swt.widgets.Display; |
| 35 |
|
| 36 |
/** |
| 37 |
* Specialized tree viewer which displays only sub-tree of a full model. |
| 38 |
* |
| 39 |
* @since 3.5 |
| 40 |
*/ |
| 41 |
public class SubTreeModelViewer extends TreeModelViewer { |
| 42 |
|
| 43 |
/** |
| 44 |
* The tree path in the model to the root element of this viewer. |
| 45 |
*/ |
| 46 |
private TreePath fRootPath = TreePath.EMPTY; |
| 47 |
|
| 48 |
/** |
| 49 |
* Viewer delegate that content and label providers refer to for viewer data. |
| 50 |
*/ |
| 51 |
private DelegatingTreeModelViewer fDelegatingViewer; |
| 52 |
|
| 53 |
/** |
| 54 |
* Returns the root element's model tree path. |
| 55 |
*/ |
| 56 |
public TreePath getRootPath() { |
| 57 |
return fRootPath; |
| 58 |
} |
| 59 |
|
| 60 |
public SubTreeModelViewer(Composite parent, int style, IPresentationContext context) { |
| 61 |
super(parent, style, context); |
| 62 |
} |
| 63 |
|
| 64 |
/** |
| 65 |
* Sets the viewer's input and root element's path |
| 66 |
* |
| 67 |
* @param input New viewer input. |
| 68 |
* @param rootPath New root element path. |
| 69 |
*/ |
| 70 |
public void setInput(Object input, TreePath rootPath) { |
| 71 |
fRootPath = rootPath; |
| 72 |
super.setInput(input); |
| 73 |
} |
| 74 |
|
| 75 |
/** |
| 76 |
* A proxy for the sub tree viewer which is given to the content and |
| 77 |
* label providers. It translates the sub-tree paths in the viewer to the |
| 78 |
* full model paths that the providers expect. |
| 79 |
*/ |
| 80 |
public class DelegatingTreeModelViewer extends Viewer |
| 81 |
implements ITreeModelLabelProviderTarget, ITreeModelContentProviderTarget |
| 82 |
{ |
| 83 |
public void reveal(TreePath path, int index) { |
| 84 |
if (path.startsWith(fRootPath, null)) { |
| 85 |
SubTreeModelViewer.this.reveal(createSubPath(path), index); |
| 86 |
} |
| 87 |
} |
| 88 |
|
| 89 |
public void replace(Object parentOrTreePath, int index, Object element) { |
| 90 |
if (parentOrTreePath instanceof TreePath) { |
| 91 |
TreePath path = (TreePath)parentOrTreePath; |
| 92 |
if (path.startsWith(fRootPath, null)) { |
| 93 |
SubTreeModelViewer.this.replace(createSubPath(path), index, element); |
| 94 |
} |
| 95 |
} else { |
| 96 |
SubTreeModelViewer.this.replace(parentOrTreePath, index, element); |
| 97 |
} |
| 98 |
} |
| 99 |
|
| 100 |
public void setChildCount(Object elementOrTreePath, int count) { |
| 101 |
if (elementOrTreePath instanceof TreePath) { |
| 102 |
TreePath path = (TreePath)elementOrTreePath; |
| 103 |
if (path.startsWith(fRootPath, null)) { |
| 104 |
SubTreeModelViewer.this.setChildCount(createSubPath(path), count); |
| 105 |
} |
| 106 |
} else { |
| 107 |
SubTreeModelViewer.this.setChildCount(elementOrTreePath, count); |
| 108 |
} |
| 109 |
} |
| 110 |
|
| 111 |
public void setHasChildren(Object elementOrTreePath, boolean hasChildren) { |
| 112 |
if (elementOrTreePath instanceof TreePath) { |
| 113 |
TreePath path = (TreePath)elementOrTreePath; |
| 114 |
if (path.startsWith(fRootPath, null)) { |
| 115 |
SubTreeModelViewer.this.setHasChildren(createSubPath(path), hasChildren); |
| 116 |
} |
| 117 |
} else { |
| 118 |
SubTreeModelViewer.this.setHasChildren(elementOrTreePath, hasChildren); |
| 119 |
} |
| 120 |
} |
| 121 |
|
| 122 |
public void autoExpand(TreePath elementPath) { |
| 123 |
// not supported |
| 124 |
} |
| 125 |
|
| 126 |
public void setExpandedState(Object elementOrTreePath, boolean expanded) { |
| 127 |
if (elementOrTreePath instanceof TreePath) { |
| 128 |
TreePath path = (TreePath)elementOrTreePath; |
| 129 |
if (path.startsWith(fRootPath, null)) { |
| 130 |
SubTreeModelViewer.this.setExpandedState(createSubPath(path), expanded); |
| 131 |
} |
| 132 |
} else { |
| 133 |
SubTreeModelViewer.this.setExpandedState(elementOrTreePath, expanded); |
| 134 |
} |
| 135 |
} |
| 136 |
|
| 137 |
public void expandToLevel(Object elementOrTreePath, int level) { |
| 138 |
if (elementOrTreePath instanceof TreePath) { |
| 139 |
TreePath path = (TreePath)elementOrTreePath; |
| 140 |
if (path.startsWith(fRootPath, null)) { |
| 141 |
SubTreeModelViewer.this.expandToLevel(createSubPath(path), level); |
| 142 |
} |
| 143 |
} else { |
| 144 |
SubTreeModelViewer.this.expandToLevel(elementOrTreePath, level); |
| 145 |
} |
| 146 |
} |
| 147 |
|
| 148 |
public void remove(Object elementOrTreePath) { |
| 149 |
if (elementOrTreePath instanceof TreePath) { |
| 150 |
TreePath path = (TreePath)elementOrTreePath; |
| 151 |
if (path.startsWith(fRootPath, null)) { |
| 152 |
SubTreeModelViewer.this.remove(createSubPath(path)); |
| 153 |
} |
| 154 |
} else { |
| 155 |
SubTreeModelViewer.this.remove(elementOrTreePath); |
| 156 |
} |
| 157 |
} |
| 158 |
|
| 159 |
public void remove(Object parentOrTreePath, final int index) { |
| 160 |
if (parentOrTreePath instanceof TreePath) { |
| 161 |
TreePath path = (TreePath)parentOrTreePath; |
| 162 |
if (path.startsWith(fRootPath, null)) { |
| 163 |
SubTreeModelViewer.this.remove(createSubPath(path), index); |
| 164 |
} |
| 165 |
} else { |
| 166 |
SubTreeModelViewer.this.remove(parentOrTreePath, index); |
| 167 |
} |
| 168 |
} |
| 169 |
|
| 170 |
public void insert(Object parentOrTreePath, Object element, int position) { |
| 171 |
if (parentOrTreePath instanceof TreePath) { |
| 172 |
TreePath path = (TreePath)parentOrTreePath; |
| 173 |
if (path.startsWith(fRootPath, null)) { |
| 174 |
SubTreeModelViewer.this.insert(createSubPath(path), element, position); |
| 175 |
} |
| 176 |
} else { |
| 177 |
SubTreeModelViewer.this.insert(parentOrTreePath, element, position); |
| 178 |
} |
| 179 |
} |
| 180 |
|
| 181 |
public boolean getExpandedState(Object elementOrTreePath) { |
| 182 |
if (elementOrTreePath instanceof TreePath) { |
| 183 |
TreePath path = (TreePath)elementOrTreePath; |
| 184 |
if (path.startsWith(fRootPath, null)) { |
| 185 |
return SubTreeModelViewer.this.getExpandedState(createSubPath(path)); |
| 186 |
} |
| 187 |
} else { |
| 188 |
return SubTreeModelViewer.this.getExpandedState(elementOrTreePath); |
| 189 |
} |
| 190 |
return false; |
| 191 |
} |
| 192 |
|
| 193 |
public int getChildCount(TreePath path) { |
| 194 |
if (path.startsWith(fRootPath, null)) { |
| 195 |
return SubTreeModelViewer.this.getChildCount(createSubPath(path)); |
| 196 |
} |
| 197 |
return -1; |
| 198 |
} |
| 199 |
|
| 200 |
public Object getChildElement(TreePath path, int index) { |
| 201 |
if (path.startsWith(fRootPath, null)) { |
| 202 |
return SubTreeModelViewer.this.getChildElement(createSubPath(path), index); |
| 203 |
} |
| 204 |
return null; |
| 205 |
} |
| 206 |
|
| 207 |
public TreePath getTopElementPath() { |
| 208 |
return createFullPath(SubTreeModelViewer.this.getTopElementPath()); |
| 209 |
} |
| 210 |
|
| 211 |
public int findElementIndex(TreePath parentPath, Object element) { |
| 212 |
if (parentPath.startsWith(fRootPath, null)) { |
| 213 |
return SubTreeModelViewer.this.findElementIndex(createSubPath(parentPath), element); |
| 214 |
} |
| 215 |
return -1; |
| 216 |
} |
| 217 |
|
| 218 |
public void setElementData(TreePath path, int numColumns, String[] labels, ImageDescriptor[] images, FontData[] fontDatas, RGB[] foregrounds, RGB[] backgrounds) { |
| 219 |
if (path.startsWith(fRootPath, null)) { |
| 220 |
SubTreeModelViewer.this.setElementData(createSubPath(path), numColumns, labels, images, fontDatas, foregrounds, backgrounds); |
| 221 |
} |
| 222 |
} |
| 223 |
|
| 224 |
public Control getControl() { |
| 225 |
return SubTreeModelViewer.this.getControl(); |
| 226 |
} |
| 227 |
|
| 228 |
public Object getInput() { |
| 229 |
return SubTreeModelViewer.this.getInput(); |
| 230 |
} |
| 231 |
|
| 232 |
public ISelection getSelection() { |
| 233 |
return SubTreeModelViewer.this.getSelection(); |
| 234 |
} |
| 235 |
|
| 236 |
public void refresh() { |
| 237 |
SubTreeModelViewer.this.refresh(); |
| 238 |
} |
| 239 |
|
| 240 |
public void setInput(Object input) { |
| 241 |
SubTreeModelViewer.this.setInput(input); |
| 242 |
} |
| 243 |
|
| 244 |
public void setSelection(ISelection selection, boolean reveal) { |
| 245 |
SubTreeModelViewer.this.setSelection(selection, reveal); |
| 246 |
} |
| 247 |
|
| 248 |
public String[] getVisibleColumns() { |
| 249 |
return SubTreeModelViewer.this.getVisibleColumns(); |
| 250 |
} |
| 251 |
|
| 252 |
public void addLabelUpdateListener(ILabelUpdateListener listener) { |
| 253 |
SubTreeModelViewer.this.addLabelUpdateListener(listener); |
| 254 |
} |
| 255 |
|
| 256 |
public void addModelChangedListener(IModelChangedListener listener) { |
| 257 |
SubTreeModelViewer.this.addModelChangedListener(listener); |
| 258 |
} |
| 259 |
|
| 260 |
public void addViewerUpdateListener(IViewerUpdateListener listener) { |
| 261 |
SubTreeModelViewer.this.addViewerUpdateListener(listener); |
| 262 |
} |
| 263 |
|
| 264 |
public int getAutoExpandLevel() { |
| 265 |
return SubTreeModelViewer.this.getAutoExpandLevel(); |
| 266 |
} |
| 267 |
|
| 268 |
public Display getDisplay() { |
| 269 |
return SubTreeModelViewer.this.getDisplay(); |
| 270 |
} |
| 271 |
|
| 272 |
public ViewerLabel getElementLabel(TreePath path, String columnId) { |
| 273 |
return SubTreeModelViewer.this.getElementLabel(path, columnId); |
| 274 |
} |
| 275 |
|
| 276 |
public IPresentationContext getPresentationContext() { |
| 277 |
return SubTreeModelViewer.this.getPresentationContext(); |
| 278 |
} |
| 279 |
|
| 280 |
public void removeLabelUpdateListener(ILabelUpdateListener listener) { |
| 281 |
SubTreeModelViewer.this.removeLabelUpdateListener(listener); |
| 282 |
} |
| 283 |
|
| 284 |
public void removeModelChangedListener(IModelChangedListener listener) { |
| 285 |
SubTreeModelViewer.this.removeModelChangedListener(listener); |
| 286 |
} |
| 287 |
|
| 288 |
public void removeViewerUpdateListener(IViewerUpdateListener listener) { |
| 289 |
SubTreeModelViewer.this.removeViewerUpdateListener(listener); |
| 290 |
} |
| 291 |
|
| 292 |
public void saveElementState(TreePath path, ModelDelta delta) { |
| 293 |
SubTreeModelViewer.this.saveElementState(path, delta); |
| 294 |
} |
| 295 |
|
| 296 |
public void setAutoExpandLevel(int level) { |
| 297 |
SubTreeModelViewer.this.setAutoExpandLevel(level); |
| 298 |
} |
| 299 |
|
| 300 |
public void setSelection(ISelection selection, boolean reveal, boolean force) { |
| 301 |
SubTreeModelViewer.this.setSelection(selection, reveal, force); |
| 302 |
} |
| 303 |
|
| 304 |
public void updateViewer(IModelDelta delta) { |
| 305 |
SubTreeModelViewer.this.updateViewer(delta); |
| 306 |
} |
| 307 |
|
| 308 |
public ViewerFilter[] getFilters() { |
| 309 |
return SubTreeModelViewer.this.getFilters(); |
| 310 |
} |
| 311 |
|
| 312 |
public boolean overrideSelection(ISelection current, ISelection candidate) { |
| 313 |
return SubTreeModelViewer.this.overrideSelection(current, candidate); |
| 314 |
} |
| 315 |
|
| 316 |
public void refresh(Object element) { |
| 317 |
SubTreeModelViewer.this.refresh(element); |
| 318 |
} |
| 319 |
|
| 320 |
public void update(Object element) { |
| 321 |
SubTreeModelViewer.this.update(element); |
| 322 |
} |
| 323 |
} |
| 324 |
|
| 325 |
|
| 326 |
/** |
| 327 |
* Delegating content provider. It translates all the calls to the |
| 328 |
* underlying content provider to use full model tree paths. |
| 329 |
*/ |
| 330 |
private class SubTreeModelContentProvider implements ITreeModelContentProvider { |
| 331 |
|
| 332 |
private TreeModelContentProvider fBaseProvider; |
| 333 |
|
| 334 |
public SubTreeModelContentProvider() { |
| 335 |
fBaseProvider = new TreeModelContentProvider(); |
| 336 |
} |
| 337 |
|
| 338 |
public void updateHasChildren(TreePath path) { |
| 339 |
fBaseProvider.updateHasChildren(createFullPath(path)); |
| 340 |
} |
| 341 |
|
| 342 |
public void updateChildCount(TreePath path, int currentChildCount) { |
| 343 |
fBaseProvider.updateChildCount(createFullPath(path), currentChildCount); |
| 344 |
} |
| 345 |
|
| 346 |
public void updateElement(TreePath parentPath, int viewIndex) { |
| 347 |
fBaseProvider.updateElement(createFullPath(parentPath), viewIndex); |
| 348 |
} |
| 349 |
|
| 350 |
public int viewToModelCount(TreePath parentPath, int count) { |
| 351 |
return fBaseProvider.viewToModelCount(createFullPath(parentPath), count); |
| 352 |
} |
| 353 |
|
| 354 |
public int viewToModelIndex(TreePath parentPath, int index) { |
| 355 |
return fBaseProvider.viewToModelIndex(createFullPath(parentPath), index); |
| 356 |
} |
| 357 |
|
| 358 |
public void addModelChangedListener(IModelChangedListener listener) { |
| 359 |
fBaseProvider.addModelChangedListener(listener); |
| 360 |
} |
| 361 |
|
| 362 |
public void addViewerUpdateListener(IViewerUpdateListener listener) { |
| 363 |
fBaseProvider.addViewerUpdateListener(listener); |
| 364 |
} |
| 365 |
|
| 366 |
public boolean isSuppressModelControlDeltas() { |
| 367 |
return fBaseProvider.isSuppressModelControlDeltas(); |
| 368 |
} |
| 369 |
|
| 370 |
public int modelToViewChildCount(TreePath parentPath, int count) { |
| 371 |
return fBaseProvider.modelToViewChildCount(createFullPath(parentPath), count); |
| 372 |
} |
| 373 |
|
| 374 |
public int modelToViewIndex(TreePath parentPath, int index) { |
| 375 |
return fBaseProvider.modelToViewIndex(createFullPath(parentPath), index); |
| 376 |
} |
| 377 |
|
| 378 |
public void removeModelChangedListener(IModelChangedListener listener) { |
| 379 |
fBaseProvider.removeModelChangedListener(listener); |
| 380 |
} |
| 381 |
|
| 382 |
public void removeViewerUpdateListener(IViewerUpdateListener listener) { |
| 383 |
fBaseProvider.removeViewerUpdateListener(listener); |
| 384 |
} |
| 385 |
|
| 386 |
public void setSuppressModelControlDeltas(boolean suppress) { |
| 387 |
fBaseProvider.setSuppressModelControlDeltas(suppress); |
| 388 |
} |
| 389 |
|
| 390 |
public boolean shouldFilter(Object parentElementOrTreePath, Object element) { |
| 391 |
if (parentElementOrTreePath instanceof TreePath) { |
| 392 |
TreePath path = (TreePath)parentElementOrTreePath; |
| 393 |
return fBaseProvider.shouldFilter(createFullPath(path), element); |
| 394 |
} else { |
| 395 |
return fBaseProvider.shouldFilter(parentElementOrTreePath, element); |
| 396 |
} |
| 397 |
|
| 398 |
} |
| 399 |
|
| 400 |
public void unmapPath(TreePath path) { |
| 401 |
fBaseProvider.unmapPath(createFullPath(path)); |
| 402 |
} |
| 403 |
|
| 404 |
public void updateModel(IModelDelta delta) { |
| 405 |
fBaseProvider.updateModel(delta); |
| 406 |
} |
| 407 |
|
| 408 |
public TreePath[] getParents(Object element) { |
| 409 |
// Not used |
| 410 |
return null; |
| 411 |
} |
| 412 |
|
| 413 |
public void dispose() { |
| 414 |
fBaseProvider.dispose(); |
| 415 |
} |
| 416 |
|
| 417 |
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { |
| 418 |
fBaseProvider.inputChanged(fDelegatingViewer, oldInput, newInput); |
| 419 |
} |
| 420 |
} |
| 421 |
|
| 422 |
/** |
| 423 |
* Delegating label provider. It translates all the calls to the |
| 424 |
* underlying label provider to use full model tree paths. |
| 425 |
*/ |
| 426 |
private class SubTreeModelLabelProvider extends ColumnLabelProvider |
| 427 |
implements ITreeModelLabelProvider |
| 428 |
{ |
| 429 |
|
| 430 |
private TreeModelLabelProvider fBaseProvider; |
| 431 |
|
| 432 |
public SubTreeModelLabelProvider(ITreeModelLabelProviderTarget viewer) { |
| 433 |
fBaseProvider = new TreeModelLabelProvider(viewer); |
| 434 |
} |
| 435 |
|
| 436 |
public boolean update(TreePath elementPath) { |
| 437 |
return fBaseProvider.update( createFullPath(elementPath) ); |
| 438 |
} |
| 439 |
|
| 440 |
public void addLabelUpdateListener(ILabelUpdateListener listener) { |
| 441 |
fBaseProvider.addLabelUpdateListener(listener); |
| 442 |
} |
| 443 |
|
| 444 |
public Color getColor(RGB rgb) { |
| 445 |
return fBaseProvider.getColor(rgb); |
| 446 |
} |
| 447 |
|
| 448 |
public Font getFont(FontData fontData) { |
| 449 |
return fBaseProvider.getFont(fontData); |
| 450 |
} |
| 451 |
|
| 452 |
public Image getImage(ImageDescriptor descriptor) { |
| 453 |
return fBaseProvider.getImage(descriptor); |
| 454 |
} |
| 455 |
|
| 456 |
public void removeLabelUpdateListener(ILabelUpdateListener listener) { |
| 457 |
fBaseProvider.removeLabelUpdateListener(listener); |
| 458 |
} |
| 459 |
|
| 460 |
public void addListener(ILabelProviderListener listener) { |
| 461 |
fBaseProvider.addListener(listener); |
| 462 |
} |
| 463 |
|
| 464 |
public void dispose() { |
| 465 |
fBaseProvider.dispose(); |
| 466 |
super.dispose(); |
| 467 |
} |
| 468 |
|
| 469 |
public boolean isLabelProperty(Object element, String property) { |
| 470 |
return fBaseProvider.isLabelProperty(element, property); |
| 471 |
} |
| 472 |
|
| 473 |
public void removeListener(ILabelProviderListener listener) { |
| 474 |
fBaseProvider.removeListener(listener); |
| 475 |
} |
| 476 |
} |
| 477 |
|
| 478 |
private TreePath createFullPath(TreePath subPath) { |
| 479 |
Object[] segments = new Object[fRootPath.getSegmentCount() + subPath.getSegmentCount()]; |
| 480 |
for (int i = 0; i < fRootPath.getSegmentCount(); i++) { |
| 481 |
segments[i] = fRootPath.getSegment(i); |
| 482 |
} |
| 483 |
for (int i = 0; i < subPath.getSegmentCount(); i++) { |
| 484 |
segments[i + fRootPath.getSegmentCount()] = subPath.getSegment(i); |
| 485 |
} |
| 486 |
return new TreePath(segments); |
| 487 |
} |
| 488 |
|
| 489 |
private TreePath createSubPath(TreePath fullPath) { |
| 490 |
if (fullPath.getSegmentCount() <= fRootPath.getSegmentCount()) { |
| 491 |
return TreePath.EMPTY; |
| 492 |
} |
| 493 |
Object[] segments = new Object[fullPath.getSegmentCount() - fRootPath.getSegmentCount()]; |
| 494 |
for (int i = 0; i < segments.length; i++) { |
| 495 |
segments[i] = fullPath.getSegment(i + fRootPath.getSegmentCount()); |
| 496 |
} |
| 497 |
return new TreePath(segments); |
| 498 |
} |
| 499 |
|
| 500 |
private DelegatingTreeModelViewer getDelegatingViewer() { |
| 501 |
if (fDelegatingViewer == null) { |
| 502 |
fDelegatingViewer = new DelegatingTreeModelViewer(); |
| 503 |
} |
| 504 |
return fDelegatingViewer; |
| 505 |
} |
| 506 |
|
| 507 |
protected ITreeModelContentProvider createContentProvider() { |
| 508 |
return new SubTreeModelContentProvider(); |
| 509 |
} |
| 510 |
|
| 511 |
protected ITreeModelLabelProvider createLabelProvider() { |
| 512 |
return new SubTreeModelLabelProvider(getDelegatingViewer()); |
| 513 |
} |
| 514 |
|
| 515 |
|
| 516 |
} |