Eclipse Papyrus UML plugin fails to load list of C++ stereotypes in class diagram - c++

I am still new to Papyrus, but have been following along with some tutorials.
I am working on a C++ class model and was trying to add some stereotypes to some class properties. But when I go to the class Profile, Apply Stereotypes option, or even the class property Apply Stereotype option, the list of available stereotypes is always empty. I added the AnsiClibrary and the STD packages already, so those data types and such are there. But for some reason my list of available stereotypes is always empty.
I there something I am missing in getting the stereotype list to populate?
I included a picture.

It seems, from your image, that you do not have the C_Cpp profile applied.
Did you instal the Designer-CPP (Incubation) additional component? That's the component that provides the CPP stereotypes.
Once you have that component installed, you will be able to add the "C/C++ profile" (a.k.a, "C_Cpp") to your model (by using the [+] button in the Profile tab of the Properties view for the model) and then apply the stereotypes it provides to your model elements. At that point, the stereotypes should be visible. If not, you can use the "Appearance" tab of the properties view for the element to make the stereotype visible.

I had the same problem as of December 2019 and found a solution. For those who are having the same problem, might find a solution like this:
Copy latest Papyrus link, by visiting here.
Open Eclipse. Help->Install New Software, paste your link here and install Papyrus.
Copy this link directly.
Go to Help->Install New Software, paste your link here.
Make sure you check Papyrus C++ profile, ... as in the image. (I am not sure if the other checks are required.)
At the end of the installation you should have both Papyrus and its C++ available for code generation out of UML.
References:
https://wiki.eclipse.org/Java_Code_Generation

Related

C++ class diagram Visual Studio 2022. I can't add a class to the mapping

Once again, the God-fearing and beloved (no) program Vusial Studio is forcing me to ask for help! I have a problem with the class diagram in C++. I want to add a class to the display and....error
"One or more of the selected elements cannot be added to the class diagram. This may be due to several limitations of the tool. Call for help for more information."
(by dragging and dropping from the Solution Explorer to the diagram)
I have no idea how to deal with it. Maybe it has something to do with adding the project to the version control system.
This is what the project schema looks like:
Tried adding a class to the diagram and waiting for it to display
According to the document: Class Designer errors:
Class Designer does not track the location of your source files
To resolve the error, drag the modified or relocated source code to
the class diagram again to display it.
This problem also occurs in my new MFC app. I opened the class file to make some changes and save it. Then the class designer works fine.

How to enable package controls in project properties

When you create for example .Net Standard project you will see a package tab in project properties. I see it now, but to my surprise most of the controls on this tab is disabled (and empty, i.e. disabled=empty). If it matters, the project is FSharp.Data.
The odd thing is, all those fields have values really, I can edit project directly, and making package works with those "hidden" values. The only thing missing, I don't see values in UI and cannot edit them directly.
My question is how to enable all controls in package tab?

How to add custom menu in Sitecore menu list

i want to add my custom application name in Sitecore Start Menu List, i'm following this article :
Adding Application Shortcut
it saying use Core database i'm using this, i couldn't find Layout studio, can any sitecore developer suggest me how to find this and finish my job. Thanks in advance.
I think the instructions you've linked to there are out of date. I've not seen that bit of UI in recent releases of Sitecore.
Working in Sitecore 6.6 I've successfully made custom applications using these instructions:
http://sdn.sitecore.net/Articles/Customizing%20Sitecore%20Client/Adding%20an%20Application%20Shortcut/Creating%20an%20Application.aspx
But beware the issue that I've blogged about here. The recent revisions of Sitecore subtly break the configuration defined above, and you have to manually edit out a file extension to make everything work:
https://jermdavis.wordpress.com/2014/10/20/a-gotcha-with-custom-applications/
-- Edited to add --
Based on the "it doesn't work in 7.5" comment below, I've tried these instructions on a test instance of Sitecore 7.5 rev 141003. It seems 7.5 behaves slightly differently - but I can still make it work.
Create the item under /sitecore/content/Applications using the external link button for the "Application" field. With raw values displayed, it should look something like:
And then create your application shortcut under /sitecore/content/Documents and settings/All users/Start menu using an internal link for the Application field. I found this still added the '.aspx' extension mentioned in my blog post, but I also found that editing it out again didn't work - it reappeared as soon as I hit save. I needed to edit out the extension from the link data using the Raw Values view in order to get the data shown below:
With those things set up, refreshing the page caused the test item to appear on my start menu:
Hopefully that works for you too?
-- Further edited to add --
New blog post covering this problem in Sitecore 7.5:
https://jermdavis.wordpress.com/2015/01/19/gotchas-with-custom-apps-v2/
Which version of Sitecore are you using? The Layout Studio is probably one of the least features in Sitecore, and personally not something I have ever used.
Instead you should create the the layout in Visual Studio - which then means your layout can be added to your Source Control System. Then follow the instructions in the link in Jeremy's answer.
If you do need to access the Layout Studio for some reason you can find it under: Sitecore menu > Development Tools > Developer Center. From there you can create new files/open existing files.

