Skip to content

Commit

Permalink
Merge pull request #11 from KlasJoenssson/PropertiesImport
Browse files Browse the repository at this point in the history
Changed item text and made the item only visibly for SD-files
  • Loading branch information
goglepox committed Aug 14, 2012
2 parents 3f1a5d3 + a217210 commit d365963
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion plugins/net.bioclipse.cdk.ui.sdfeditor/plugin.xml
Expand Up @@ -199,8 +199,35 @@
</command>
<command
commandId="net.bioclipse.cdk.ui.sdfeditor.command.ImportProperties"
label="Add properties"
label="Add Properties from file..."
style="push">
<visibleWhen>
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.core.resources.IResource">
<or>
<test
property="org.eclipse.core.resources.contentTypeId"
value="net.bioclipse.contenttypes.sdf">
</test>
<test
property="org.eclipse.core.resources.contentTypeId"
value="net.bioclipse.contenttypes.sdf0d">
</test>
<test
property="org.eclipse.core.resources.contentTypeId"
value="net.bioclipse.contenttypes.sdf2d">
</test>
<test
property="org.eclipse.core.resources.contentTypeId"
value="net.bioclipse.contenttypes.sdf3d">
</test>
</or>
</adapt>
</iterate>
</visibleWhen>
</command>
</menuContribution>
<menuContribution
Expand Down

0 comments on commit d365963

Please sign in to comment.