mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
[296877] Allow user to choose the attributes for remote search result
This commit is contained in:
parent
cdbbb03d91
commit
acb232572b
1 changed files with 5 additions and 3 deletions
|
@ -416,9 +416,11 @@ public class SystemSearchViewPart extends ViewPart
|
|||
public void checkEnabledState()
|
||||
{
|
||||
Viewer viewer = getRSEViewer();
|
||||
if (viewer != null && viewer.getInput() != null)
|
||||
{
|
||||
setEnabled(true);
|
||||
Object input = viewer.getInput();
|
||||
if (viewer != null && input != null)
|
||||
{
|
||||
boolean flag = getViewAdapter(input).hasChildren((IAdaptable)input);
|
||||
setEnabled(flag);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue