How to find links to baselines in DOORS using DXL - scripting

For a given object, how do I find links to baselined modules? The code below only seemed to work on links to "Current" working versions of modules.
Link lnk
for lnk in (current Object) -> "*" do
{
print "Link found"
}
Thanks,
Phil
Edit:Added markup for code block -Jaambageek

You are close, and don't worry this is not easy to find in the DXL Help either.
Link lnk
for lnk in all (current Object) -> "*" do
{
print "Link found"
}
The only word I added is all. That allows it to find versioned links. You can search Versioned Links in the DXL Help and you should find it.

Related

Edit document properties in MS-Word 2016

I am currently trying to setup a template where the user is prompted to add "tags" to their document when they open a new MS-Word file. Currently I have broken this down in a few parts.
Startup prompt
Connect the document/script to the "tag" property (so the user don't have to manually change it)
Ideally implement a drop-down menu, so I don't accidentally tag some files with small differences such as spaces, case sensitive formating etc.
Currently I have tried most of what Word has to offer, which is why I came here. The easiest answer is to go in "File -> Information -> Tags" and edit this manually, but this is what I hope to automate. I have used the feature "Quick Parts", where I can add a field which edits properties such as "Author", "Tags" etc. The problem here is that they are not customizable, so I can not implement a drop-down menu. I have tried to use the "Developer" section in Word to add controllers such as drop-down menus, but I have not found a way to connect these to the document properties. I also tried using the FILLIN command to see if it could be used as shown below, just to test if I could set these properties from the document in this way.
{ SET bkmTitle { TITLE { FILLIN "Enter the document title" } } }
The problem with this implementation is that I don't want to press F9 in these fields when I start up a new project. I have not done much research into the startup prompt because I see this as the finishing touch, but if anyone has any advice on that too, it would be greatly appreciated.
I don't have any experience with macros/VBA, but I am open to learn if that is the easiest way to realize this project. Thank you kindly in advance.
From Charles Kenyon's links I solved my problem with Quick Parts. My solution was to extract the .docx file so I could access the .xml file within. Inside the .docx file (also works with the .dotm template file found in /AppData/Roaming/Microsoft/Templates). Using 7-zip I opened the .dotm archive and went on word -> document.xml.
I made a template by editing the Normal.dotm (MS-Word template file). Here I added a Quick Part for "Category", then saved the template. I then opened the .xml file as mentioned above where I could edit this Quick Part for the template from textfield to a drop down menu (was not possible to change in Word to my knowledge).
To change it into other types than drop down menu, it is possible to add other control forms from Word by clicking on the "Developer" tab and selecting other controls such as "Checkbox". When you open the "document.xml" file afterwards, you can now see the schema for a checkbox.
When editing the "Document Properties" style Quick Parts, they are automatically linked to the document properties, which is what I wanted to learn how to do. It is probably possible to also use the document.xml file to explore how to link other fields to the document properties. I hope this answer might help others if they want to explore more options in MS-Word.

Remove JavaDoc Tag Intellij

I'm looking for a way to delete an added JavaDoc tag.
The only solution on StackOverflow was from 2010 and did not help me because Intellij has updated and the menu settings are no longer the same.
If anyone could tell me how to remove it, that would be great.
Edit: This was the question from '10.
Edit 2: When you add a JavaDoc tag, and Intellij doesn't detect it as a valid tag, you can right click to add it to your saved JavaDoc tags.
I am looking for a way to remove my saved tags.
The answer from the linked issue is still valid, only the path to that settings has changed slightly.
Anyway, it is easiest if you just use the provided search: Use "File -> Settings", then type "javadoc problems" in the search field in the upper left.
You will then easily find "Editor -> Inspections", with the inspection "Java -> Javadoc issues -> Declaration has Javadoc problems" at the right.

Intellij External Tools available variables

Does anyone know where a wiki style list exists of all the available variable/macros are that intellij comes with out of the box?
I'm hoping to create a wiki style page that lists all the out of the box intellij variables (macros?) that can be used in External Tools. I looked and could not find a list style reference to them anywhere, though if someone knows where such a list exists I would be glad to know.
Here's the ones I know of from seeing/using them in projects:
$FileDirRelativeToProjectRoot$
$FileName$
$FileDir$
$FileClass$
$ModuleFileDir$
$ProjectFileDir$
$Sourcepath$
I'm pretty sure CrazyCoder knows where the list of all available ones are...perhaps he can chime in on this question
If you press the "Insert macro..." button, it will show you the list of all available variables.

What does a number in a module name mean in Intellij IDEA project view?

I believe that is "static web" module.
Please notice "6" number on the screenshot. I don't know when it appeared and what it means.
It's a bookmark. To show and edit bookmarks use the following menu: Navigate > Bookmarks > Show bookmarks

How to add comment header to program automatically? Code::Blocks

I was using DevC++. It had a option under EDIT/INSERT/COMMENT HEADER to add comment header automatically. I switched to Code::Blocks. Does Code::Blocks have this option? I am searching internet but could not find any info on how to do that.
Thanks
What you need is Code Snippets Plugin which is already available in default Code::Blocks installation.
From View check "Code Snippets". Then right click to Code Snippets
menu and create a sub category named "Comments". Then right click to
"Comments" category and click to "Add Snippet". Then paste your
comment header and save it as "Header Comment". After that, you can
drag and drop your Header Comment anytime to anywhere.
Code snippets can be formed for other frequently used codes similarly.