directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1214203 - in /directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor: controller/actions/ model/schemachecker/ view/editors/attributetype/ view/editors/objectclass/ view/editors/schema/ view/view...
Date Wed, 14 Dec 2011 12:14:51 GMT
Author: pamarcelot
Date: Wed Dec 14 12:14:51 2011
New Revision: 1214203

URL: http://svn.apache.org/viewvc?rev=1214203&view=rev
Log:
Fixed warnings.

Modified:
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenTypeHierarchyAction.java
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemachecker/SchemaChecker.java
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorInput.java
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorAttributesTableContentProvider.java
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorInput.java
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorSuperiorsTableContentProvider.java
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorInput.java
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/ProjectsViewContentProvider.java
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/CommitChangesWizard.java
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/NewAttributeTypeContentWizardPage.java
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/NewAttributeTypeMatchingRulesWizardPage.java

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenTypeHierarchyAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenTypeHierarchyAction.java?rev=1214203&r1=1214202&r2=1214203&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenTypeHierarchyAction.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenTypeHierarchyAction.java
Wed Dec 14 12:14:51 2011
@@ -30,7 +30,6 @@ import org.apache.directory.studio.schem
 import org.apache.directory.studio.schemaeditor.view.views.SchemaView;
 import org.apache.directory.studio.schemaeditor.view.wrappers.AttributeTypeWrapper;
 import org.apache.directory.studio.schemaeditor.view.wrappers.ObjectClassWrapper;
-import org.apache.directory.studio.schemaeditor.view.wrappers.SchemaWrapper;
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.action.IAction;
 import org.eclipse.jface.viewers.ISelection;
@@ -74,7 +73,7 @@ public class OpenTypeHierarchyAction ext
                 StructuredSelection selection = ( StructuredSelection ) event.getSelection();
                 setEnabled( ( selection.size() == 1 )
                     && ( ( selection.getFirstElement() instanceof AttributeTypeWrapper
)
-                        || ( selection.getFirstElement() instanceof ObjectClassWrapper )
) );
+                    || ( selection.getFirstElement() instanceof ObjectClassWrapper ) ) );
             }
         } );
     }

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemachecker/SchemaChecker.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemachecker/SchemaChecker.java?rev=1214203&r1=1214202&r2=1214203&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemachecker/SchemaChecker.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemachecker/SchemaChecker.java
Wed Dec 14 12:14:51 2011
@@ -518,6 +518,7 @@ public class SchemaChecker
      * @return
      *      the associated warnings
      */
