Eclipse plug-in: ObjectAid UML Explorer Class Diagram: export in higher resolution - eclipse

I am using ObjectAid UML Explorer to generate a UML Class Diagram from my code.
I need to include the output PNG in a LaTeX document and what I get is way too low resolution for inclusion.
How can I get higher resolution output from the Eclipse plug-in?
I can see the internal format of a .ucls file is just XML:
<class-diagram version="1.0.10"...
Is there a way to get something more dense than 72dpi or something in a scalable format, say EPS or similar? The target document is > 300dpi so 72dpi does not even come close, unfortunately. Whatever rasterises the XML definition has to accept a trap and a pluggable module?
I need something that plugs into the auto-save mechanism of ObjectAid...

I've found a dirty but easy solution to the problem.
By printing the diagram to a PDF, e.g. with programs like PDFCreator, you gain a vector graphic in the PDF. With a graphics editing program like Adobe Photoshop or Gimp you can raster the PDF to a high quality PNG.
It worked fine for me.
With ObjectAid's Diagram Add-On you can make some customizations regarding the printing scale. There's also the possibility to save the diagrams as SVG image, which you can convert to a high quality pixel image, too.

Did you try to use a cropping/design tool such as snagit which would crop a copy of your computer screen and export it in high definition such as an image or directly paste and copy inside a word document ?
I have the same problem than you for providing documentation of my java code. I use EclipseUML Omondo but the image export is pretty poor too. I now prefer to use specific cropping tool for my image export which is a lot better.
I mean that you create the view you need on your computer screen then crop it and paste it in your documentation. I like to use the snagit's paste and copy feature with Microsoft word.
My favorite tool for cropping my UML diagrams is snagit.

Not possible until ObjectAid implements the feature...

Although it's not glamorous, what I did was go into Window | Preferences | General | Appearance | Colors and Fonts inside Eclipse and set all the text fields to double their size.
This created a larger diagram and the export was therefore in a higher res.

Related

Creating activitybar Icons for VS Code

I have been trying numerous editors, from Inkscape, to online converters, to MS store apps, etc.
All I'm trying to do is find an easy way to create either transparent PNG files or SVG files for the activitybar icon inside of VS Code for an extension I'm working on.
Everything I've tried either totally warps the dimensions of what I create and seems to blow the image way up inside the activity bar, even though the files I'm saving as PNG are all 128px x 128px with 32 bit depth, same as another that ships with examples from https://github.com/Microsoft/vscode-extension-samples/tree/master/tree-view-sample
What I see in VS Code after specifying the path in the extension package.json:
What I am trying to get it to look like:
I've tried using SVG viewer plugins for VS Code as well, and sometimes the SVG's I've used don't even show up, even though an item does exist in the activity bar when I hover over the position it should be in.
Any modicum of help would be appreciated.

Installing custom fonts on Scratch

I for my project require to install a custom font for my program but cannot find the directory to install a new font. Where would I find it?
I have looked everywhere including the recycle bin
Assuming you are referring to Scratch 2, as Scratch 1.4 supports all fonts that are on your computer:
You cannot install a custom font into the Scratch 2 editor. However, you can do the next best thing; import the text. If you need the font in Vector mode (you probably should), you can use an SVG editor such as Inkscape to import the text with 100% quality, as if you had imported the font.
Make the text using the font tool. The positioning doesn't matter, we'll do that later.
Select the text.
Convert it to a path. In Inkscape, click on Path -> Object to Path or use Ctrl+Shift+C to do this. Other vector editors might will be different.
Save as SVG.
In Scratch, import the SVG file as a costume, or into an existing costume.
Move it into position, as you would any other text.
Done.
You cannot install a custom font into the Scratch editor. You'll need to use some graphic software like GIMP to make the words you need, then import the images.

Is there any way to automatize file export operation?

Recently I'm using CorelDraw to create icons for my android application, and I have a little problem. Each icon has to be exported as a png to 6 different sizes, and it is quite annoying to export each icon 6 times. Is there any way to create a macro or other automation stuff that will do for example 6 exports of a file to a dedicated location? All the export settings besides the width and height are the same.
Uses the ActiveDocument.ExportBitmap command to export something as a PNG.
Here is someone over at the corel draw community calling it.
The resolutions are passed as arguments to ExportBitmap. Make a macro that hard codes 6 sizes and exports them to slightly different filenames.
You may not find a free macro as your request on the net. You should ask it to macro developer as it's custom macro.
I got idea for this request.
Macro interface loaded :
a text box for entering png name (or auto numbering)
text boxes for prefix and suffix name (6x)
auto filled file path for each of 6
a button for execute
Select Icon, then click the button. The selected icon will exported to predefined folder with specific name.
i.e :
Prefix_Icon1_48x48.png
Prefix_Icon1_72x72.png
Prefix_Icon1_96x96.png
and so on.
If all your ison is as ONE PAGE only, the macro will available exported each icon as 6 sizes png, WITH auto filenaming function.
Yup, I think it would be as commercial macro.

Eclipse (Juno) debugger callstack with full qualified class names

Is there a way i can display fully qualified class names for the debugger's callstack?
E.g. rather than this:
I would like to have the packages of the classes included - like where the green boxes remain here:
(NOTE: Actually i dont care where they are displayed as long as there is a easy way to determine the package of a class in the callstack)
Motivation:
I am currently working on legacy systems where there is multiple layers of frameworks (both self-made as well as old stuff like Struts 1.1.), service components etc. etc. and i try to figure out the first point our code is included in some way). Since there are now about 100 Projects in my Eclipse -all with their Maven dependencies - things get complicated by just "Link with Editor" and see where the according class is placed in.
What i tried:
Aprox. 20min Webresearch (incl. reading the SO questions/ answers recommended when i created this question) without any remarkable results.
Using my entire design skills combinated with my 15+ years of MS Paint experience i drew the above images (Feel free to add those stunners to your art collection).
Does this help? In the upper right-hand corner of the Debug (callstack) view, click the menu button (the upside down white triangle), then Java, then see the 'Show Qualified Names' option.

Change order of images in icon file

Is there an app that can change the order of images inside an icon?
Thanks!
What you'll need to do that is a resource editor. A google search will reveal many free ones out there. The restorator is a great one, but not free and over-priced IMO.
Any decent resource editor will allow you to see icons in the exe or dll and save them or replace them. I don't know of any that will allow you to reorder them, but just about any out there would allow you to save the icons out and then replace them back in the exe/dll in whatever order you'd like.
The only resource editor I know of that will allow you to re-order the embedded icons including png compressed vista icons is Resource Tuner Console.
You can change the image order using Pixelformer (an icon/bitmap editor). Import the icon, reorder the images as you wish, then export it back.
Using a resource editor is not an easy way to do this because you have to edit both ICON and ICON GROUP and I tried to do this with Resource Hacker and could not do it.
I found Easy Icon Maker is able to rearrange the order of the icons properly... it's the only icon editor that I found with this option, and I tried about half a dozen. The editor itself is not nearly as good as IcoFX (http://portableapps.com/apps/graphics_pictures/icofx_portable)
Why would you want to do this? Well there are certain times when Windows will use the first icon file that matches the size, but this may not be the color-depth that you want... for instance if you are on an older machine like Windows 2000 that doesn't support Alpha Channels then putting these at the beginning of your ICO file will cause Windows 2000 to try to render it so it results in black dots all over the image.