Community
Participate
Working Groups
If I select a method from the outline view and select delete, the method is deleted, and the source editor is scrolled all the way to the top of the class. No matter what type of item you delete, the source editor then scrolls to the enclosing class. IMO, the page should not scroll during this operation.
This happens when the outline page selection follows the cursor and does not happen otherwise. There is no easy, clean fix for this. Post 2.0.
This is a result of the Source View following the Outline, not vice-versa. When the method is deleted, the TreeItem for the enclosing Type is selected on Windows.
If you delete a tree item, the selection go to next item and not to the parent.
The selection goes to the parent. Run this code on Windows: package tree; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.CCombo; import org.eclipse.swt.events.*; import org.eclipse.swt.events.MouseEvent; import org.eclipse.swt.events.MouseMoveListener; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.TraverseEvent; import org.eclipse.swt.graphics.*; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.widgets.*; public class SWTTreeTest { static TreeItem item; public static void main(String args[]){ Display display = new Display(); final Shell shell = new Shell(display); shell.setSize(600, 600); shell.setLocation(100,100); final Tree tree = new Tree(shell , SWT.SINGLE); item = new TreeItem(tree, 0); item.setText("Item3"); new TreeItem(item, 0).setText("Item"); item = new TreeItem(item, 0); item.setText("Item 2"); tree.setBounds(10, 10, 100, 100); tree.setSelection(new TreeItem[]{item}); Button b = new Button(shell, 0); b.setText("Delete Last"); b.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { // tree.setSelection(new TreeItem[0]); item.dispose(); } }); b.setBounds(20,190,120,50); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
Nevermind. It only goes to the parent in the case where there is not a Next TreeItem.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.