[openrtm-commit:00530] r229 - in trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui: dialog editor

openrtm @ openrtm.org openrtm @ openrtm.org
2011年 12月 31日 (土) 01:41:16 JST


Author: sakamoto
Date: 2011-12-31 01:41:15 +0900 (Sat, 31 Dec 2011)
New Revision: 229

Modified:
   trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/dialog/ProfileInformationDialog.java
   trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java
Log:
Modified DateTime format #1452

Modified: trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/dialog/ProfileInformationDialog.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/dialog/ProfileInformationDialog.java	2011-12-30 16:40:36 UTC (rev 228)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/dialog/ProfileInformationDialog.java	2011-12-30 16:41:15 UTC (rev 229)
@@ -183,12 +183,6 @@
 	protected void configureShell(Shell shell) {
 		super.configureShell(shell);
 		shell.setText(Messages.getString("ProfileInformationDialog.9")); //$NON-NLS-1$
-		int x = 550;
-		int y = 400;
-
-		shell.setBounds(shell.getDisplay().getBounds().width / 2 - x / 2, shell
-				.getDisplay().getBounds().height
-				/ 2 - y / 2, x, y);
 	}
 
 	@Override
@@ -361,6 +355,7 @@
 		gd.grabExcessVerticalSpace = true;
 		gd.grabExcessHorizontalSpace = true;
 		gd.minimumWidth = 320;
+		gd.heightHint = 100;
 		viewer.getTable().setLayoutData(gd);
 		setViewerInput();
 		

Modified: trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java	2011-12-30 16:40:36 UTC (rev 228)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java	2011-12-30 16:41:15 UTC (rev 229)
@@ -15,7 +15,9 @@
 import java.util.Iterator;
 import java.util.List;
 
+import javax.xml.datatype.DatatypeConstants;
 import javax.xml.datatype.DatatypeFactory;
+import javax.xml.datatype.XMLGregorianCalendar;
 
 import jp.go.aist.rtm.systemeditor.RTSystemEditorPlugin;
 import jp.go.aist.rtm.systemeditor.extension.SaveProfileExtension;
@@ -98,6 +100,7 @@
 import org.openrtp.namespaces.rts.version02.RtsProfileExt;
 
 import com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl;
+import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
 
 public abstract class AbstractSystemDiagramEditor extends GraphicalEditor {
 
@@ -359,10 +362,9 @@
 		}
 
 		getSystemDiagram().setSystemId(dialog.getSystemId());
-		DatatypeFactory dateFactory = new DatatypeFactoryImpl();
-		getSystemDiagram().setUpdateDate(
-				dateFactory.newXMLGregorianCalendar(new GregorianCalendar())
-						.toString());
+		XMLGregorianCalendar calendar = new XMLGregorianCalendarImpl(new GregorianCalendar());
+		calendar.setMillisecond(DatatypeConstants.FIELD_UNDEFINED);
+		getSystemDiagram().setUpdateDate(calendar.toString());
 
 		// TODO バージョンアップログへの対応
 
@@ -405,13 +407,10 @@
 		}
 
 		getSystemDiagram().setSystemId(dialog.getSystemId());
-		DatatypeFactory dateFactory = new DatatypeFactoryImpl();
-		getSystemDiagram().setCreationDate(
-				dateFactory.newXMLGregorianCalendar(new GregorianCalendar())
-						.toString());
-		getSystemDiagram().setUpdateDate(
-				dateFactory.newXMLGregorianCalendar(new GregorianCalendar())
-						.toString());
+		XMLGregorianCalendar calendar = new XMLGregorianCalendarImpl(new GregorianCalendar());
+		calendar.setMillisecond(DatatypeConstants.FIELD_UNDEFINED);
+		getSystemDiagram().setCreationDate(calendar.toString());
+		getSystemDiagram().setUpdateDate(calendar.toString());
 
 		// TODO バージョンアップログへの対応
 



openrtm-commit メーリングリストの案内