Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] CTabFolder.setInsertMark(CTabItem, boolean after) implementation

I'm trying to implement drag and drop support that would allow me to move or reorder a CTabItem within a CTabFolder.  I've found this posting

http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg04442.html which contains a code snippet illustrating how this could be done.  The code works fine but I've noticed that the call to CTabFolder.setInsertMark (CTabItem item, Boolean after) isn't doing what it's suppose to do.  I'm developing in Eclipse 3.2.0 which comes with SWT 3.2.  When I looked into CTabFolder source for the implementation of setInsertMark(..), I got the following:

 

/**

  * Display an insert marker before or after the specified tab item.

  *

  * A value of null will clear the mark.

  *

  * @param item the item with which the mark is associated or null

  *

  * @param after true if the mark should be displayed after the specified item

  *

  * @exception SWTException <ul>

  *    <li> ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>

  *    <li> ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver </li>

  * </ul>

  */

public void setInsertMark(CTabItem item, boolean after) {

      checkWidget();

}

 

I'm not sure why there's no implementation here. This seems to be a bug in SWT 3.2.  Can anyone provide additional insight to this or should this be reported as a bug?
 
thanks

Back to the top