[jboss-svn-commits] JBL Code SVN: r35378 - labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/ruleeditor.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Oct 1 05:28:32 EDT 2010


Author: Rikkola
Date: 2010-10-01 05:28:32 -0400 (Fri, 01 Oct 2010)
New Revision: 35378

Modified:
   labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/ruleeditor/RuleValidatorWrapper.java
Log:
GUVNOR-586 : GWTExt replacement
-I took away some commented code that still had gwtext in them

Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/ruleeditor/RuleValidatorWrapper.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/ruleeditor/RuleValidatorWrapper.java	2010-10-01 07:58:10 UTC (rev 35377)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/ruleeditor/RuleValidatorWrapper.java	2010-10-01 09:28:32 UTC (rev 35378)
@@ -1,21 +1,3 @@
-/**
- * Copyright 2010 JBoss Inc
- *
- * 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.drools.guvnor.client.ruleeditor;
-
 /*
  * Copyright 2005 JBoss Inc
  *
@@ -32,6 +14,8 @@
  * limitations under the License.
  */
 
+package org.drools.guvnor.client.ruleeditor;
+
 import org.drools.guvnor.client.common.DirtyableComposite;
 import org.drools.guvnor.client.common.FormStylePopup;
 import org.drools.guvnor.client.common.LoadingPopup;
@@ -69,9 +53,6 @@
         this.editor = editor;
 
         layout.add( editor );
-        /*        if (!asset.isreadonly) {
-                	validatorActions();
-                }*/
 
         layout.setWidth( "100%" );
         layout.setHeight( "100%" );
@@ -79,67 +60,6 @@
         initWidget( layout );
     }
 
-    //This is duplicate to ActionToolbar    
-    /*    private void validatorActions() {
-            Toolbar tb = new Toolbar();
-
-            layout.setCellHeight(editor, "95%");
-            layout.add(tb);
-
-            ToolbarButton viewSource = new ToolbarButton();
-            viewSource.setText(constants.ViewSource());
-            viewSource.addListener(new ButtonListenerAdapter()  {
-    			public void onClick(
-    					com.gwtext.client.widgets.Button button,
-    					EventObject e) {
-                    doViewsource();
-    			}
-    		});
-
-            //only show this for advanced users
-            if (ExplorerLayoutManager.shouldShow(Capabilities.SHOW_PACKAGE_VIEW)) {
-                tb.addButton(viewSource);
-                tb.addSeparator();
-            }
-
-            ToolbarButton validate = new ToolbarButton();
-            validate.setText(constants.Validate());
-            validate.addListener(new ButtonListenerAdapter()  {
-            			public void onClick(
-            					com.gwtext.client.widgets.Button button,
-            					EventObject e) {
-            				doValidate();
-            			}
-            		});
-            tb.addButton(validate);
-
-
-        }
-
-        private void doValidate() {
-        	onSave();
-            LoadingPopup.showMessage(constants.ValidatingItemPleaseWait());
-            RepositoryServiceFactory.getService().buildAsset( asset, new GenericCallback<BuilderResult>() {
-                public void onSuccess(BuilderResult result) {showBuilderErrors(result);}
-            });
-
-        }
-
-        private void doViewsource() {
-        	onSave();
-            LoadingPopup.showMessage(constants.CalculatingSource());
-            RepositoryServiceFactory.getService().buildAssetSource( this.asset, new GenericCallback<String>() {
-                public void onSuccess(String src) { showSource(src);}
-            });
-
-        }
-
-        private void showSource(String src) {
-            PackageBuilderWidget.showSource( src, this.asset.metaData.name );
-            LoadingPopup.close();
-        }
-        */
-
     /**
      * This will show a popup of error messages in compilation.
      */



More information about the jboss-svn-commits mailing list