+    @SuppressWarnings("unchecked")
     public List<Object> getWarnings( SchemaObject so )
     {
         return ( List<Object> ) warningsMap.get( so );

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorInput.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorInput.java?rev=1214203&r1=1214202&r2=1214203&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorInput.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorInput.java
Wed Dec 14 12:14:51 2011
@@ -108,6 +108,7 @@ public class AttributeTypeEditorInput im
     /**
      * {@inheritDoc}
      */
+    @SuppressWarnings("rawtypes")
     public Object getAdapter( Class adapter )
     {
         return null;

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorAttributesTableContentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorAttributesTableContentProvider.java?rev=1214203&r1=1214202&r2=1214203&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorAttributesTableContentProvider.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorAttributesTableContentProvider.java
Wed Dec 14 12:14:51 2011
@@ -56,6 +56,7 @@ public class ObjectClassEditorAttributes
     /**
      * {@inheritDoc}
      */
+    @SuppressWarnings("unchecked")
     public Object[] getElements( Object inputElement )
     {
         if ( inputElement instanceof List<?> )

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorInput.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorInput.java?rev=1214203&r1=1214202&r2=1214203&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorInput.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorInput.java
Wed Dec 14 12:14:51 2011
@@ -108,6 +108,7 @@ public class ObjectClassEditorInput impl
     /**
      * {@inheritDoc}
      */
+    @SuppressWarnings("rawtypes")
     public Object getAdapter( Class adapter )
     {
         return null;

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorSuperiorsTableContentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorSuperiorsTableContentProvider.java?rev=1214203&r1=1214202&r2=1214203&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorSuperiorsTableContentProvider.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/objectclass/ObjectClassEditorSuperiorsTableContentProvider.java
Wed Dec 14 12:14:51 2011
@@ -58,6 +58,7 @@ public class ObjectClassEditorSuperiorsT
     /**
      * {@inheritDoc}
      */
+    @SuppressWarnings("unchecked")
     public Object[] getElements( Object inputElement )
     {
         if ( inputElement instanceof List<?> )

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorInput.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorInput.java?rev=1214203&r1=1214202&r2=1214203&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorInput.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/schema/SchemaEditorInput.java
Wed Dec 14 12:14:51 2011
@@ -94,6 +94,7 @@ public class SchemaEditorInput implement
     /**
      * {@inheritDoc}
      */
+    @SuppressWarnings("rawtypes")
     public Object getAdapter( Class adapter )
     {
         return null;

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/ProjectsViewContentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/ProjectsViewContentProvider.java?rev=1214203&r1=1214202&r2=1214203&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/ProjectsViewContentProvider.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/ProjectsViewContentProvider.java
Wed Dec 14 12:14:51 2011
@@ -93,7 +93,6 @@ public class ProjectsViewContentProvider
     /**
      * {@inheritDoc}
      */
-    @SuppressWarnings("unchecked")
     public Object[] getChildren( Object parentElement )
     {
         List<TreeNode> children = new ArrayList<TreeNode>();

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/CommitChangesWizard.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/CommitChangesWizard.java?rev=1214203&r1=1214202&r2=1214203&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/CommitChangesWizard.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/CommitChangesWizard.java
Wed Dec 14 12:14:51 2011
@@ -20,16 +20,10 @@
 package org.apache.directory.studio.schemaeditor.view.wizards;
 
 
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
 import org.apache.directory.studio.schemaeditor.Activator;
 import org.apache.directory.studio.schemaeditor.model.DependenciesComputer;
 import org.apache.directory.studio.schemaeditor.model.DependenciesComputer.DependencyComputerException;
 import org.apache.directory.studio.schemaeditor.model.Project;
-import org.apache.directory.studio.schemaeditor.model.Schema;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jface.operation.IRunnableWithProgress;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.wizard.Wizard;
 import org.eclipse.ui.IExportWizard;
@@ -77,26 +71,26 @@ public class CommitChangesWizard extends
      */
     public boolean performFinish()
     {
-        final List<Schema> orderedSchemas = dependenciesComputer.getDependencyOrderedSchemasList();
-
-        try
-        {
-            getContainer().run( false, false, new IRunnableWithProgress()
-            {
-                public void run( IProgressMonitor monitor )
-                {
-                    //TODO implement
-                }
-            } );
-        }
-        catch ( InvocationTargetException e )
-        {
-            // Nothing to do (it will never occur)
-        }
-        catch ( InterruptedException e )
-        {
-            // Nothing to do.
-        }
+        //        final List<Schema> orderedSchemas = dependenciesComputer.getDependencyOrderedSchemasList();
+        //
+        //        try
+        //        {
+        //            getContainer().run( false, false, new IRunnableWithProgress()
+        //            {
+        //                public void run( IProgressMonitor monitor )
+        //                {
+        //                    //TODO implement
+        //                }
+        //            } );
+        //        }
+        //        catch ( InvocationTargetException e )
+        //        {
+        //            // Nothing to do (it will never occur)
+        //        }
+        //        catch ( InterruptedException e )
+        //        {
+        //            // Nothing to do.
+        //        }
 
         return true;
     }

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/NewAttributeTypeContentWizardPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/NewAttributeTypeContentWizardPage.java?rev=1214203&r1=1214202&r2=1214203&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/NewAttributeTypeContentWizardPage.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/NewAttributeTypeContentWizardPage.java
Wed Dec 14 12:14:51 2011
@@ -245,13 +245,12 @@ public class NewAttributeTypeContentWiza
     /**
      * Initializes the UI fields.
      */
-    @SuppressWarnings("unchecked")
     private void initFields()
     {
         if ( schemaHandler != null )
         {
             // Getting the syntaxes
-            List<Object> syntaxes = new ArrayList( schemaHandler.getSyntaxes() );
+            List<Object> syntaxes = new ArrayList<Object>( schemaHandler.getSyntaxes()
);
             // Adding the (None) Syntax
             String none = Messages.getString( "NewAttributeTypeContentWizardPage.None" );
//$NON-NLS-1$
             syntaxes.add( none );

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/NewAttributeTypeMatchingRulesWizardPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/NewAttributeTypeMatchingRulesWizardPage.java?rev=1214203&r1=1214202&r2=1214203&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/NewAttributeTypeMatchingRulesWizardPage.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/NewAttributeTypeMatchingRulesWizardPage.java
Wed Dec 14 12:14:51 2011
@@ -159,13 +159,12 @@ public class NewAttributeTypeMatchingRul
     /**
      * Initializes the UI fields.
      */
-    @SuppressWarnings("unchecked")
     private void initFields()
     {
         if ( schemaHandler != null )
         {
             // Getting the matching rules
-            List<Object> matchingRules = new ArrayList( schemaHandler.getMatchingRules()
);
+            List<Object> matchingRules = new ArrayList<Object>( schemaHandler.getMatchingRules()
);
             // Adding the (None) matching rule
             String none = Messages.getString( "NewAttributeTypeMatchingRulesWizardPage.None"
); //$NON-NLS-1$
             matchingRules.add( none );



Mime
View raw message