mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Bug 294448: Path Mapping dialog issues. Pass the content of the "Local file system path" field to the directory dialog.
This commit is contained in:
parent
dfc2e4f842
commit
8d5a128bc4
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,7 @@ import org.eclipse.swt.widgets.Label;
|
|||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.eclipse.swt.widgets.Table;
|
||||
import org.eclipse.swt.widgets.TableColumn;
|
||||
import org.eclipse.swt.widgets.TableItem;
|
||||
import org.eclipse.swt.widgets.Text;
|
||||
import org.eclipse.ui.PlatformUI;
|
||||
|
||||
|
@ -119,7 +120,9 @@ public class MappingSourceContainerDialog extends TitleAreaDialog {
|
|||
*/
|
||||
@Override
|
||||
protected Object openDialogBox( Control cellEditorWindow ) {
|
||||
TableItem[] selection = ((Table)cellEditorWindow.getParent()).getSelection();
|
||||
DirectoryDialog dialog = new DirectoryDialog( cellEditorWindow.getShell() );
|
||||
dialog.setFilterPath( selection[0].getText( 1 ) );
|
||||
return dialog.open();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue