sType = "UpwardArrowProcess";
sourceFileName += "2";
}
XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xGalleryDialog);
XFixedText xDiagramNameText = (XFixedText) UnoRuntime.queryInterface(XFixedText.class, xControlContainer.getControl("Label1"));
XFixedText xDiagramDescriptionText = (XFixedText) UnoRuntime.queryInterface(XFixedText.class, xControlContainer.getControl("Label2"));
if(xDiagramNameText != null && xDiagramDescriptionText != null){
if(type == Controller.NOTDIAGRAM){
xDiagramNameText.setText("");
xDiagramDescriptionText.setText("");
}else{
String diagramNameProperty = sourceFileName + "." + sType + ".Label";
String diagramDescProperty = sourceFileName + "." + sType + "Description.Label";
xDiagramNameText.setText(getDialogPropertyValue(sourceFileName, diagramNameProperty));
xDiagramDescriptionText.setText(getDialogPropertyValue(sourceFileName, diagramDescProperty));
}
}
}
}