What UML tool is this file from? - uml

I've got a bunch of *.uml files in one legacy project that look like this:
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>JS</ID>
<OriginalElement>...</OriginalElement>
<nodes />
<settings layout="Hierarchic Group" zoom="0.8528951486697965" x="288.0" y="309.5" />
<SelectedNodes />
<Categories>
<Category>Fields</Category>
</Categories>
<SCOPE>All</SCOPE>
<VISIBILITY>PUBLIC</VISIBILITY>
</Diagram>
Any idea which tool generated this?

These files are IntelliJ IDEA (Ultimate Edition, not Community Edition) diagram files, used store UML diagrams generated by IntelliJ.
Here is an example shown in IntelliJ:
Here what the .uml file contains:
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>JAVA</ID>
<OriginalElement />
<nodes>
<node x="-317.5" y="-101.0">com.artechra.Detail</node>
<node x="-320.5" y="-195.0">com.artechra.Master</node>
</nodes>
<notes />
<edges>
<edge source="com.artechra.Master" target="com.artechra.Detail">
<point x="0.0" y="0.0" />
<point x="0.0" y="0.0" />
</edge>
</edges>
<settings layout="Hierarchic Group" zoom="1.0" x="0.0" y="0.0" />
<SelectedNodes />
<Categories />
<SCOPE>All</SCOPE>
<VISIBILITY>private</VISIBILITY>
</Diagram>
According to the text that appears in each diagram, it's all "powered by" yFiles which may well be the generic markup format.

Related

Haxe program to hide console

I am trying to hide the console when running the Haxe application.
I am using FlashDevelop to compile Haxe into hxcpp, and this is my project.xml
<?xml version="1.0" encoding="utf-8"?>
<project>
<!-- metadata, make sure 'package' is at least 3 segments (ie. com.mycompany.myproject) -->
<meta title="haxeGame" package="haxeGame" version="1.0.0" company="xiggie" />
<!-- output -->
<app main="Main" file="haxeGame" path="bin" />
<window width="800" height="480" fps="60" background="0x000000" orientation="landscape" resizable="false" borderless="true" />
<window vsync="true" antialiasing="6" />
<!-- classpath, haxe libs -->
<classpath name="src" />
<haxelib name="openfl" />
<haxelib name="actuate" />
<!-- assets -->
<icon path="assets/texture.jpg" />
<assets path="assets" rename="assets" />
<!-- optimize output
<haxeflag name="-dce full" /> -->
<!-- Windows app: hide console -->
<setenv name="no_console" value="1" />
<flag value="subsystem:windows" />
</project>
I have tried all of these:
<haxeflag name="-D no_console" />
<haxedef name="no_console" />
<setenv name="no_console" value="1" />
Is it actually possible to remove the console from the release app?
The console should be hidden by default. To make it appear one needs to add
<setenv name="SHOW_CONSOLE" />
However, when using mingw instead of msvc as compiler, the toolchain configuration that comes with hxcpp currently does not pass the flag to the linker that avoids the creation of a console window.
To work around this, search for the mingw-toolchain.xml in your haxe installation and add the -mwindows flag to the linker configuration.
I created a pull request for this https://github.com/HaxeFoundation/hxcpp/pull/286

Using Wix to generate an MSI

I am using Wix 3.8 to create an MSI installer for a Visual Studio project I have created. I followed this simple tutorial but even with this simply Wix project I am getting errors. Here is My
I have added my VS2012 project as a reference to my Wix Installer.
Here is my Product.ws file:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'
xmlns:iis='http://schemas.microsoft.com/wix/IIsExtension'>
<Product Id="*" Name="MyProjectInstaller2" Language="1033" Version="2.0.0.0" Manufacturer="Company" UpgradeCode="7f5b63be-bdad-4cc9-b4df-b3f1648c0539">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate />
<Feature Id="ProductFeature" Title="MyProjectInstaller2" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="MyProjectInstaller2" />
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
<!-- <Component Id="ProductComponent"> -->
<File Source="$(var.MyProject.TargetPath)" />
<!-- </Component> -->
</ComponentGroup>
</Fragment>
</Wix>
When I compile this, I get the following error:
The ComponentGroup element contains an unexpected child element 'File'.
I have searched the bowels of the internet for a solution to this very basic problem. Why is VS2012 not recognising the element?
You should follow next hierarchy: ComponentGroup -> Component -> File and etc. In your example i suggest to you to put File element into separated component and then add this component into ComponentGroup. Try something like this:
<Component Directory="YOUR-DIRECTORY" Guid="your-guid" Id="SomeComponent">
<File Source="$(var.MyProject.TargetPath)"/>
</Component>
<ComponentGroup Directory="INSTALLFOLDER" Id="ProductComponents">
<ComponentRef Id="SomeComponent"/>
</ComponentGroup>
Read the TODO comment right above your <File Source>
You need to remove the comments around <Component Id="ProductComponent"> and </Component>.

Office 2013 Apps publishing not listed in apps from "Shared Folder"

