I’d like to refer to libraries. I used to create references in EclipseIDE and i am unsure how to do this in SysIDE.
If those libraries are textual files, you should just be able to drop them into the same workspace and do
private/public import <library name>
like with any other SysML v2 package
Just a bit of clarification:
Say you have a package in mylib.sysml
package MyLib {
part p;
}
Then as soon as you put mylib.sysml
in your workspace, the name MyLib
becomes available anywhere. That is to say, whenever you type MyLib
it will refer to the package element specified in mylib.sysml
. In particular, MyLib::p
refers to the part usage you put in your package.
A private/public import
statement is only necessary if you want to re-export the names from MyLib
elsewhere. For example
package OtherPackage {
import MyLib::p;
// use p
}
makes p
available (also!) as just p
inside OtherPackage
, but you could just as well have used MyLib::p
directly, without an import.
Thank you @TiloWiklund and sorry for my unclear question. I was exactly looking for what @Arnas responded.