Skip to main content



      Home
Home » Eclipse Projects » Oomph » Computing a Compound Label for a Configuration(Using variables to access contained scopes)
Computing a Compound Label for a Configuration [message #1854743] Tue, 06 September 2022 22:07 Go to next message
Eclipse UserFriend
I am creating a configuration that has an installation and workspace. I would like the label of the installation to be computed from the name of the Installation and Workspace.

I am aware of Predefined Variables, but they only seem to enable use from within the scope. So, if I am in a stream, my scope is the project and then the project catalog. So both of those are in scope.

In my case, I would like to use variables that represent values in a contained element. I.e. I would like the label of the Installation contained in the Configuration.

In OCL code this would look like this:

context Configuration
def label = installation.label + "  for " + workspace.label


So for an installation with label "The workbench" and workspace label "hacked up code" we would get the "The workbench for hacked up code".

Is this sort of declaration possible and how would I achieve that?

[Updated on: Tue, 06 September 2022 22:07] by Moderator

Re: Computing a Compound Label for a Configuration [message #1854747 is a reply to message #1854743] Wed, 07 September 2022 02:55 Go to previous message
Eclipse UserFriend
No, this isn't possible. Keep in mind that the installation can be used to open a different workspace and in fact the installation could be launched multiple times simultaneously with different workspaces. Also, a given workspace can be opened by another installation (though of course only one at any point in time). This is why the scopes are disjoint...
Previous Topic:Howto create Oomph setup file based on Eclipse C++ IDE
Next Topic:Eliminate EGit Repository from Installation
Goto Forum:
  


Current Time: Tue Jul 01 09:17:53 EDT 2025

Powered by FUDForum. Page generated in 0.40775 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top