}
public short executePropertiesDialog() {
if(m_xPropsDialog == null){
try {
XDialogProvider2 xDialogProv = getDialogProvider();
String sPackageURL = getPackageLocation();
String diagramDefine = "";
if(getController().getGroupType() == Controller.ORGANIGROUP)
diagramDefine = "OrganigramPropsDialog.xdl";
if(getController().getDiagramType() == Controller.VENNDIAGRAM)
diagramDefine = "VennDiagramPropsDialog.xdl";
if(getController().getDiagramType() == Controller.PYRAMIDDIAGRAM)
diagramDefine = "PyramidDiagramPropsDialog.xdl";
if(getController().getDiagramType() == Controller.CYCLEDIAGRAM)
diagramDefine = "CycleDiagramPropsDialog.xdl";
if(getController().getDiagramType() == Controller.TARGETDIAGRAM)
diagramDefine = "TargetDiagramPropsDialog.xdl";
if(getController().getDiagramType() == Controller.CONTINUOUSBLOCKPROCESS)
diagramDefine = "ContinuousBlockProcessPropsDialog.xdl";
if(getController().getDiagramType() == Controller.BENDINGPROCESS)
diagramDefine = "BendingProcessPropsDialog.xdl";
if(getController().getDiagramType() == Controller.STAGGEREDPROCESS)
diagramDefine = "StaggeredProcessPropsDialog.xdl";
if(getController().getDiagramType() == Controller.UPWARDARROWPROCESS)
diagramDefine = "UpwardArrowProcessPropsDialog.xdl";
String sDialogURL = sPackageURL + "/dialogs/" + diagramDefine;
if(getController().getGroupType() == Controller.ORGANIGROUP)
m_oListenerOfPropsDialogs = new ListenerOfOrganigroupPropsDialogs(this, m_Controller);
if(getController().getGroupType() == Controller.RELATIONGROUP)
m_oListenerOfPropsDialogs = new ListenerOfRelationgruopPropsDialogs(this, m_Controller);
if(getController().getGroupType() == Controller.PROCESSGROUP)
m_oListenerOfPropsDialogs = new ListenerOfProcessgroupPropsDialogs(this, m_Controller);
m_xPropsDialog = xDialogProv.createDialogWithHandler(sDialogURL, m_oListenerOfPropsDialogs);
if (m_xPropsDialog != null) {
//can set focus with XWindow interface in GuiOfDialogs.java
m_xPropsDialogWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, m_xPropsDialog);
XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xPropsDialog);