[teiid-commits] teiid SVN: r2101 - trunk/client/src/main/java/org/teiid/adminapi/impl.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Thu May 6 17:39:43 EDT 2010


Author: shawkins
Date: 2010-05-06 17:39:42 -0400 (Thu, 06 May 2010)
New Revision: 2101

Removed:
   trunk/client/src/main/java/org/teiid/adminapi/impl/AdminPlugin.java
Modified:
   trunk/client/src/main/java/org/teiid/adminapi/impl/PropertyDefinitionMetadata.java
   trunk/client/src/main/java/org/teiid/adminapi/impl/TransactionMetadata.java
Log:
TEIID-1086 removing the use of the admin plugin class

Deleted: trunk/client/src/main/java/org/teiid/adminapi/impl/AdminPlugin.java
===================================================================
--- trunk/client/src/main/java/org/teiid/adminapi/impl/AdminPlugin.java	2010-05-06 17:17:44 UTC (rev 2100)
+++ trunk/client/src/main/java/org/teiid/adminapi/impl/AdminPlugin.java	2010-05-06 21:39:42 UTC (rev 2101)
@@ -1,38 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * See the COPYRIGHT.txt file distributed with this work for information
- * regarding copyright ownership.  Some portions may be licensed
- * to Red Hat, Inc. under one or more contributor license agreements.
- * 
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- * 
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- * 
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301 USA.
- */
-
-package org.teiid.adminapi.impl;
-
-import java.util.ResourceBundle;
-import com.metamatrix.core.BundleUtil;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class AdminPlugin {
-
-    public static final String PLUGIN_ID = AdminPlugin.class.getPackage().getName();
-
-	public static final BundleUtil Util = new BundleUtil(PLUGIN_ID,
-	                                                     PLUGIN_ID + ".i18n", ResourceBundle.getBundle(PLUGIN_ID + ".i18n")); //$NON-NLS-1$ //$NON-NLS-2$
-
-}

Modified: trunk/client/src/main/java/org/teiid/adminapi/impl/PropertyDefinitionMetadata.java
===================================================================
--- trunk/client/src/main/java/org/teiid/adminapi/impl/PropertyDefinitionMetadata.java	2010-05-06 17:17:44 UTC (rev 2100)
+++ trunk/client/src/main/java/org/teiid/adminapi/impl/PropertyDefinitionMetadata.java	2010-05-06 21:39:42 UTC (rev 2101)
@@ -49,17 +49,17 @@
      */
     public String toString() {
         StringBuffer result = new StringBuffer();
-        result.append(AdminPlugin.Util.getString("MMPropertyDefinition.Display_name")).append(getDisplayName()); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("MMPropertyDefinition.Description")).append(getDescription()); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("MMPropertyDefinition.Property_type_class_name")).append(getPropertyTypeClassName()); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("MMPropertyDefinition.Default_value")).append(getDefaultValue()); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("MMPropertyDefinition.Constrained_to_allow_values")).append(isConstrainedToAllowedValues()); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("MMPropertyDefinition.Allowed_values")).append(getAllowedValues()); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("MMPropertyDefinition.Required")).append(isRequired()); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("MMPropertyDefinition.Expert")).append(isAdvanced()); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("MMPropertyDefinition.Masked")).append(isMasked()); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("MMPropertyDefinition.Modifiable")).append(isModifiable()); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("MMPropertyDefinition.RequiresRestart")).append(getRequiresRestart()); //$NON-NLS-1$
+        result.append("Display Name:").append(getDisplayName()); //$NON-NLS-1$
+        result.append("Description:").append(getDescription()); //$NON-NLS-1$
+        result.append("Property Type Classname:").append(getPropertyTypeClassName()); //$NON-NLS-1$
+        result.append("Default Value:").append(getDefaultValue()); //$NON-NLS-1$
+        result.append("Constrained To Allow Values:").append(isConstrainedToAllowedValues()); //$NON-NLS-1$
+        result.append("Allowed Values:").append(getAllowedValues()); //$NON-NLS-1$
+        result.append("Required:").append(isRequired()); //$NON-NLS-1$
+        result.append("Expert:").append(isAdvanced()); //$NON-NLS-1$
+        result.append("Masked:").append(isMasked()); //$NON-NLS-1$
+        result.append("Modifiable:").append(isModifiable()); //$NON-NLS-1$
+        result.append("RequiresRestart:").append(getRequiresRestart()); //$NON-NLS-1$
         return result.toString();
     }
     

Modified: trunk/client/src/main/java/org/teiid/adminapi/impl/TransactionMetadata.java
===================================================================
--- trunk/client/src/main/java/org/teiid/adminapi/impl/TransactionMetadata.java	2010-05-06 17:17:44 UTC (rev 2100)
+++ trunk/client/src/main/java/org/teiid/adminapi/impl/TransactionMetadata.java	2010-05-06 21:39:42 UTC (rev 2101)
@@ -81,10 +81,10 @@
 	@Override
 	public String toString() {
         StringBuffer result = new StringBuffer();
-        result.append(AdminPlugin.Util.getString("TransactionImpl.associatedSession")).append(associatedSession); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("TransactionImpl.scope")).append(scope); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("TransactionImpl.id")).append(id); //$NON-NLS-1$
-        result.append(AdminPlugin.Util.getString("TransactionImpl.createdTime")).append(new Date(createdTime)); //$NON-NLS-1$
+        result.append("Associated Session:").append(associatedSession); //$NON-NLS-1$
+        result.append("Scope:").append(scope); //$NON-NLS-1$
+        result.append("Id:").append(id); //$NON-NLS-1$
+        result.append("CreatedTime:").append(new Date(createdTime)); //$NON-NLS-1$
         return result.toString();
 	}
 



More information about the teiid-commits mailing list