PrimeFaces: How to increase the rendered size of a MindmapNode - primefaces

I am following the PrimeFaces MindMap example from:
http://www.primefaces.org/showcase/ui/mindmap.jsf
My question is: How do I increase the size of the "bubble" (MindmapNode) so that I can display more text within it?
Any help would be appreciated.

I looked at generated source and found that size is controlled by rx and ry in eclipse element. Just put your numbers there. Here is some source of mindMap maybe will be useful.

I spent forever trying to find out how to do this, so for anyone else who struggles, heres how to do it.
Open your primefaces jar file in a ZIP program such as WinZip.
Navigate to META-INF -> resources -> primefaces -> mindmap and open the mindmap.js file.
When I open it up even in an editor such as Notepad++ it is displayed entirely on one line. Therefore the easiest approach is just to search the file for this line:
raphael.ellipse
Within the brackets after that line are 4 values. The last 2 are the ones you are looking for. The first of the two is width and the last is height.
All you need to do then is to save the mindmap.js file, go back to WinZip and update the files in the jar, go to your project in Eclipse (or your chosen IDE), refresh the project and restart the server.
And your done.
I hope this helps somebody

Related

How to align code, in PhpStorm / Intellij, using tabs (and not spaces)

I'm trying to setup PhpStorm, so I can simply press: "Reformat Code" ( Option CMD L), before each save - and then it'll make everything look right.
But I have this case, where I don't know how to make PhpStorm make the code right.
This is the code:
As you can see, then indentation is with tabs, but the aligning of the characters are with spaces.
I want it to look like this:
It would be cool to get the solution. But it would be even cooler to be able to figure out, how I could have found the solution myself.
Further info / idea: There is a Php Codesniffer from Squizlabs implemented. So I can fix is automatically by running a sniff fix-command. It would be pretty cool, to be able to automatically setup PhpStorm's Code style settings, to correspond with Squizlabs styles, without having to gradually tune the settings one thing at the time. But I haven't found that functionality.
Solution attempt 1: Read through all Settings >> Editor >> Code style >> PHP
I couldn't find anything that resembled this.
Solution attempt 2: Disable .editorconfig
I've read quite a bit about .editorconfig and it doesn't have these nitty-gritty functions here (as aligning equal signs).
But to make sure, I tried disabling it. Didn't make a difference.
Solution attempt 3: Search setting for 'align' and 'formatting'
But I didn't find anything useful. :-/
Solution attempt 4: Update PhpStorm
I was on PhpStorm version 2022.2.1.
I tried updating to PhpStorm version 2022.2.4.
This is still in progress.
Please show what you have at Settings (Preferences on macOS) | Editor | Code Style | PHP, specifically Tabs and Indents tab.
Checking Use tab character option with unchecked Smart tabs should do just that.
https://www.jetbrains.com/help/phpstorm/2022.3/settings-code-style-php.html#php-specific-formatting-settings-for-tabs-and-indents
(Pro tip: you can copy-paste your code sample in the preview area and start changing the options; the IDE will apply the changes live on the provided code sample instead of the default one.)

finding index.html on sidebar in visual studio code

Hi so I was trying to learn json for the first time and in the tutorial theres a section where you need to open index.html but that is not on my sidebar and I have absolutely no clue how to find/open it.
In the tutorial theres a drop down marked as "current project" which is not present on my screen and the index.html is in that. Is there an easy way to find where this is?
for anyone curious the tutorial im following is https://www.youtube.com/watch?v=iiADhChRriM and I saw at 6:43 it was there when he opened the program
this is my sidebar for reference
idk if im just dumb or my progam is being stupid but i need to find the answer so i can continue this project as soon as possible
Ok, so here is how the visual studio code side bar works, the first line you see (open editors) is a list of all open files, you don't have to pay mind to it,
but you can use it to find files you were editing earlier if you want.
The second line (physicsdemoassessment) is your current directory, there you can see all files on the directory.
This means that visual studio code is currently open on your old project, you say you didn't use it, but you probably opened vs code at some point on your project once, and vs code remembers.
You should make a new project to follow the tutorial. Go to File->Open Folder and pick a folder or make an empty folder and select it.
The reason why the tutorial's side bar says current project is because that is the name of the folder he's working on. so if you want to name your project that as well you should name the folder you open that.
Finally, to "find" the index.html file, as he explains in the video, this is just a very basic file, he made it before the tutorial started, it's not a vs code thing. You have to write the file yourself.
I hope my explanation was clear and solves your issue.

Visual Studio Code Not Auto-Close Tags in HTML

So version before 1.30 worked fine, and did close the Tags in .html file, but as of 1.30 update I can't finish and then try to close it with
I have tried to delete config.json file, also tried to turno on every possible option for auto-close and auto-complete tags in options, but nothing worked.
And Sublime it's working fine. I downloaded plugin to transfer Sublime confing into Visual Studio Code but without success. Hope you can help me out, since i've been trying to fix this problem 3 hours now.
I had the same problem, then I noticed that my select language mode was something like Django HTML. Solved after changing it.
You might have opened a file before that changed the language mode. So first, check the language shown at the bottom-right of the VS Code window (status bar), then follow the steps bellow.
Go to settings (or edit the settins.json file) and search emmet.includeLanguages, then press add item under Emmet: Include Languages. input the language you are using in item field and html in value field.

Display full path or namespace of .cshtml files in VS2012

I work with a lot of cshtml files in VS 2012, and a constant irritation is not being able to see the path or namespace of the file I'm working on (barring mouse hover every time).
I've googled quite a bit, haven't found any answer, and no VS Extension seems to do it either. Here's a screenshot of what exactly I mean (several index.cshtml, no easy way of distinguishing):
Either in a separate toolbar underneath like regular CS code files or as the tab title itself would be fine. Does anyone know of a tool or setting for this?

IntelliJ: Specify per-project tab size

Is there a way to set the tab size in IntelliJ for a single file only, or at most for a single project?
I use a tab size of 3 for all my code; however, I'm collaborating on a project with an author who prefers a tab size of 4. Is there a way to set the tab size to 4 for only those files that are part of this project?
Open the Settings dialog by navigating to File->Settings. Under Project Settings [yourproject] on the left side of the dialog, navigate to Code Style->General. The Tab size is configurable on that pane, and the value you provide applies only to the project named yourproject.
for those who can't find project specific setting
press Command + , will give you the preference you need
You can set a global format for the project and "reformat code" to conform to each one's preferred style.
The problem will be your version control system. If you oil can back and forth between 3 and 4 spaces you'll never be able to see meaningful changes.
Best to settle on one standard and stick to it.
The idea of a private project isn't clear to me. It comes down to your version control system. If it's possible to check code in and out so that tab size doesn't affect commits, then I'd say you can be independent. If you share the common code by adding a compiled 3rd party JAR, then I'd say you can be independent.
This is not an exact answer to your problem, but IntelliJ can currently (4/2013) "only" handle per-language tab-settings, which is - to be honest - totally okay as language and file type are usually "the same". So this your solve your problem.
You can find the setting in File -> Settings -> Project Settings -> Code Style -> >YOUR LANGUAGE.