Search tags/facets in Sitecore Item Buckets

I'm looking to use the Sitecore Item Buckets package from Shared Source since I needed faceted search functionality and it makes sense to use the built in functionality rather than writing by own Lucene.Net search.
Sitecore Item Buckets
I'm having trouble with the search, or maybe I am reading the documentation wrong.
According to the documentation in section 2.2.3 & 3.1.3 I just need to mark a field as "Is Facet" and my filter will show in the search results.
I've also defined a tag field on the template and changed the Tag Parent field in "/sitecore/system/Modules/Item Buckets/Item Buckets Settings" to point to correct folder. This is working correctly, I can apply a set of tags to an item and search from the Bucket UI using "tag:CSharp" and it brings back the correct results, but again there is no filter shown in the list. I've rebuilt the bucket indexes in all cases.
Am I missing something? Should these show up in the list automatically, do I need to change some settings or provide my own implementation?
Screenshot
This is all within the Buckets Client UI, I haven't started writing any code yet, and on a clean install of Sitecore 6.5 (update-5/rev. 120706).
I'm not sure the documentation wording around this is entirely clear at the points I've mentioned. If you read further down the document though, section 4.3:
Item Buckets ships with 5 different types of faceting.
Templates
Fields
Dates
Locations
Authors
If you would like to introduce your own faceting categories then you only need to implement the IFacet interface.
There is an example of IFacet implementation in the documentation, or use dotPeek to look at the implementations of the existing Facets.
You also need to add an item to Sitecore: /sitecore/system/Modules/Item Buckets/Facets

How can I visually design a component in C++ Builder?

I have been away from C++ for a couple of years now doing AS3/Flex work. I have gotten used to being able to create a component and place it in design mode with very little fuss and I am struggling to get my head around the C++ Builder way of doing the same thing.
I have written many components for C++ Builder in the past, but none of them have been visual. What I would like to do now is create a component for customer search and another for order processing because I want to be able to create a new instance of these on the fly. What I don't want to do is have to place each of the components like the dbgrid and search fields manually in code. I would like to do this (as well as set their properties) in design mode.
How do I go about this? I have browsed the source for other Delphi components and I notice they have dfm files which seems to be what I need. How do I do this in C++ Builder? The only option I see is to add a new form if I want a dfm, but this isn't what I want as my components will be based on TPanel.
Is there a way to do this or do I have to resort to doing it all in code with no visual reference?
Pursuing the DFM idea I did a test this morning where I created a component based on TPanel and added a new form to it which I create and parent in the constructor of the component. In design mode I set the form border to none and placed a grid on it. This all looks OK until I place the component in my application, at that point it looks like a panel with a standard looking form in it and the grid is missing. If I run the app the panel shows as expected, borderless and with a grid. The DFM appears to be ignored in design mode for some reason.
If you know a better way to do this than using components then please give me some pointers.
Any help and advice will be appreciated beyond words
You might want to have a look at frames (look for "Frame objects"). They are "subforms" you can design visually and then place on forms.
Just as an FYI item, you can also drop the panel on a form, put any other controls on it, position them, set captions, etc..
Now, click the panel to select it, and use Component->Create Component Template from the IDE's main menu. This creates a unit you can install as a component which will add the panel and it's sub-controls (as a single component) to the IDE's component palette.
Of course, you can then modify the source for that new component like any other component source.