Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #1000362, 'Add Scala Library' is added only when the project ha…

…s the Scala nature.
  • Loading branch information...
commit aab0f6b71d998c0b309a8ced428d4355a7a3e4cb 1 parent e0349a4
Iulian Dragos dragos authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 org.scala-ide.sdt.core/plugin.xml
13 org.scala-ide.sdt.core/plugin.xml
View
@@ -536,14 +536,23 @@
id="org.scala-ide.sdt.core.addScalaLibrary"
nameFilter="*"
objectClass="org.eclipse.jdt.core.IJavaProject">
- <action
+ <action
class="scala.tools.eclipse.actions.AddScalaLibraryAction"
enablesFor="+"
id="org.scala-ide.sdt.core.action.addScalaLibrary"
label="Add Scala Library to Build Path"
menubarPath="org.scala-ide.sdt.core.popupMenu/content"
tooltip="Add the Scala standard library to the project build path">
- </action>
+ </action>
+ <visibility>
+ <and>
+ <or>
+ <objectState name="projectNature" value="org.scala-ide.sdt.core.scalanature"/>
+ <objectState name="projectNature" value="ch.epfl.lamp.sdt.core.scalanature"/>
+ </or>
+ <objectClass name="org.eclipse.jdt.core.IJavaProject"/>
+ </and>
+ </visibility>
</objectContribution>
<objectContribution
adaptable="true"
Please sign in to comment.
Something went wrong with that request. Please try again.