|
Lines 10-18
Link Here
|
| 10 |
**********************************************************************/ |
10 |
**********************************************************************/ |
| 11 |
package org.eclipse.tptp.symptom.internal.actions; |
11 |
package org.eclipse.tptp.symptom.internal.actions; |
| 12 |
|
12 |
|
|
|
13 |
import org.eclipse.hyades.log.ui.internal.CommonLTAMessages; |
| 14 |
import org.eclipse.hyades.models.hierarchy.CorrelationContainerProxy; |
| 13 |
import org.eclipse.hyades.sdb.internal.SDbPluginImages; |
15 |
import org.eclipse.hyades.sdb.internal.SDbPluginImages; |
| 14 |
import org.eclipse.hyades.sdb.internal.util.LogMessages; |
16 |
import org.eclipse.hyades.sdb.internal.util.LogMessages; |
| 15 |
import org.eclipse.hyades.sdb.internal.wizard.ImportSymptomDBWizard; |
17 |
import org.eclipse.hyades.sdb.internal.wizard.ImportSymptomDBWizard; |
|
|
18 |
import org.eclipse.hyades.ui.internal.logicalfolder.LogicalFolder; |
| 16 |
import org.eclipse.hyades.ui.provisional.navigator.action.INavigatorActionContributor; |
19 |
import org.eclipse.hyades.ui.provisional.navigator.action.INavigatorActionContributor; |
| 17 |
import org.eclipse.jface.viewers.IStructuredSelection; |
20 |
import org.eclipse.jface.viewers.IStructuredSelection; |
| 18 |
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction; |
21 |
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction; |
|
Lines 30-36
Link Here
|
| 30 |
} |
33 |
} |
| 31 |
|
34 |
|
| 32 |
public boolean isVisible(IStructuredSelection selection) { |
35 |
public boolean isVisible(IStructuredSelection selection) { |
|
|
36 |
|
| 37 |
Object sel = selection.getFirstElement(); |
| 38 |
if (sel instanceof LogicalFolder) { |
| 39 |
LogicalFolder folder = (LogicalFolder) sel; |
| 40 |
if (folder.getParent() == null) { |
| 41 |
String name = folder.getName(); |
| 42 |
if (name.equals(CommonLTAMessages.LOGN_CORFLD)) { |
| 43 |
return false; |
| 44 |
} |
| 45 |
} |
| 46 |
} else if (sel instanceof CorrelationContainerProxy) { |
| 47 |
return false; |
| 48 |
} |
| 49 |
|
| 33 |
return true; |
50 |
return true; |
|
|
51 |
|
| 34 |
} |
52 |
} |
| 35 |
|
53 |
|
| 36 |
|
54 |
|