mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 447933 - CMainTab - uncessery restrictions on Browse button
Change-Id: Ic69f12abe7597d34a2354721c8b27166ec0edd5f Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com> Reviewed-on: https://git.eclipse.org/r/35143 Tested-by: Hudson CI
This commit is contained in:
parent
4e5201e47c
commit
572b3e917f
1 changed files with 2 additions and 9 deletions
|
@ -229,11 +229,10 @@ public class CMainTab extends CAbstractMainTab {
|
|||
@Override
|
||||
protected void handleSearchButtonSelected() {
|
||||
if (getCProject() == null) {
|
||||
MessageDialog.openInformation(getShell(), LaunchMessages.CMainTab_Project_required,
|
||||
LaunchMessages.CMainTab_Enter_project_before_searching_for_program);
|
||||
MessageDialog.openInformation(getShell(), LaunchMessages.CMainTab_Project_required,
|
||||
LaunchMessages.CMainTab_Enter_project_before_searching_for_program);
|
||||
return;
|
||||
}
|
||||
|
||||
ILabelProvider programLabelProvider = new CElementLabelProvider() {
|
||||
|
||||
@Override
|
||||
|
@ -401,12 +400,6 @@ public class CMainTab extends CAbstractMainTab {
|
|||
* the specified project.
|
||||
*/
|
||||
protected void handleBinaryBrowseButtonSelected() {
|
||||
final ICProject cproject = getCProject();
|
||||
if (cproject == null) {
|
||||
MessageDialog.openInformation(getShell(), LaunchMessages.CMainTab_Project_required,
|
||||
LaunchMessages.CMainTab_Enter_project_before_browsing_for_program);
|
||||
return;
|
||||
}
|
||||
FileDialog fileDialog = new FileDialog(getShell(), SWT.NONE);
|
||||
fileDialog.setFileName(fProgText.getText());
|
||||
String text= fileDialog.open();
|
||||
|
|
Loading…
Add table
Reference in a new issue