[Jiemamy-notify:2289] commit [3326] [ECL-15] composer パッケージ、途中まで。

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2009年 4月 21日 (火) 00:27:48 JST


Revision: 3326
          http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=3326
Author:   ewigkeit1204
Date:     2009-04-21 00:27:48 +0900 (Tue, 21 Apr 2009)

Log Message:
-----------
[ECL-15] composer パッケージ、途中まで。

Modified Paths:
--------------
    hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/DatabaseImportWizard.java
    hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/DatabaseImportWizardPage.java

Added Paths:
-----------
    hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/Messages.java
    hestia/trunk/org.jiemamy.eclipse.ui/src/main/resources/org/jiemamy/eclipse/composer/
    hestia/trunk/org.jiemamy.eclipse.ui/src/main/resources/org/jiemamy/eclipse/composer/messages.properties
    hestia/trunk/org.jiemamy.eclipse.ui/src/main/resources/org/jiemamy/eclipse/composer/messages_ja.properties


-------------- next part --------------
Modified: hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/DatabaseImportWizard.java
===================================================================
--- hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/DatabaseImportWizard.java	2009-04-19 02:04:06 UTC (rev 3325)
+++ hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/DatabaseImportWizard.java	2009-04-20 15:27:48 UTC (rev 3326)
@@ -68,7 +68,7 @@
 	}
 	
 	public void init(IWorkbench workbench, IStructuredSelection currentSelection) {
-		setWindowTitle("SQLにエクスポート"); // RESOURCE
+		setWindowTitle(Messages.DatabaseImportWizard_title);
 //		setDefaultPageImageDescriptor(IDEWorkbenchPlugin.getIDEImageDescriptor("wizban/exportdir_wiz.png"));
 		setNeedsProgressMonitor(true);
 	}

Modified: hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/DatabaseImportWizardPage.java
===================================================================
--- hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/DatabaseImportWizardPage.java	2009-04-19 02:04:06 UTC (rev 3325)
+++ hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/DatabaseImportWizardPage.java	2009-04-20 15:27:48 UTC (rev 3326)
@@ -71,10 +71,6 @@
 		"*.*"
 	};
 	
-	private static final String CONNECTION_TEST = "接続テスト(&T)"; // RESOURCE
-	
-	private static final String RECONFIGURE = "再設定(&T)"; // RESOURCE
-	
 	private Combo cmbDialect;
 	
 	private org.eclipse.swt.widgets.List lstDriverJars;
@@ -309,11 +305,11 @@
 		txtSchema.setEnabled(true);
 //		btnImportDataSet.setEnabled(true);
 		
-		btnTest.setText(CONNECTION_TEST);
+		btnTest.setText(Messages.DatabaseImportWizardPage_btn_connectionTest);
 	}
 	
 	private void connectionSucceeded() {
-		btnTest.setText(RECONFIGURE);
+		btnTest.setText(Messages.DatabaseImportWizardPage_btn_reconfigure);
 		
 		cmbDialect.setEnabled(false);
 		lstDriverJars.setEnabled(false);
@@ -381,12 +377,12 @@
 	 */
 	private void createTestButton(Composite composite) {
 		btnTest = new Button(composite, SWT.PUSH);
-		btnTest.setText(CONNECTION_TEST);
+		btnTest.setText(Messages.DatabaseImportWizardPage_btn_connectionTest);
 		btnTest.addSelectionListener(new SelectionAdapter() {
 			
 			@Override
 			public void widgetSelected(SelectionEvent e) {
-				if (btnTest.getText().equals(RECONFIGURE)) {
+				if (btnTest.getText().equals(Messages.DatabaseImportWizardPage_btn_reconfigure)) {
 					connectionSettingReconfigure();
 				} else {
 					testConnection();

Added: hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/Messages.java
===================================================================
--- hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/Messages.java	                        (rev 0)
+++ hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/Messages.java	2009-04-20 15:27:48 UTC (rev 3326)
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ * Created on 2009/04/20
+ *
+ * This file is part of Jiemamy.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific language
+ * governing permissions and limitations under the License.
+ */
+package org.jiemamy.eclipse.composer;
+
+import java.util.Locale;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * Composer パッケージのメッセージリソースクラス。
+ * 
+ * @author Keisuke.K
+ */
+class Messages extends NLS {
+	
+	/** DatabaseImportWizard のタイトル */
+	public static String DatabaseImportWizard_title;
+	
+	/** DatabaseImportWizardPage 接続テストボタン */
+	public static String DatabaseImportWizardPage_btn_connectionTest;
+	
+	/** DatabaseImportWizardPage 再設定ボタン */
+	public static String DatabaseImportWizardPage_btn_reconfigure;
+	
+	private static final String BUNDLE_NAME = Messages.class.getName().toLowerCase(Locale.US);
+	
+	static {
+		reloadMessages();
+	}
+	
+
+	/**
+	 * load message values from bundle file
+	 */
+	private static void reloadMessages() {
+		initializeMessages(BUNDLE_NAME, Messages.class);
+	}
+	
+}


Property changes on: hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/composer/Messages.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: hestia/trunk/org.jiemamy.eclipse.ui/src/main/resources/org/jiemamy/eclipse/composer/messages.properties
===================================================================
--- hestia/trunk/org.jiemamy.eclipse.ui/src/main/resources/org/jiemamy/eclipse/composer/messages.properties	                        (rev 0)
+++ hestia/trunk/org.jiemamy.eclipse.ui/src/main/resources/org/jiemamy/eclipse/composer/messages.properties	2009-04-20 15:27:48 UTC (rev 3326)
@@ -0,0 +1,20 @@
+###############################################################################
+# Copyright 2007-2009 Jiemamy Project and the Others.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
+# either express or implied. See the License for the specific language
+# governing permissions and limitations under the License.
+###############################################################################
+
+DatabaseImportWizard_title = Export to SQL
+
+DatabaseImportWizardPage_btn_connectionTest = &Test connection
+DatabaseImportWizardPage_btn_reconfigure = &Reconfigure


Property changes on: hestia/trunk/org.jiemamy.eclipse.ui/src/main/resources/org/jiemamy/eclipse/composer/messages.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: hestia/trunk/org.jiemamy.eclipse.ui/src/main/resources/org/jiemamy/eclipse/composer/messages_ja.properties
===================================================================
--- hestia/trunk/org.jiemamy.eclipse.ui/src/main/resources/org/jiemamy/eclipse/composer/messages_ja.properties	                        (rev 0)
+++ hestia/trunk/org.jiemamy.eclipse.ui/src/main/resources/org/jiemamy/eclipse/composer/messages_ja.properties	2009-04-20 15:27:48 UTC (rev 3326)
@@ -0,0 +1,20 @@
+###############################################################################
+# Copyright 2007-2009 Jiemamy Project and the Others.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
+# either express or implied. See the License for the specific language
+# governing permissions and limitations under the License.
+###############################################################################
+
+DatabaseImportWizard_title = SQL\u306b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8
+
+DatabaseImportWizardPage_btn_connectionTest = \u63a5\u7d9a\u30c6\u30b9\u30c8(&T)
+DatabaseImportWizardPage_btn_reconfigure = \u518d\u8a2d\u5b9a(&R)


Property changes on: hestia/trunk/org.jiemamy.eclipse.ui/src/main/resources/org/jiemamy/eclipse/composer/messages_ja.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain



Jiemamy-notify メーリングリストの案内
アーカイブの一覧に戻る