I am trying to create an Office 2013 app by publishing on Network Share. For this I created the following Manifest file,
<?xml version="1.0" encoding="utf-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ver="http://schemas.microsoft.com/office/appforoffice/1.0"
xsi:type="ContentApp">
<Id>df5b5660-84ce-11e1-b0c4-0800200c9a66</Id>
<AlternateId>en-US\WA123456789</AlternateId>
<Version>1.0.0.0</Version>
<ProviderName>Microsoft</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Sample content app" />
<Description DefaultValue="Describe the features of this app." />
<Hosts>
<Host Name="Presentation" />
<Host Name="Excel" />
</Hosts>
<DefaultSettings>
<SourceLocation DefaultValue="https://www.bing.com" />
<RequestedWidth>400</RequestedWidth>
<RequestedHeight>400</RequestedHeight>
</DefaultSettings>
<AllowSnapshot>true</AllowSnapshot>
</OfficeApp>
And after that I added the entry in Trusted Apps catalog,
But I am not able to see my app in the list here,
Please guide me whats wrong am doing here.
I found that Microsoft have released a service pack which needs updated version of the manifest, Below is the working manifest...
<?xml version="1.0" encoding="utf-8"?>
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ContentApp">
<Id>01eac144-e55a-45a7-b6e3-f1cc60ab0126</Id>
<AlternateId>en-US\WA123456789</AlternateId>
<Version>1.0.0.0</Version>
<ProviderName>Microsoft</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Sample content app" />
<Description DefaultValue="Describe the features of this app." />
<IconUrl DefaultValue="https://contoso.com/ENUSIcon.png" />
<Hosts>
<Host Name="Workbook" />
<Host Name="Presentation" />
</Hosts>
<DefaultSettings>
<SourceLocation DefaultValue="https://www.bing.com" />
<RequestedWidth>400</RequestedWidth>
<RequestedHeight>400</RequestedHeight>
</DefaultSettings>
<AllowSnapshot>true</AllowSnapshot>
</OfficeApp>

Wix Toolset copy file issue

I am new to wix and am havaingsome issues using the copyfile component in wix. Please can you loke at the code below and advise. Many Thanks in advanced.
I have 3 features, 3 componentgroups & 3 components as described below with the respective directoryRef
<Feature Id = "F1" Title "T1" Level ="1">
<ComponetGroupRef Id="CG1" />
<Condition Level="1">
<![CDATA[ComputerName="S1"]
</Condition>
</Feature>
<Feature Id = "F1" Title "T1" Level ="1">
<ComponetGroupRef Id="CG2" />
<Condition Level="1">
<![CDATA[ComputerName="S2"]
</Condition>
</Feature>
<Feature Id = "F1" Title "T1" Level ="1">
<ComponetGroupRef Id="CG3" />
<Condition Level="1">
<![CDATA[ComputerName="S3"]
</Condition>
</Feature>
<ComponentGroup id="CG1">
<ComponentRef id="c1" />
</ComponentGroup>
<ComponentGroup id="CG2">
<ComponentRef id="c2" />
</ComponentGroup>
<ComponentGroup id="CG3">
<ComponentRef id="c1" />
<ComponentRef id="c2" />
</ComponentGroup>
<DirectoryRef Id"ApplicationDirectory">
<Component Id="C1" Guid="xyz">
<File Id="F1"KeyPath="yes" Source="Some Source Location">
<CopyFile Id="CF1" DestinationDirectory="Dest1" />
</File>
</Component>
<Component Id="C2" Guid="abc">
<File Id="F2"KeyPath="yes" Source="Some Source Location">
<CopyFile Id="CF2" DestinationDirectory="Dest2" />
</File>
</Component>
</DirectoryRef>
so basically if I am running the wix msi on server S1 only File F1 should be copied, when I am running on server S2 only File F2 should be copied and when I am running on Server S3, Files F1 & F2 both should be copied.
The issue I am having is that all the files are being copied irrespictive or server name match.
Can you please advise if I am being foolish.
Thanks,
Janak
Wix is not for copy.
I defined a different wix template project for the work I wanted to do. So instead of copy from destination to another location. I changed the project implementation so that it copies from source to a different destination.

MOSS 2007 - Custom Aspx Pages Created With Feature

(I have also asked this question on SharePoint Overflow.)
I have a SharePoint feature I'm using to add some custom aspx files to the Pages Library.
When I activate the feature, I can visit the pages in-browser and they are visible in SPDesigner, but when I "View All Site Content" they are not there.
Why is this the case?
The Feature's Elements File:
<?xml version="1.0" encoding="utf-8"?>
<Elements Id="9e85eb79-6d8d-4ff3-b0d4-64d55c3bb577" xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Pages" Url="Pages">
<File Path="Example.aspx" Url="Example.aspx" IgnoreIfAlreadyExists="False">
<Property Name="Title" Value="The Example" />
<Property Name="ContentType" Value="Page" />
</File>
</Module>
</Elements>
The Aspx File:
<%# Page language="C#" Inherits="System.Web.UI.Page,System.Web,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" MasterPageFile="~masterurl/default.master"%>
<%-- deliberately left empty -->
(yup, it's empty!)
Addendum
When I "visit the pages in-browser" I mean navigate to their URLs manually: http://myserver:PORT/subsite/Pages/Example.aspx
When I "View All Site Content" I am looking at the contents of the "Pages" list: http://myserver:PORT/subsite/Pages/Forms/AllItems.aspx
I got an answer on SharePoint Overflow:
The File Node should have Type="GhostableInLibrary", because "Pages" is a document library. When ever you provision a file in a document library you need to have ghostableinlibrary set.
eg:
<?xml version="1.0" encoding="utf-8"?>
<Elements Id="9e85eb79-6d8d-4ff3-b0d4-64d55c3bb577" xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Pages" Url="Pages">
<File Path="Example.aspx" Url="Example.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="False">
<Property Name="Title" Value="The Example" />
<Property Name="ContentType" Value="Page" />
</File>
</Module>
</Elements>
So in the end the XML I'm using is...
<?xml version="1.0" encoding="utf-8"?>
<Elements Id="9e85eb79-6d8d-4ff3-b0d4-64d55c3bb577" xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Pages" Url="Pages">
<File Path="Example.aspx" Url="Example.aspx" IgnoreIfAlreadyExists="False" Type="GhostableInLibrary">
<Property Name="Title" Value="The Example" />
</File>
</Module>
</Elements>

Resources