[jboss-svn-commits] JBL Code SVN: r34971 - in labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor: client and 5 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Sep 2 02:54:48 EDT 2010
Author: jervisliu
Date: 2010-09-02 02:54:47 -0400 (Thu, 02 Sep 2010)
New Revision: 34971
Added:
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/common/Util.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AbstractTree.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AdministrationTree.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/BrowseTree.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentNewMenu.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentTree.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesNewMenu.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesTree.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/QATree.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/Images.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/analyze.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/backup_small.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/business_rule.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/category_small.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/chart_organisation.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/deploy.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/dsl.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/empty_package.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/enumeration.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/error.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/find.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/function_assets.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/gdst.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/icoUsers.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/inbox.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/information.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/model_asset.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_enumeration.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_file.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_package.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_template.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/package.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/refresh.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/rule_asset.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/rule_verification.png
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/ruleflow_small.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/rules.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/save_edit.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/snapshot_small.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/spreadsheet_small.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/status_small.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/tag.png
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/technical_rule_assets.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/test_manager.gif
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/workingset.gif
Modified:
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/Guvnor.gwt.xml
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/JBRMSEntryPoint.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AdministrationPanel.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/CategoriesPanel.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentPanel.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerLayoutManager.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerNodeConfig.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerViewCenterPanel.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesPanel.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/QAPanel.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/RulesNewMenu.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.java
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.properties
labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/packages/SnapshotView.java
Log:
GWTExt replacement. Part 1. Replaced navigation panel related classes, such as Tree, TabPanel, layout, Menu, StackLayoutPanel, ToolBar. Please note, this is almost like a rewriting of the whole code base, there will certainly be bugs. I will fix them asap once the bug is logged. I will make the TabPanel closeable in my next commit.
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/Guvnor.gwt.xml
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/Guvnor.gwt.xml 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/Guvnor.gwt.xml 2010-09-02 06:54:47 UTC (rev 34971)
@@ -4,6 +4,7 @@
<inherits name="com.google.gwt.i18n.I18N"/>
<inherits name="com.google.gwt.user.User"/>
+<inherits name="com.google.gwt.user.theme.chrome.Chrome"/>
<inherits name="com.gwtext.GwtExt"/>
<inherits name="com.gwtext.Pagebus"/>
<inherits name="pl.balon.gwt.diagrams.Diagrams"/>
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/JBRMSEntryPoint.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/JBRMSEntryPoint.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/JBRMSEntryPoint.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -30,12 +30,11 @@
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.History;
import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.RootLayoutPanel;
-import com.google.gwt.user.client.ui.RootPanel;
+
import com.gwtext.client.util.CSS;
-import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.QuickTips;
-import com.gwtext.client.widgets.Viewport;
import com.gwtext.client.widgets.form.Field;
/**
@@ -93,9 +92,8 @@
RepositoryServiceFactory.getSecurityService().getUserCapabilities(new GenericCallback<Capabilities>() {
public void onSuccess(Capabilities cp) {
Window.setStatus(" ");
- //RootLayoutPanel.get().add(createMain(cp));
- new Viewport(createMain(cp));
-
+ RootLayoutPanel.get().add(createMain(cp));
+ //new Viewport(createMain(cp));
}
});
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/common/Util.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/common/Util.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/common/Util.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -0,0 +1,77 @@
+/**
+ * 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.common;
+
+import com.google.gwt.resources.client.ImageResource;
+import com.google.gwt.user.client.ui.AbstractImagePrototype;
+/*
+ * Copyright 2005 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.
+ */
+import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.user.client.ui.HasVerticalAlignment;
+import com.google.gwt.user.client.ui.HorizontalPanel;
+import com.google.gwt.user.client.ui.Image;
+
+
+public class Util {
+
+ /**
+ * Get a string representation of the header that includes an image and some
+ * text.
+ *
+ * @param image the {@link ImageResource} to add next to the header
+ * @param text the header text
+ * @return the header as a string
+ */
+ public static String getHeader(ImageResource image, String text) {
+ return AbstractImagePrototype.create(image).getHTML() + " " + text;
+ }
+
+ /**
+ * Get a string representation of the header that includes an image and some
+ * text.
+ *
+ * @param image the {@link ImageResource} to add next to the header
+ * @param text the header text
+ * @return the header as a string
+ */
+ public static HTML getHeaderHTML(ImageResource image, String text) {
+ // Add the image and text to a horizontal panel
+ HorizontalPanel hPanel = new HorizontalPanel();
+ hPanel.setSpacing(0);
+ hPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
+ hPanel.add(new Image(image));
+ HTML headerText = new HTML(text);
+ headerText.setStyleName("cw-StackPanelHeader");
+ hPanel.add(headerText);
+
+ // Return the HTML string for the panel
+ return new HTML(hPanel.getElement().getString());
+ }
+}
\ No newline at end of file
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AbstractTree.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AbstractTree.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AbstractTree.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -0,0 +1,61 @@
+package org.drools.guvnor.client.explorer;
+
+import com.google.gwt.event.logical.shared.SelectionHandler;
+import com.google.gwt.resources.client.ImageResource;
+import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.user.client.ui.Tree;
+import com.google.gwt.user.client.ui.TreeItem;
+
+import org.drools.guvnor.client.common.Util;
+import org.drools.guvnor.client.ruleeditor.MultiViewRow;
+import org.drools.guvnor.client.ruleeditor.NewAssetWizard;
+import org.drools.guvnor.client.rulelist.EditItemEvent;
+
+public abstract class AbstractTree implements SelectionHandler<TreeItem> {
+
+ protected String name;
+ protected ImageResource image;
+
+ protected ExplorerViewCenterPanel centertabbedPanel;
+ protected Tree mainTree;
+
+ /**
+ * Constructor.
+ *
+ * @param ExplorerViewCenterPanel
+ * the centertabbedPanel
+ */
+ public AbstractTree(ExplorerViewCenterPanel centertabbedPanel) {
+ this.centertabbedPanel = centertabbedPanel;
+ }
+
+ /**
+ * Get a string representation of the header that includes an image and some
+ * text.
+ * @return the header as a string
+ */
+ public HTML getHeaderHTML() {
+ return Util.getHeaderHTML(image, name);
+ }
+
+ protected void launchWizard(String format, String title, boolean showCats) {
+
+ NewAssetWizard pop = new NewAssetWizard(new EditItemEvent() {
+ public void open(String key) {
+ centertabbedPanel.openAsset(key);
+ }
+
+ public void open(MultiViewRow[] rows) {
+ for (MultiViewRow row : rows) {
+ centertabbedPanel.openAsset(row.uuid);
+ }
+ }
+ }, showCats, format, title);
+
+ pop.show();
+ }
+
+ public Tree getTree() {
+ return mainTree;
+ }
+}
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AdministrationPanel.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AdministrationPanel.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AdministrationPanel.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -46,8 +46,8 @@
super(constants.Administration(), tabbedPanel);
setIconCls("nav-admin"); //NON-NLS
- TreePanel adminTree = basicTreeStructure(ExplorerNodeConfig
- .getAdminStructure(), new TreePanelListenerAdapter() {
+ TreePanel adminTree = basicTreeStructure(/*ExplorerNodeConfig
+ .getAdminStructure()*/ new TreeNode(), new TreePanelListenerAdapter() {
public void onClick(TreeNode self, EventObject e) {
int id = Integer.parseInt(self.getAttribute("id"));
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AdministrationTree.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AdministrationTree.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/AdministrationTree.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -0,0 +1,122 @@
+/**
+ * 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.explorer;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.drools.guvnor.client.admin.ArchivedAssetManager;
+import org.drools.guvnor.client.admin.BackupManager;
+import org.drools.guvnor.client.admin.CategoryManager;
+import org.drools.guvnor.client.admin.LogViewer;
+import org.drools.guvnor.client.admin.PermissionViewer;
+import org.drools.guvnor.client.admin.StateManager;
+import org.drools.guvnor.client.common.FormStylePopup;
+import org.drools.guvnor.client.common.SmallLabel;
+import org.drools.guvnor.client.images.Images;
+import org.drools.guvnor.client.messages.Constants;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.logical.shared.SelectionEvent;
+import com.google.gwt.user.client.ui.Frame;
+import com.google.gwt.user.client.ui.Tree;
+import com.google.gwt.user.client.ui.TreeItem;
+
+import org.drools.guvnor.client.admin.RuleVerifierManager;
+
+
+public class AdministrationTree extends AbstractTree {
+ private static Constants constants = GWT.create(Constants.class);
+ private static Images images = (Images) GWT.create(Images.class);
+
+ private Map<TreeItem, String> itemWidgets = new HashMap<TreeItem, String>();
+
+ public AdministrationTree(ExplorerViewCenterPanel tabbedPanel) {
+ super(tabbedPanel);
+ this.name = constants.Administration();
+ this.image = images.rules();
+
+ mainTree = ExplorerNodeConfig.getAdminStructure(itemWidgets);
+
+ //Add Selection listener
+ mainTree.addSelectionHandler(this);
+ }
+
+ // Show the associated widget in the deck panel
+ public void onSelection(SelectionEvent<TreeItem> event) {
+ TreeItem item = event.getSelectedItem();
+ String widgetID = itemWidgets.get(item);
+
+ int id = Integer.parseInt(widgetID);
+ switch (id) {
+ case 0:
+ if (!centertabbedPanel.showIfOpen("catman")) //NON-NLS
+ centertabbedPanel.addTab(constants.CategoryManager(), true,
+ new CategoryManager(), "catman"); //NON-NLS
+ break;
+ case 1:
+ if (!centertabbedPanel.showIfOpen("archman")) //NON-NLS
+ centertabbedPanel.addTab(constants.ArchivedManager(), true,
+ new ArchivedAssetManager(centertabbedPanel),
+ "archman"); //NON-NLS
+ break;
+
+ case 2:
+ if (!centertabbedPanel.showIfOpen("stateman")) //NON-NLS
+ centertabbedPanel.addTab(constants.StateManager(), true,
+ new StateManager(), "stateman");
+ break;
+ case 3:
+ if (!centertabbedPanel.showIfOpen("bakman"))
+ centertabbedPanel.addTab(constants.ImportExport(), true,
+ new BackupManager(), "bakman");
+ break;
+
+ case 4:
+ if (!centertabbedPanel.showIfOpen("errorLog"))
+ centertabbedPanel.addTab(constants.EventLog(), true,
+ new LogViewer(), "errorLog");
+ break;
+ case 5:
+ if (!centertabbedPanel.showIfOpen("securityPermissions"))
+ centertabbedPanel.addTab(constants.UserPermissionMappings(),
+ true, new PermissionViewer(),
+ "securityPermissions");
+ break;
+ case 6:
+ Frame aboutFrame = new Frame("version.txt"); //NON-NLS
+
+ FormStylePopup aboutPop = new FormStylePopup();
+ aboutPop.setWidth(600);
+ aboutPop.setTitle(constants.About());
+ String hhurl = GWT.getModuleBaseURL() + "webdav";
+ aboutPop.addAttribute(constants.WebDAVURL(), new SmallLabel("<b>"
+ + hhurl + "</b>"));
+ aboutPop.addAttribute(constants.Version() + ":", aboutFrame);
+ aboutPop.show();
+ break;
+
+ case 7:
+ if (!centertabbedPanel.showIfOpen("ruleVerifierManager")) {
+ centertabbedPanel.addTab(constants.RulesVerificationManager(),
+ true, new RuleVerifierManager(),
+ "ruleVerifierManager");
+ }
+ break;
+ }
+ }
+}
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/BrowseTree.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/BrowseTree.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/BrowseTree.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -0,0 +1,218 @@
+/**
+ * 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.explorer;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.drools.guvnor.client.common.GenericCallback;
+import org.drools.guvnor.client.common.Inbox;
+import org.drools.guvnor.client.rpc.*;
+import org.drools.guvnor.client.ruleeditor.MultiViewRow;
+import org.drools.guvnor.client.rulelist.AssetItemGrid;
+import org.drools.guvnor.client.rulelist.AssetItemGridDataLoader;
+import org.drools.guvnor.client.rulelist.EditItemEvent;
+import org.drools.guvnor.client.images.Images;
+import org.drools.guvnor.client.messages.Constants;
+
+import com.google.gwt.user.client.ui.TreeItem;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.Command;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.logical.shared.SelectionEvent;
+
+
+public class BrowseTree extends AbstractTree {
+ private static Constants constants = GWT.create(Constants.class);
+ private static Images images = (Images) GWT.create(Images.class);
+
+ private Map<TreeItem, String> itemWidgets = new HashMap<TreeItem, String>();
+
+
+ /** Table set up for the inboxes */
+ static {
+ TableConfig conf = new TableConfig();
+ conf.headers = new String[2];
+ conf.headers[0] = constants.Name();// "Name ";
+ conf.headers[1] = constants.Date();//"Date ";
+ conf.headerTypes = new String[2];
+ conf.headerTypes[0] = "class java.lang.String";
+ conf.headerTypes[1] = "class java.util.Calendar";
+ conf.rowsPerPage = 500;
+ AssetItemGrid.registerTableConf(conf, Inbox.RECENT_EDITED);
+ AssetItemGrid.registerTableConf(conf, Inbox.RECENT_VIEWED);
+
+ conf = new TableConfig();
+ conf.headers = new String[3];
+ conf.headers[0] = constants.Name();
+ conf.headers[1] = constants.Date();
+ conf.headers[2] = constants.From();
+ conf.headerTypes = new String[3];
+ conf.headerTypes[0] = "class java.lang.String";
+ conf.headerTypes[1] = "class java.util.Calendar";
+ conf.headerTypes[2] = "class java.lang.String";
+ conf.rowsPerPage = 500;
+
+ AssetItemGrid.registerTableConf(conf, Inbox.INCOMING);
+ }
+
+ public BrowseTree(ExplorerViewCenterPanel tabbedPanel) {
+ super(tabbedPanel);
+ this.name = constants.Browse();
+ this.image = images.ruleAsset();
+
+ mainTree = ExplorerNodeConfig.getBrowseTree(itemWidgets);
+
+ //Add Selection listener
+ mainTree.addSelectionHandler(this);
+ }
+
+ // Show the associated widget in the deck panel
+ public void onSelection(SelectionEvent<TreeItem> event) {
+ TreeItem item = event.getSelectedItem();
+ String widgetID = itemWidgets.get(item);
+
+/* //this refreshes the list.
+ if (content.equals(ExplorerNodeConfig.CATEGORY_ID)) {
+ //self.getParentNode().replaceChild(ExplorerNodeConfig.getCategoriesStructure(), self);
+ } else if (content.equals(ExplorerNodeConfig.STATES_ID)) {
+ //self.getParentNode().replaceChild(ExplorerNodeConfig.getStatesStructure(), self);
+ } else */
+
+ if (widgetID.equals(ExplorerNodeConfig.FIND_ID)) {
+ centertabbedPanel.openFind();
+ } else if (widgetID.equals(ExplorerNodeConfig.INCOMING_ID) ||
+ widgetID.equals(ExplorerNodeConfig.RECENT_EDITED_ID) ||
+ widgetID.equals(ExplorerNodeConfig.RECENT_VIEWED_ID)) {
+ openInbox(item.getText(), widgetID);
+ } else if (widgetID.startsWith(ExplorerNodeConfig.STATES_ID)){
+ openState(item.getText(), widgetID);
+ } else if (widgetID.startsWith(ExplorerNodeConfig.CATEGORY_ID)){
+ openCategory(item.getText(), widgetID);
+ }
+ }
+
+ /**
+ * Show the inbox of the given name.
+ */
+ private void openInbox(String title, final String widgetID) {
+ if (!centertabbedPanel.showIfOpen(widgetID)) {
+ AssetItemGrid g = new AssetItemGrid(createEditEvent(), widgetID, new AssetItemGridDataLoader() {
+ public void loadData(int startRow, int numberOfRows, GenericCallback<TableDataResult> cb) {
+ RepositoryServiceFactory.getService().loadInbox(widgetID, cb);
+ }
+ });
+ centertabbedPanel.addTab(title, true, g, widgetID);
+ }
+ }
+
+ /**
+ * open a state or category !
+ */
+ private void openState(String title, String widgetID) {
+
+ if (!centertabbedPanel.showIfOpen(widgetID)) {
+ final String stateName = widgetID.substring(widgetID.indexOf("-") + 1);
+ final AssetItemGrid list = new AssetItemGrid(createEditEvent(),
+ AssetItemGrid.RULE_LIST_TABLE_ID,
+ new AssetItemGridDataLoader() {
+ public void loadData(int skip, int numberOfRows, GenericCallback cb) {
+ RepositoryServiceFactory.getService().
+ loadRuleListForState(stateName, skip,
+ numberOfRows, AssetItemGrid.RULE_LIST_TABLE_ID, cb);
+
+ }
+ },
+ null);
+ final ServerPushNotification push = new ServerPushNotification() {
+ public void messageReceived(PushResponse response) {
+ if (response.messageType.equals("statusChange") && (response.message).equals(stateName)) {
+ list.refreshGrid();
+ }
+ }
+ };
+ PushClient.instance().subscribe(push);
+ list.addUnloadListener(new Command() {
+ public void execute() {
+ PushClient.instance().unsubscribe(push);
+ }
+ });
+
+ centertabbedPanel.addTab(constants.Status() + title, true, list, widgetID);
+ }
+ }
+
+ /**
+ * open a category
+ */
+ private void openCategory(String title, String widgetID) {
+ if (!centertabbedPanel.showIfOpen(widgetID)) {
+ final String categoryName = widgetID.substring(widgetID.indexOf("-") + 1);
+ final AssetItemGrid list = new AssetItemGrid(createEditEvent(),
+ AssetItemGrid.RULE_LIST_TABLE_ID,
+ new AssetItemGridDataLoader() {
+ public void loadData(int skip, int numberOfRows, GenericCallback cb) {
+ RepositoryServiceFactory.getService().
+ loadRuleListForCategories(categoryName, skip, numberOfRows,
+ AssetItemGrid.RULE_LIST_TABLE_ID, cb);
+ }
+ },
+ GWT.getModuleBaseURL() + "feed/category?name=" + categoryName + "&viewUrl=" + getSelfURL());
+ final ServerPushNotification push = new ServerPushNotification() {
+ public void messageReceived(PushResponse response) {
+ if (response.messageType.equals("categoryChange") && response.message.equals(categoryName)) {
+ list.refreshGrid();
+ }
+ }
+ };
+ PushClient.instance().subscribe(push);
+ list.addUnloadListener(new Command() {
+ public void execute() {
+ PushClient.instance().unsubscribe(push);
+ }
+ });
+
+ centertabbedPanel.addTab((constants.CategoryColon()) + title, true, list, widgetID);
+ }
+ }
+
+ private EditItemEvent createEditEvent() {
+ return new EditItemEvent() {
+ public void open(String uuid) {
+ centertabbedPanel.openAsset(uuid);
+ }
+
+ public void open(MultiViewRow[] rows) {
+ for ( MultiViewRow row: rows) {
+ centertabbedPanel.openAsset( row.uuid );
+ }
+ }
+ };
+ }
+
+ /**
+ * The URL that will be used to open up assets in a feed.
+ * (by tacking asset id on the end, of course !).
+ */
+ public static String getSelfURL() {
+ String selfURL = Window.Location.getHref();
+ if (selfURL.contains("#")) {
+ selfURL = selfURL.substring(0, selfURL.indexOf("#"));
+ }
+ return selfURL;
+ }
+}
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/CategoriesPanel.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/CategoriesPanel.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/CategoriesPanel.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -35,6 +35,7 @@
import com.gwtext.client.widgets.Toolbar;
import com.gwtext.client.widgets.ToolbarMenuButton;
import com.gwtext.client.widgets.event.SplitButtonListenerAdapter;
+import com.gwtext.client.widgets.menu.Menu;
import com.gwtext.client.widgets.tree.TreeNode;
import com.gwtext.client.widgets.tree.TreePanel;
import com.gwtext.client.widgets.tree.event.TreePanelListenerAdapter;
@@ -82,7 +83,7 @@
Toolbar rulesToolBar = new Toolbar();
- final ToolbarMenuButton menuButton = new ToolbarMenuButton(constants.CreateNew(), RulesNewMenu.getMenu( this ) );
+ final ToolbarMenuButton menuButton = new ToolbarMenuButton(constants.CreateNew(), /*RulesNewMenu.getMenu( this )*/ new Menu() );
rulesToolBar.addButton( menuButton );
menuButton.addListener( new SplitButtonListenerAdapter() {
@@ -97,14 +98,14 @@
rulesPanel.add(rulesToolBar);
}
- TreePanel categoryTree = basicTreeStructure(ExplorerNodeConfig.getRulesStructure(), new TreePanelListenerAdapter() {
+ TreePanel categoryTree = basicTreeStructure(/*ExplorerNodeConfig.getRulesStructure()*/new TreeNode(), new TreePanelListenerAdapter() {
public void onClick(final TreeNode self, EventObject e) {
//this refreshes the list.
if (self.getAttribute("id").equals(ExplorerNodeConfig.CATEGORY_ID)) { //NON-NLS
- self.getParentNode().replaceChild(ExplorerNodeConfig.getCategoriesStructure(), self);
+ self.getParentNode().replaceChild(/*ExplorerNodeConfig.getCategoriesStructure()*/new TreeNode(), self);
} else if (self.getAttribute("id").equals(ExplorerNodeConfig.STATES_ID)) { //NON-NLS
- self.getParentNode().replaceChild(ExplorerNodeConfig.getStatesStructure(), self);
+ self.getParentNode().replaceChild(/*ExplorerNodeConfig.getStatesStructure()*/new TreeNode(), self);
} else if (self.getAttribute("id").equals("FIND")) { //NON-NLS
centertabbedPanel.openFind();
} else if (self.getAttribute("id").startsWith("inbox")) {
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentNewMenu.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentNewMenu.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentNewMenu.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -0,0 +1,66 @@
+/**
+ * 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.explorer;
+
+
+import org.drools.guvnor.client.common.Util;
+import org.drools.guvnor.client.images.Images;
+import org.drools.guvnor.client.messages.Constants;
+import org.drools.guvnor.client.packages.SnapshotView;
+
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.Command;
+import com.google.gwt.user.client.ui.MenuBar;
+import com.google.gwt.user.client.ui.MenuItem;
+
+
+public class DeploymentNewMenu {
+ private static Constants constants = ((Constants) GWT.create(Constants.class));
+ private static Images images = (Images) GWT.create(Images.class);
+
+ public static MenuBar getMenu(final AbstractTree manager) {
+
+ MenuBar createNewMenu = new MenuBar(true);
+
+ createNewMenu.addItem(Util.getHeader(images.snapshotSmall(), constants.NewDeploymentSnapshot()),
+ true,
+ new Command() {
+ public void execute() {
+ SnapshotView.showNewSnapshot();
+ }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.refresh(), constants.RebuildAllSnapshotBinaries()),
+ true,
+ new Command() {
+ public void execute() {
+ SnapshotView.rebuildBinaries();
+ }
+ });
+
+ MenuBar rootMenuBar = new MenuBar(true);
+ rootMenuBar.setAutoOpen(true);
+ rootMenuBar.setAnimationEnabled(true);
+
+ rootMenuBar.addItem(new MenuItem(constants.CreateNew(), createNewMenu));
+
+ return rootMenuBar;
+ }
+
+
+}
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentPanel.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentPanel.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentPanel.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -177,7 +177,8 @@
}
});
- return PackagesPanel.wrapScroll(panel);
+ //return PackagesPanel.wrapScroll(panel);
+ return null;
}
private void deploymentListPackages(final TreeNode root) {
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentTree.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentTree.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/DeploymentTree.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -0,0 +1,101 @@
+/**
+ * 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.explorer;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.drools.guvnor.client.common.GenericCallback;
+import org.drools.guvnor.client.images.Images;
+import org.drools.guvnor.client.messages.Constants;
+import org.drools.guvnor.client.rpc.PackageConfigData;
+import org.drools.guvnor.client.rpc.RepositoryServiceFactory;
+import org.drools.guvnor.client.rpc.SnapshotInfo;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.logical.shared.OpenEvent;
+import com.google.gwt.event.logical.shared.OpenHandler;
+import com.google.gwt.event.logical.shared.SelectionEvent;
+import com.google.gwt.user.client.ui.Tree;
+import com.google.gwt.user.client.ui.TreeItem;
+
+
+public class DeploymentTree extends AbstractTree {
+ private static Constants constants = GWT.create(Constants.class);
+ private static Images images = (Images) GWT.create(Images.class);
+
+ private Map<TreeItem, String> itemWidgets = new HashMap<TreeItem, String>();
+
+ private boolean deploymentPackagesLoaded = false;
+
+ public DeploymentTree(ExplorerViewCenterPanel tabbedPanel) {
+ super(tabbedPanel);
+ this.name = constants.PackageSnapshots();
+ this.image = images.deploy();
+
+ mainTree = ExplorerNodeConfig.getDeploymentTree(itemWidgets);
+
+ //Add Selection listener
+ mainTree.addSelectionHandler(this);
+ mainTree.addOpenHandler(
+ new OpenHandler<TreeItem>() {
+ public void onOpen(OpenEvent<TreeItem> event) {
+ final TreeItem node = event.getTarget();
+ if (ExplorerNodeConfig.PACKAGE_SNAPSHOTS.equals(itemWidgets.get(node))) {
+ return;
+ }
+ final PackageConfigData conf = (PackageConfigData) node.getUserObject();
+ if (conf != null) {
+ RepositoryServiceFactory.getService().listSnapshots(conf.name,
+ new GenericCallback<SnapshotInfo[]>() {
+ public void onSuccess(SnapshotInfo[] snaps) {
+ for (final SnapshotInfo snapInfo : snaps) {
+ TreeItem snap = new TreeItem(snapInfo.name);
+ //snap.setTooltip(snapInfo.comment);
+ //snap.setText(snapInfo.name);
+ snap.setUserObject(new Object[] { snapInfo, conf });
+ node.addItem(snap);
+ }
+ node.removeItem(node.getChild(0));
+ }
+ });
+ }
+ }
+ });
+ }
+
+ public void onSelection(SelectionEvent<TreeItem> event) {
+ TreeItem item = event.getSelectedItem();
+
+ if (item.getUserObject() instanceof Object[]) {
+ Object[] o = (Object[]) item.getUserObject();
+ final String snapName = ((SnapshotInfo)o[0]).name;
+ PackageConfigData conf = (PackageConfigData)o[1];
+ RepositoryServiceFactory.getService().listSnapshots(conf.name, new GenericCallback<SnapshotInfo[]>() {
+ public void onSuccess(SnapshotInfo[] a) {
+ for(SnapshotInfo snap : a) {
+ if (snap.name.equals(snapName)) {
+ centertabbedPanel.openSnapshot(snap);
+ return;
+ }
+ }
+ }
+ });
+ }
+ }
+
+}
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerLayoutManager.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerLayoutManager.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerLayoutManager.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -20,30 +20,25 @@
import org.drools.guvnor.client.messages.Constants;
import org.drools.guvnor.client.security.Capabilities;
+import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.user.client.ui.Panel;
+import com.google.gwt.user.client.ui.ScrollPanel;
+import com.google.gwt.user.client.ui.SplitLayoutPanel;
+import com.google.gwt.user.client.ui.StackLayoutPanel;
import com.google.gwt.user.client.History;
-import com.google.gwt.user.client.DeferredCommand;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.WindowCloseListener;
import com.google.gwt.core.client.GWT;
-import com.gwtext.client.core.Margins;
-import com.gwtext.client.core.RegionPosition;
-import com.gwtext.client.widgets.Panel;
+import com.google.gwt.dom.client.Style.Unit;
+
import com.gwtext.client.widgets.QuickTips;
-import com.gwtext.client.widgets.form.Field;
-import com.gwtext.client.widgets.layout.AccordionLayout;
-import com.gwtext.client.widgets.layout.BorderLayout;
-import com.gwtext.client.widgets.layout.BorderLayoutData;
-import com.gwtext.client.widgets.layout.FitLayout;
-import com.gwtext.client.widgets.tree.TreeNode;
-import com.gwtext.client.widgets.tree.TreePanel;
/**
* This is the main part of the app that lays everything out.
*/
public class ExplorerLayoutManager {
+ private static Constants constants = GWT.create(Constants.class);
/**
* These are used to decide what to display or not.
@@ -52,74 +47,101 @@
private ExplorerViewCenterPanel centertabbedPanel;
- private Panel northPanel;
- private Panel accordion;
- private Panel mainPanel;
+ private DockPanel titlePanel;
+ private StackLayoutPanel navigationStackLayoutPanel;
+ //private Panel mainPanel;
+ private DockLayoutPanel mainPanel;
public ExplorerLayoutManager(LoggedInUserInfo uif, Capabilities caps) {
- Field.setMsgTarget("side");
+ //Field.setMsgTarget("side");
QuickTips.init();
Preferences.INSTANCE.loadPrefs(caps);
String tok = History.getToken();
- centertabbedPanel = new ExplorerViewCenterPanel();
-
/**
* we use this to decide what to display.
*/
BookmarkInfo bi = handleHistoryToken(tok);
-
-
ExplorerLayoutManager.capabilities = caps;
+
+ mainPanel = new DockLayoutPanel(Unit.EM);
+
if (bi.showChrome) {
-
- //north
- northPanel = new Panel();
- DockPanel dock = new DockPanel();
- dock.setVerticalAlignment(DockPanel.ALIGN_MIDDLE);
- dock.add(new HTML("<div class='header'><img src='header_logo.gif' /></div>"), DockPanel.WEST);
- dock.add(uif, DockPanel.EAST);
- dock.setStyleName("header");
- dock.setWidth("100%");
-
-
-
- northPanel.add(dock);
- northPanel.setHeight(50);
-
- // add a navigation for the west area
- accordion = new Panel();
- accordion.setLayout(new AccordionLayout(true));
-
- createNavigationPanels();
-
- centertabbedPanel.openFind();
-
-
+ setupTitlePanel(uif);
}
+ setupExplorerViewCenterPanel();
+ setupNavigationPanels();
+
+
+ if (bi.showChrome) {
+ mainPanel.addNorth(titlePanel, 4);
+ }
+ SplitLayoutPanel centerPanel = new SplitLayoutPanel();
+ centerPanel.addWest(navigationStackLayoutPanel, 192);
+ centerPanel.add(centertabbedPanel.getPanel());
+ mainPanel.add(centerPanel);
- setUpMain(bi);
-
if (bi.loadAsset) {
centertabbedPanel.openAsset(bi.assetId);
}
-
+ centertabbedPanel.openFind();
}
+
+ /**
+ * Create the title bar at the top of the application.
+ *
+ * @param constants the constant values to use
+ */
+ private void setupTitlePanel(LoggedInUserInfo uif) {
+ titlePanel = new DockPanel();
+ titlePanel.setVerticalAlignment(DockPanel.ALIGN_MIDDLE);
+ titlePanel.add(new HTML("<div class='header'><img src='header_logo.gif' /></div>"), DockPanel.WEST);
+ titlePanel.add(uif, DockPanel.EAST);
+ titlePanel.setStyleName("header");
+ titlePanel.setWidth("100%");
+ }
+
+ /**
+ * Create the navigation panel for the west area.
+ *
+ * @param constants the constants with text
+ */
+ private void setupNavigationPanels() {
+ navigationStackLayoutPanel = new StackLayoutPanel(Unit.EM);
- private void createNavigationPanels() {
-
-
- accordion.add(new CategoriesPanel(centertabbedPanel));
-
-
-
+ //Browse
+ DockLayoutPanel browseDockLayoutPanel = new DockLayoutPanel(Unit.EM);
+ BrowseTree categoriesTreeItem = new BrowseTree(centertabbedPanel);
+ ScrollPanel categoriesTreeItemPanel = new ScrollPanel(categoriesTreeItem.getTree());
+
+ if (ExplorerLayoutManager.shouldShow(Capabilities.SHOW_CREATE_NEW_ASSET)) {
+ browseDockLayoutPanel.addNorth(RulesNewMenu.getMenu(categoriesTreeItem),2);
+ }
+ browseDockLayoutPanel.add(categoriesTreeItemPanel);
+
+ navigationStackLayoutPanel.add(browseDockLayoutPanel, categoriesTreeItem.getHeaderHTML(), 2);
+
+
+ //Knowledge Bases (Packages)
if (shouldShow(Capabilities.SHOW_PACKAGE_VIEW)) {
- final PackagesPanel pp = new PackagesPanel(centertabbedPanel);
- accordion.add(pp);
+ DockLayoutPanel packageDockLayoutPanel = new DockLayoutPanel(Unit.EM);
+ PackagesTree packagesTreeItem = new PackagesTree(centertabbedPanel);
+ ScrollPanel packagesTreeItemPanel = new ScrollPanel(packagesTreeItem.getTree());
+
+ if (ExplorerLayoutManager.shouldShow(Capabilities.SHOW_CREATE_NEW_ASSET)) {
+ packageDockLayoutPanel.addNorth(PackagesNewMenu.getMenu(packagesTreeItem),2);
+ }
+ packageDockLayoutPanel.add(packagesTreeItemPanel);
+
+ navigationStackLayoutPanel.add(packageDockLayoutPanel, packagesTreeItem.getHeaderHTML(), 2);
+
+
+ //final PackagesPanel pp = new PackagesPanel(centertabbedPanel);
+ //accordion.add(createMailItem(images), mailHeader, true);
/*
DeferredCommand.addCommand(new Command() {
public void execute() {
@@ -130,70 +152,56 @@
}
-
+ //QA
if (shouldShow(Capabilities.SHOW_QA)) {
- accordion.add(new QAPanel(centertabbedPanel));
+ DockLayoutPanel qaDockLayoutPanel = new DockLayoutPanel(Unit.EM);
+ QATree qaTreeItem = new QATree(centertabbedPanel);
+ ScrollPanel qaTreeItemPanel = new ScrollPanel(qaTreeItem.getTree());
+
+ qaDockLayoutPanel.add(qaTreeItemPanel);
+
+ navigationStackLayoutPanel.add(qaDockLayoutPanel, qaTreeItem.getHeaderHTML(), 2);
}
+ //Deployment(Package snapshots)
if (shouldShow(Capabilities.SHOW_DEPLOYMENT, Capabilities.SHOW_DEPLOYMENT_NEW)) {
- accordion.add(new DeploymentPanel(centertabbedPanel));
+ DockLayoutPanel deploymentDockLayoutPanel = new DockLayoutPanel(Unit.EM);
+ DeploymentTree deploymentTreeItem = new DeploymentTree(centertabbedPanel);
+ ScrollPanel deploymentTreeItemPanel = new ScrollPanel(deploymentTreeItem.getTree());
+
+ if (ExplorerLayoutManager.shouldShow(Capabilities.SHOW_CREATE_NEW_ASSET)) {
+ deploymentDockLayoutPanel.addNorth(DeploymentNewMenu.getMenu(deploymentTreeItem),2);
+ }
+
+ deploymentDockLayoutPanel.add(deploymentTreeItemPanel);
+
+ navigationStackLayoutPanel.add(deploymentDockLayoutPanel, deploymentTreeItem.getHeaderHTML(), 2);
}
+ //Admin
if (shouldShow(Capabilities.SHOW_ADMIN)) {
- accordion.add(new AdministrationPanel(centertabbedPanel));
+ DockLayoutPanel adminDockLayoutPanel = new DockLayoutPanel(Unit.EM);
+ AdministrationTree deploymentTreeItem = new AdministrationTree(centertabbedPanel);
+ ScrollPanel adminTreeItemPanel = new ScrollPanel(deploymentTreeItem.getTree());
+
+ adminDockLayoutPanel.add(adminTreeItemPanel);
+
+ navigationStackLayoutPanel.add(adminDockLayoutPanel, deploymentTreeItem.getHeaderHTML(), 2);
}
//accordion.add(new ProcessServerPanel("Process Server", centertabbedPanel));
}
- private void setUpMain(BookmarkInfo bi) {
-
- mainPanel = new Panel();
- mainPanel.setLayout(new BorderLayout());
- mainPanel.setMargins(0, 0, 0, 0);
-
- BorderLayoutData northLayoutData = new BorderLayoutData(RegionPosition.NORTH);
- northLayoutData.setMargins(0, 0, 0, 0);
-
- BorderLayoutData centerLayoutData = new BorderLayoutData(RegionPosition.CENTER);
- centerLayoutData.setMargins(new Margins(5, 0, 5, 5));
-
- Panel centerPanelWrappper = new Panel();
- centerPanelWrappper.setLayout(new FitLayout());
- centerPanelWrappper.setBorder(false);
- centerPanelWrappper.setBodyBorder(false);
-
- if (bi.showChrome) {
- //setup the west regions layout properties
- BorderLayoutData westLayoutData = new BorderLayoutData(RegionPosition.WEST);
- westLayoutData.setMargins(new Margins(5, 5, 0, 5));
- westLayoutData.setCMargins(new Margins(5, 5, 5, 5));
- westLayoutData.setMinSize(155);
- westLayoutData.setMaxSize(350);
- westLayoutData.setSplit(true);
-
- //create the west panel and add it to the main panel applying the west region layout properties
- Panel westPanel = new Panel();
- westPanel.setId("side-nav");
- westPanel.setTitle(((Constants) GWT.create(Constants.class)).Navigate());
- westPanel.setLayout(new FitLayout());
- westPanel.setWidth(210);
- westPanel.setCollapsible(true);//MN createWestPanel();
- westPanel.add(accordion);
- mainPanel.add(westPanel, westLayoutData);
- }
-
- centerPanelWrappper.add(centertabbedPanel.getPanel());
-
- mainPanel.add(centerPanelWrappper, centerLayoutData);
- if (bi.showChrome) {
- mainPanel.add(northPanel, northLayoutData);
- }
-
- }
-
-
+ /**
+ * Create the explorer view tabbed panel
+ *
+ * @param constants the constant values to use
+ */
+ private void setupExplorerViewCenterPanel() {
+ centertabbedPanel = new ExplorerViewCenterPanel();
+ }
+
public Panel getBaseLayout() {
return mainPanel;
}
@@ -207,20 +215,6 @@
return false;
}
- public static TreePanel genericExplorerWidget(final TreeNode childNode) {
- // create and configure the main tree
- final TreePanel menuTree = new TreePanel();
- menuTree.setAnimate(true);
- menuTree.setEnableDD(true);
- menuTree.setContainerScroll(true);
- menuTree.setRootVisible(true);
- menuTree.setBodyBorder(false);
- menuTree.setBorder(false);
- menuTree.setRootNode(childNode);
- return menuTree;
- }
-
-
/**
* Parse the bookmark/history token (the bit after the "#" in the URL)
* to work out what we will display.
@@ -247,12 +241,9 @@
return bi;
}
-
public static class BookmarkInfo {
String assetId;
boolean showChrome = true;
boolean loadAsset = false;
}
-
-
}
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerNodeConfig.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerNodeConfig.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerNodeConfig.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -1,4 +1,4 @@
-/*
+/**
* Copyright 2010 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,435 +16,397 @@
package org.drools.guvnor.client.explorer;
+import java.util.Map;
+
import org.drools.guvnor.client.common.AssetFormats;
import org.drools.guvnor.client.common.GenericCallback;
-import org.drools.guvnor.client.common.Inbox;
+import org.drools.guvnor.client.common.Util;
+import org.drools.guvnor.client.images.Images;
import org.drools.guvnor.client.messages.Constants;
-import org.drools.guvnor.client.qa.AnalysisView;
-import org.drools.guvnor.client.qa.ScenarioPackageView;
import org.drools.guvnor.client.rpc.PackageConfigData;
import org.drools.guvnor.client.rpc.RepositoryServiceFactory;
-import org.drools.guvnor.client.rpc.WorkingSetConfigData;
-import org.drools.guvnor.client.ruleeditor.MultiViewRow;
-import org.drools.guvnor.client.rulelist.EditItemEvent;
import org.drools.guvnor.client.security.Capabilities;
-import org.drools.guvnor.client.util.Format;
import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.Timer;
-import com.gwtext.client.core.EventObject;
-import com.gwtext.client.data.Node;
-import com.gwtext.client.widgets.tree.TreeNode;
-import com.gwtext.client.widgets.tree.event.TreeNodeListenerAdapter;
+import com.google.gwt.event.logical.shared.OpenEvent;
+import com.google.gwt.event.logical.shared.OpenHandler;
+import com.google.gwt.resources.client.ImageResource;
+import com.google.gwt.user.client.ui.Tree;
+import com.google.gwt.user.client.ui.TreeItem;
/*
* This class contains static node config for BRMS' explorer widgets
*/
public class ExplorerNodeConfig {
+
+ private static Constants constants = ((Constants) GWT.create( Constants.class ));
+ private static Images images = (Images) GWT.create(Images.class);
+ //Browse
+ public static final String FIND_ID = "find";
public static String CATEGORY_ID = "category"; //NON-NLS
public static String STATES_ID = "states"; //NON-NLS
- private static Constants constants = ((Constants) GWT.create( Constants.class ));
+ public static final String RECENT_EDITED_ID = "recentEdited";
+ public static final String RECENT_VIEWED_ID = "recentViewed";
+ public static final String INCOMING_ID = "incoming";
- public static TreeNode getPackageItemStructure(String packageName,
- String uuid) {
+ //QA
+ public static final String TEST_SCENARIOS = "testScenarios";
+ public static final String ANALYSIS = "analysis";
+
+ //Package snapshot
+ public static final String PACKAGE_SNAPSHOTS = "packageSnapshots";
- TreeNode pkg = new TreeNode( packageName );
- pkg.setAttribute( "uuid",
- uuid );
- pkg.setAttribute( "icon",
- "images/package.gif" );
+
+ public static TreeItem getPackageItemStructure(String packageName,
+ String uuid,
+ final Map<TreeItem, String> itemWidgets) {
+ TreeItem pkg = new TreeItem(Util.getHeader(images.packages(), packageName));
+ itemWidgets.put(pkg, uuid);
- pkg.appendChild( makeItem( constants.BusinessRuleAssets(),
- "images/rule_asset.gif",
- AssetFormats.BUSINESS_RULE_FORMATS ) );
- pkg.appendChild( makeItem( constants.TechnicalRuleAssets(),
- "images/technical_rule_assets.gif",
- new String[]{AssetFormats.DRL} ) );
- pkg.appendChild( makeItem( constants.Functions(),
- "images/function_assets.gif",
- new String[]{AssetFormats.FUNCTION} ) );
- pkg.appendChild( makeItem( constants.DSLConfigurations(),
- "images/dsl.gif",
-
- new String[]{AssetFormats.DSL} ) );
- pkg.appendChild( makeItem( constants.Model(),
- "images/model_asset.gif",
-
- new String[]{AssetFormats.MODEL, AssetFormats.DRL_MODEL} ) );
-
+ TreeItem item = new TreeItem(Util.getHeader(images.ruleAsset(), constants.BusinessRuleAssets()));
+ //itemWidgets.put(item, AssetFormats.BUSINESS_RULE_FORMATS[0]);
+ item.setUserObject(AssetFormats.BUSINESS_RULE_FORMATS);
+ pkg.addItem(item);
+
+ item = new TreeItem(Util.getHeader(images.technicalRuleAssets(), constants.TechnicalRuleAssets()));
+ itemWidgets.put(item, AssetFormats.DRL);
+ item.setUserObject(new String[]{AssetFormats.DRL});
+ pkg.addItem(item);
+
+ item = new TreeItem(Util.getHeader(images.functionAssets(), constants.Functions()));
+ itemWidgets.put(item, AssetFormats.FUNCTION);
+ item.setUserObject(new String[]{AssetFormats.FUNCTION});
+ pkg.addItem(item);
+
+ item = new TreeItem(Util.getHeader(images.modelAsset(), constants.Model()));
+ itemWidgets.put(item, AssetFormats.DSL);
+ item.setUserObject(new String[]{AssetFormats.DSL});
+ pkg.addItem(item);
+
+ item = new TreeItem(Util.getHeader(images.ruleAsset(), constants.BusinessRuleAssets()));
+ itemWidgets.put(item, AssetFormats.DRL_MODEL);
+ item.setUserObject(new String[]{AssetFormats.DRL_MODEL});
+ pkg.addItem(item);
+
if ( Preferences.getBooleanPref( "flex-bpel-editor" ) ) {
- pkg.appendChild( makeItem( constants.RuleFlows(),
- "images/ruleflow_small.gif",
- new String[]{AssetFormats.RULE_FLOW_RF, AssetFormats.BPMN2_PROCESS, AssetFormats.BPEL_PACKAGE} ) );
+ item = new TreeItem(Util.getHeader(images.ruleflowSmall(), constants.RuleFlows()));
+ itemWidgets.put(item, AssetFormats.RULE_FLOW_RF);
+ item.setUserObject(new String[]{AssetFormats.RULE_FLOW_RF});
+ pkg.addItem(item);
} else {
- pkg.appendChild( makeItem( constants.RuleFlows(),
- "images/ruleflow_small.gif",
- new String[]{AssetFormats.RULE_FLOW_RF, AssetFormats.BPMN2_PROCESS} ) );
+ item = new TreeItem(Util.getHeader(images.ruleflowSmall(), constants.RuleFlows()));
+ itemWidgets.put(item, AssetFormats.RULE_FLOW_RF);
+ item.setUserObject(new String[]{AssetFormats.RULE_FLOW_RF});
+ pkg.addItem(item);
+
}
+
+ item = new TreeItem(Util.getHeader(images.enumeration(), constants.Enumerations()));
+ itemWidgets.put(item, AssetFormats.ENUMERATION);
+ item.setUserObject(new String[]{AssetFormats.ENUMERATION});
+ pkg.addItem(item);
+
+ item = new TreeItem(Util.getHeader(images.testManager(), constants.TestScenarios()));
+ itemWidgets.put(item, AssetFormats.TEST_SCENARIO);
+ item.setUserObject(new String[]{AssetFormats.TEST_SCENARIO});
+ pkg.addItem(item);
+
+ item = new TreeItem(Util.getHeader(images.newFile(), constants.XMLProperties()));
+ itemWidgets.put(item, AssetFormats.PROPERTIES);
+ item.setUserObject(new String[]{AssetFormats.PROPERTIES});
+ pkg.addItem(item);
+
+ item = new TreeItem(Util.getHeader(images.newFile(), constants.OtherAssetsDocumentation()));
+ itemWidgets.put(item, AssetFormats.PROPERTIES);
+ item.setUserObject(new String[0]);
+ pkg.addItem(item);
+
+ item = new TreeItem(Util.getHeader(images.workingset(), constants.WorkingSets()));
+ itemWidgets.put(item, AssetFormats.WORKING_SET);
+ item.setUserObject(new String[]{AssetFormats.WORKING_SET});
+ pkg.addItem(item);
- pkg.appendChild( makeItem( constants.Enumerations(),
- "images/enumeration.gif",
+ return pkg;
+ }
+
+ public static Tree getDeploymentTree(Map<TreeItem, String> itemWidgets) {
+ Tree tree = new Tree();
+ tree.setAnimationEnabled(true);
- new String[]{AssetFormats.ENUMERATION} ) );
+ TreeItem root = tree.addItem(Util.getHeader(images.chartOrganisation(), constants.PackageSnapshots()));
+ itemWidgets.put(root, PACKAGE_SNAPSHOTS);
+ deploymentListPackages(root);
- pkg.appendChild( makeItem( constants.TestScenarios(),
- "images/test_manager.gif",
+ return tree;
+ }
+
+ private static void deploymentListPackages(final TreeItem root) {
+ RepositoryServiceFactory.getService().listPackages(new GenericCallback<PackageConfigData[]>() {
+ public void onSuccess(PackageConfigData[] values) {
+ PackageHierarchy ph = new PackageHierarchy();
- new String[]{AssetFormats.TEST_SCENARIO} ) );
+ for (PackageConfigData val : values) {
+ ph.addPackage(val);
+ }
+ for (PackageHierarchy.Folder hf : ph.root.children) {
+ buildDeploymentTree(root, hf);
+ }
+ //root.expand();
+ }
+ });
+ }
- pkg.appendChild( makeItem( constants.XMLProperties(),
- "images/new_file.gif",
- new String[]{AssetFormats.XML, AssetFormats.PROPERTIES} ) );
-
- pkg.appendChild( makeItem( constants.OtherAssetsDocumentation(),
- "images/new_file.gif",
- new String[0] ) );
-
- pkg.appendChild(makeItem(constants.WorkingSets(), "images/workingset.gif", new String[] {AssetFormats.WORKING_SET}));
-
- return pkg;
+ private static void buildDeploymentTree(TreeItem root, PackageHierarchy.Folder fldr) {
+ if (fldr.conf != null) {
+ TreeItem pkg = new TreeItem(Util.getHeader(images.snapshotSmall(), fldr.conf.name));
+ pkg.setUserObject(fldr.conf);
+ pkg.addItem(new TreeItem(constants.PleaseWaitDotDotDot()));
+ root.addItem(pkg);
+ } else {
+ TreeItem tn = new TreeItem(Util.getHeader(images.emptyPackage(), fldr.name));
+ root.addItem(tn);
+ for (PackageHierarchy.Folder c : fldr.children) {
+ buildDeploymentTree(tn, c);
+ }
+ }
}
- private static TreeNode makeItem(final String txt,
- final String img,
- final String[] formats) {
- TreeNode tn = new TreeNode();
- tn.setIcon( img );
- tn.setText( txt );
- tn.setUserObject( new Object[]{formats, txt} );
- return tn;
- }
+ public static Tree getAdminStructure(Map<TreeItem, String> itemWidgets) {
+ Tree tree = new Tree();
+ tree.setAnimationEnabled(true);
- public static TreeNode getAdminStructure() {
-
- TreeNode adminNode = new TreeNode( constants.Admin() );
+ //TreeItem adminNode = new TreeItem( constants.Admin() );
+ //tree.addItem(adminNode);
//adminNode.setAttribute("icon", "images/managment.gif");
- String[][] adminStructure = new String[][] {
- { constants.Category(), "images/category_small.gif", "0"},
- { constants.Status(), "images/tag.png", "2" },
- { constants.Archive(), "images/backup_small.gif", "1" },
- { constants.EventLog(), "images/error.gif", "4" },
- { constants.UserPermission(), "images/icoUsers.gif", "5" },
- { constants.ImportExport(), "images/save_edit.gif", "3" },
- { constants.RulesVerification(), "images/rule_verification.png", "7" },
- { constants.About(), "images/information.gif", "6" },
- { constants.RepositoryConfiguration(), "images/config.png", "8"}};
+ Object[][] adminStructure = new Object[][] {
+ { constants.Category(), images.categorySmall(), "0"},
+ { constants.Status(), images.tag(), "2" },
+ { constants.Archive(), images.backupSmall(), "1" },
+ { constants.EventLog(), images.error(), "4" },
+ { constants.UserPermission(), images.icoUsers(), "5" },
+ { constants.ImportExport(), images.saveEdit(), "3" },
+ { constants.RulesVerification(), images.ruleVerification(), "7" },
+ { constants.About(), images.information(), "6" }};
for ( int i = 0; i < adminStructure.length; i++ ) {
- String[] packageData = adminStructure[i];
- TreeNode localChildNode = new TreeNode( packageData[0] );
- localChildNode.setAttribute("icon", packageData[1]); //NON-NLS
- localChildNode.setAttribute("id", packageData[2]);
+ Object[] packageData = adminStructure[i];
+ TreeItem localChildNode = new TreeItem(Util.getHeader((ImageResource)packageData[1], (String)packageData[0]));
+ itemWidgets.put(localChildNode, (String)packageData[2]);
+ //localChildNode.setAttribute("id", packageData[2]);
- adminNode.appendChild( localChildNode );
+ tree.addItem(localChildNode);
}
- return adminNode;
+ return tree;
}
- public static TreeNode getRulesStructure() {
- TreeNode tn = new TreeNode();
- tn.setText( constants.AssetsTreeView() );
- tn.setExpanded( true );
+ public static Tree getBrowseTree(Map<TreeItem, String> itemWidgets) {
+ Tree tree = new Tree();
+ tree.setAnimationEnabled(true);
+
+ TreeItem root = tree.addItem(Util.getHeader(images.ruleAsset(), constants.AssetsTreeView()));
+ //itemWidgets.put(root, constants.AssetsTreeView());
- TreeNode tnc = new TreeNode();
- tnc.setIcon( "images/find.gif" ); //NON-NLS
- tnc.setId( "FIND" );
- tnc.setText( constants.Find() );
+ TreeItem option = root.addItem(Util.getHeader(images.find(), constants.Find()));
+ itemWidgets.put(option, FIND_ID);
- final TreeNode inbox = getInboxStructure();
- tn.appendChild( tnc );
+ TreeItem inbox = getInboxStructure(itemWidgets);
+ root.addItem(inbox);
- tn.appendChild( inbox );
- if ( ExplorerLayoutManager.shouldShow( Capabilities.SHOW_PACKAGE_VIEW ) ) {
- tn.appendChild( getStatesStructure() );
+ if (ExplorerLayoutManager.shouldShow(Capabilities.SHOW_PACKAGE_VIEW)) {
+ TreeItem states = getStatesStructure(itemWidgets);
+ root.addItem(states);
}
- tn.appendChild( getCategoriesStructure() );
+
+ root.addItem(getCategoriesStructure(itemWidgets));
- //seem to have to open it on a timer...
- Timer t = new Timer() {
- public void run() {
- inbox.expand();
- }
- };
- t.schedule( 100 );
-
- return tn;
-
+ return tree;
}
- private static TreeNode getInboxStructure() {
- final TreeNode treeNode = new TreeNode( "Inbox" );
- treeNode.setAttribute( "icon",
- "images/inbox.gif" ); //NON-NLS
- treeNode.setAttribute( "id",
- "inboxes" );
-
- treeNode.setAttribute("open", false);
+ private static TreeItem getInboxStructure(Map<TreeItem, String> itemWidgets) {
+ TreeItem inbox = new TreeItem(Util.getHeader(images.inbox(), constants.Inbox()));
- TreeNode incoming = new TreeNode( constants.IncomingChanges() );
- incoming.setId( "inbox3" );
- incoming.setAttribute( "icon",
- "images/category_small.gif" ); //NON-NLS
- incoming.setUserObject( Inbox.INCOMING );
- treeNode.appendChild( incoming );
+ TreeItem incomingChanges = new TreeItem(Util.getHeader(images.categorySmall(), constants.IncomingChanges()));
+ itemWidgets.put(incomingChanges, INCOMING_ID);
+ inbox.addItem(incomingChanges);
- TreeNode recentOpened = new TreeNode( constants.RecentlyOpened() );
- recentOpened.setId( "inbox1" );
- recentOpened.setAttribute( "icon",
- "images/category_small.gif" ); //NON-NLS
- recentOpened.setUserObject( Inbox.RECENT_VIEWED );
- treeNode.appendChild( recentOpened );
+ TreeItem recentOpened = new TreeItem(Util.getHeader(images.categorySmall(), constants.RecentlyOpened()));
+ itemWidgets.put(recentOpened, RECENT_VIEWED_ID);
+ inbox.addItem(recentOpened);
- TreeNode recentEdited = new TreeNode( constants.RecentlyEdited() );
- recentEdited.setId( "inbox2" );
- recentEdited.setAttribute( "icon",
- "images/category_small.gif" ); //NON-NLS
- recentEdited.setUserObject( Inbox.RECENT_EDITED );
- treeNode.appendChild( recentEdited );
+ TreeItem recentEdited = new TreeItem(Util.getHeader(images.categorySmall(), constants.RecentlyEdited()));
+ itemWidgets.put(recentEdited, RECENT_EDITED_ID);
+ inbox.addItem(recentEdited);
+
+ return inbox;
+ }
- treeNode.expand();
+ public static TreeItem getCategoriesStructure(final Map<TreeItem, String> itemWidgets) {
+ TreeItem byCategory = new TreeItem(Util.getHeader(images.chartOrganisation(), constants.ByCategory()));
+ //itemWidgets.put(byCategory, constants.Inbox());
- return treeNode;
+ doCategoryNode(byCategory,
+ "/",
+ itemWidgets);
+ return byCategory;
}
- public static TreeNode getCategoriesStructure() {
- final TreeNode treeNode = new TreeNode( constants.ByCategory() );
- treeNode.setAttribute( "icon",
- "images/silk/chart_organisation.gif" );
- treeNode.setAttribute( "id",
- CATEGORY_ID );
- doCategoryNode( treeNode,
- "/" );
- return treeNode;
- }
+ private static void doCategoryNode(final TreeItem treeItem,
+ final String path, final Map<TreeItem, String> itemWidgets) {
+ infanticide(treeItem);
+ RepositoryServiceFactory.getService().loadChildCategories(path,
+ new GenericCallback() {
+ public void onSuccess(Object data) {
+ final String value[] = (String[]) data;
+ if (value.length == 0) {
+ if (path.equals("/")
+ && ExplorerLayoutManager
+ .shouldShow(Capabilities.SHOW_ADMIN)) {
+ RepositoryServiceFactory
+ .getService()
+ .listPackages(
+ new GenericCallback<PackageConfigData[]>() {
+ public void onSuccess(
+ PackageConfigData[] result) {
+ if (result.length == 1) {
+ doNewRepoDialog();
+ }
+ }
+ });
+ }
+ infanticide(treeItem);
+ } else {
+ for (int i = 0; i < value.length; i++) {
- private static void doCategoryNode(final TreeNode treeNode,
- final String path) {
- infanticide( treeNode );
- RepositoryServiceFactory.getService().loadChildCategories( path,
- new GenericCallback() {
- public void onSuccess(Object data) {
- final String value[] = (String[]) data;
- if ( value.length == 0 ) {
- if ( path.equals( "/" ) && ExplorerLayoutManager.shouldShow( Capabilities.SHOW_ADMIN ) ) {
- RepositoryServiceFactory.getService().listPackages( new GenericCallback<PackageConfigData[]>() {
- public void onSuccess(PackageConfigData[] result) {
- if ( result.length == 1 ) {
- doNewRepoDialog();
- }
- }
- } );
+ final String current = value[i];
+ final TreeItem childNode = new TreeItem(
+ Util.getHeader(images.categorySmall(),
+ current));
+
+ //ID for category tabs.
+ String widgetId = CATEGORY_ID + "-" + ((path.equals("/")) ? current : path
+ + "/" + current);
+ itemWidgets.put(childNode, widgetId);
+ treeItem.addItem(childNode);
+
+/* childNode.setUserObject(path.equals("/") ? current : path
+ + "/" + current);*/
+ childNode.addItem(new TreeItem(Util.getHeader(images.categorySmall(),
+ constants.PleaseWaitDotDotDot())));
+ childNode.getTree().addOpenHandler(
+ new OpenHandler<TreeItem>() {
+ boolean expanding = false;
- }
- infanticide( treeNode );
- } else {
- for ( int i = 0; i < value.length; i++ ) {
+ public void onOpen(
+ OpenEvent<TreeItem> event) {
+ if (!expanding && event.getTarget() == childNode) {
+ expanding = true;
+ String widgetID = itemWidgets.get(event.getTarget());
+ String path = widgetID.substring(widgetID.indexOf("-") + 1);
+ infanticide( childNode );
+ doCategoryNode(
+ childNode,
+ path,
+ itemWidgets);
+ // childNode.expand();
+ expanding = false;
+ }
+ }
+ });
+ }
+ }
+ }
- final String current = value[i];
- System.err.println( "VALUE: " + current + "(" + i + ")" );
- final TreeNode childNode = new TreeNode();
- childNode.setIcon( "images/category_small.gif" );
- childNode.setText( current );
+ private void doNewRepoDialog() {
+ NewRepoDialog diag = new NewRepoDialog();
+ diag.show();
+ }
- childNode.setUserObject( (path.equals( "/" )) ? current : path + "/" + current );
- childNode.appendChild( new TreeNode( constants.PleaseWaitDotDotDot() ) );
- childNode.addListener( new TreeNodeListenerAdapter() {
- boolean expanding = false;
+ });
+ }
- public void onExpand(Node node) {
+ private static void infanticide(final TreeItem treeNode) {
+ treeNode.removeItems();
+ }
- if ( !expanding ) {
- expanding = true;
- infanticide( childNode );
- doCategoryNode( childNode,
- (String) childNode.getUserObject() );
- childNode.expand();
- expanding = false;
- }
- }
- } );
-
- treeNode.appendChild( childNode );
- }
- }
- }
-
- private void doNewRepoDialog() {
- NewRepoDialog diag = new NewRepoDialog();
- diag.show();
- }
-
- } );
- }
-
- private static void infanticide(final TreeNode treeNode) {
- Node[] children = treeNode.getChildNodes();
- for ( int i = 0; i < children.length; i++ ) {
- treeNode.removeChild( children[i] );
- }
- }
-
- public static TreeNode getStatesStructure() {
-
- final TreeNode treeNode = new TreeNode( constants.ByStatus() );
- treeNode.setAttribute( "icon",
- "images/status_small.gif" ); //NON-NLS
- treeNode.setAttribute( "id",
- STATES_ID );
-
+ public static TreeItem getStatesStructure(final Map<TreeItem, String> itemWidgets) {
+ final TreeItem byStatus = new TreeItem(Util.getHeader(images.statusSmall(), constants.ByStatus()));
+
RepositoryServiceFactory.getService().listStates( new GenericCallback<String[]>() {
public void onSuccess(String[] value) {
for ( int i = 0; i < value.length; i++ ) {
- TreeNode childNode = new TreeNode( value[i] );
- childNode.setAttribute( "icon",
- "images/category_small.gif" ); //NON-NLS
- childNode.setUserObject( "-" + value[i] );
- treeNode.appendChild( childNode );
+ TreeItem childNode = new TreeItem(Util.getHeader(images.categorySmall(), value[i]));
+
+ //ID for state tabs.
+ String widgetID = STATES_ID + "-" + value[i];
+ itemWidgets.put(childNode, widgetID);
+ byStatus.addItem(childNode);
}
}
} );
- return treeNode;
+ return byStatus;
}
- public static TreeNode getQAStructure(final ExplorerViewCenterPanel centerPanel) {
+ public static Tree getQAStructure(final Map<TreeItem, String> itemWidgets) {
+ Tree tree = new Tree();
+ tree.setAnimationEnabled(true);
- final TreeNode treeNode = new TreeNode();
- treeNode.setText( constants.QA() );
+ final TreeItem scenarios = new TreeItem(Util.getHeader(images.testManager(), constants.TestScenariosInPackages()));
+ scenarios.addItem(new TreeItem(constants.PleaseWaitDotDotDot()));
+ tree.addItem(scenarios);
+ tree.addOpenHandler(
+ new OpenHandler<TreeItem>() {
+ public void onOpen(
+ OpenEvent<TreeItem> event) {
+ RepositoryServiceFactory.getService().listPackages( new GenericCallback<PackageConfigData[]>() {
+ public void onSuccess(PackageConfigData[] conf) {
+ for ( int i = 0; i < conf.length; i++ ) {
+ final PackageConfigData c = conf[i];
+ TreeItem pkg = new TreeItem(Util.getHeader(images.packages(), c.name));
- final TreeNode scenarios = new TreeNode();
- scenarios.setText( constants.TestScenariosInPackages() );
- scenarios.setIcon( "images/test_manager.gif" ); //NON-NLS
+ scenarios.addItem(pkg);
+ pkg.setUserObject(c);
+ itemWidgets.put(pkg, TEST_SCENARIOS);
+ }
+ scenarios.removeItem(scenarios.getChild(0));
+ }
+ } );
+ }
+ });
- final EditItemEvent edit = new EditItemEvent() {
- public void open(String key) {
- centerPanel.openAsset( key );
- }
+
+ final TreeItem analysis = new TreeItem(Util.getHeader(images.analyze(), constants.Analysis()));
+ analysis.addItem(new TreeItem(constants.PleaseWaitDotDotDot()));
- public void open(MultiViewRow[] rows) {
- for ( MultiViewRow row : rows ) {
- centerPanel.openAsset( row.uuid );
- }
- }
- };
+ if (Preferences.getBooleanPref("verifier")) {
+ tree.addItem(analysis);
+ tree.addOpenHandler(
+ new OpenHandler<TreeItem>() {
+ public void onOpen(
+ OpenEvent<TreeItem> event) {
+ RepositoryServiceFactory.getService().listPackages( new GenericCallback<PackageConfigData[]>() {
+ public void onSuccess(PackageConfigData[] conf) {
- scenarios.appendChild( new TreeNode( constants.PleaseWaitDotDotDot() ) );
- treeNode.appendChild( scenarios );
+ for ( int i = 0; i < conf.length; i++ ) {
+ final PackageConfigData c = conf[i];
+ TreeItem pkg = new TreeItem(Util.getHeader(images.packages(), c.name));
- final TreeNode analysis = new TreeNode();
- analysis.setText( constants.Analysis() );
- analysis.setIcon( "images/analyze.gif" ); //NON-NLS
- analysis.setExpanded( false );
- analysis.appendChild( new TreeNode( constants.PleaseWaitDotDotDot() ) );
-
- if ( Preferences.getBooleanPref( "verifier" ) ) {
- treeNode.appendChild( analysis );
+ analysis.addItem(pkg);
+ pkg.setUserObject(c);
+ itemWidgets.put(pkg, ANALYSIS);
+ }
+ analysis.removeItem(analysis.getChild(0));
+ }
+ } );
+ }
+ });
+
}
- scenarios.addListener( new TreeNodeListenerAdapter() {
- public void onExpand(Node node) {
-
- RepositoryServiceFactory.getService().listPackages( new GenericCallback<PackageConfigData[]>() {
- public void onSuccess(PackageConfigData[] conf) {
- for ( int i = 0; i < conf.length; i++ ) {
- final PackageConfigData c = conf[i];
- TreeNode pkg = new TreeNode();
- pkg.setText( c.name );
- pkg.setIcon( "images/package.gif" ); //NON-NLS
-
- scenarios.appendChild( pkg );
- pkg.addListener( new TreeNodeListenerAdapter() {
- public void onClick(Node node,
- EventObject e) {
- if ( !centerPanel.showIfOpen( "scenarios" + c.uuid ) ) { //NON-NLS
- String m = Format.format( constants.ScenariosForPackage(),
- c.name );
- centerPanel.addTab( m,
- true,
- new ScenarioPackageView( c.uuid,
- c.name,
- edit,
- centerPanel ),
- "scenarios" + c.uuid ); //NON-NLS
- }
- }
- } );
- }
- scenarios.removeChild( scenarios.getFirstChild() );
-
- }
- } );
- }
-
- public void onCollapse(Node node) {
- Node[] cs = node.getChildNodes();
- for ( int i = 0; i < cs.length; i++ ) {
- node.removeChild( cs[i] );
- }
- node.appendChild( new TreeNode( constants.PleaseWaitDotDotDot() ) );
- }
- } );
-
- analysis.addListener( new TreeNodeListenerAdapter() {
-
- public void onExpand(Node node) {
- RepositoryServiceFactory.getService().listPackages( new GenericCallback<PackageConfigData[]>() {
- public void onSuccess(PackageConfigData[] conf) {
-
- for ( int i = 0; i < conf.length; i++ ) {
- final PackageConfigData c = conf[i];
- TreeNode pkg = new TreeNode();
- pkg.setText( c.name );
- pkg.setIcon( "images/package.gif" ); //NON-NLS
-
- analysis.appendChild( pkg );
- pkg.addListener( new TreeNodeListenerAdapter() {
- public void onClick(Node node,
- EventObject e) {
- if ( !centerPanel.showIfOpen( "analysis" + c.uuid ) ) { //NON-NLS
- final EditItemEvent edit = new EditItemEvent() {
- public void open(String key) {
- centerPanel.openAsset( key );
- }
-
- public void open(MultiViewRow[] rows) {
- for ( MultiViewRow row : rows ) {
- centerPanel.openAsset( row.uuid );
- }
- }
- };
- String m = Format.format( constants.AnalysisForPackage(),
- c.name );
- centerPanel.addTab( m,
- true,
- new AnalysisView( c.uuid,
- c.name,
- edit ),
- "analysis" + c.uuid ); //NON-NLS
- }
- }
- } );
- }
- analysis.removeChild( analysis.getFirstChild() );
-
- }
- } );
- }
-
- public void onCollapse(Node node) {
- Node[] cs = node.getChildNodes();
- for ( int i = 0; i < cs.length; i++ ) {
- node.removeChild( cs[i] );
- }
- node.appendChild( new TreeNode( constants.PleaseWaitDotDotDot() ) );
- }
- } );
-
- return treeNode;
+ return tree;
}
-
}
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerViewCenterPanel.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerViewCenterPanel.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ExplorerViewCenterPanel.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -41,36 +41,29 @@
import org.drools.guvnor.client.util.Format;
import com.google.gwt.core.client.GWT;
+import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.History;
import com.google.gwt.user.client.Timer;
-import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.ui.Panel;
+import com.google.gwt.user.client.ui.ScrollPanel;
+import com.google.gwt.user.client.ui.TabLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
-import com.gwtext.client.core.EventObject;
+
import com.gwtext.client.core.Ext;
-import com.gwtext.client.core.Margins;
-import com.gwtext.client.core.RegionPosition;
import com.gwtext.client.widgets.Button;
-import com.gwtext.client.widgets.Component;
-import com.gwtext.client.widgets.Container;
-import com.gwtext.client.widgets.Panel;
-import com.gwtext.client.widgets.TabPanel;
-import com.gwtext.client.widgets.event.ButtonListenerAdapter;
-import com.gwtext.client.widgets.event.PanelListenerAdapter;
-import com.gwtext.client.widgets.event.TabPanelListenerAdapter;
-import com.gwtext.client.widgets.layout.BorderLayoutData;
+
/**
* This is the tab panel manager.
* @author Fernando Meyer, Michael Neale
*/
public class ExplorerViewCenterPanel {
- final TabPanel tp;
+ final TabLayoutPanel tp;
private MultiKeyMap<Panel> openedTabs = new MultiKeyMap<Panel>();
private String id = Ext.generateId();
- private BorderLayoutData centerLayoutData;
/** to keep track of what is dirty, filthy */
private Map<String, GuvnorEditor> openedAssetEditors = new HashMap<String, GuvnorEditor>();
@@ -80,25 +73,11 @@
private Constants constants = ((Constants) GWT.create( Constants.class ));
public ExplorerViewCenterPanel() {
- tp = new TabPanel();
+ tp = new TabLayoutPanel(2, Unit.EM);
- tp.setBodyBorder( false );
- tp.setEnableTabScroll( true );
- tp.setAutoDestroy( true );
- tp.setResizeTabs( true );
- tp.setLayoutOnTabChange( true );
- tp.setActiveTab( 0 );
- tp.setEnableTabScroll( true );
- tp.setMinTabWidth( 90 );
-
- centerLayoutData = new BorderLayoutData( RegionPosition.CENTER );
- centerLayoutData.setMargins( new Margins( 5,
- 0,
- 5,
- 5 ) );
-
+ //TODO (JLIU):
//listener to try and stop people from forgetting to save...
- tp.addListener( new TabPanelListenerAdapter() {
+/* tp.addListener( new TabPanelListenerAdapter() {
@Override
public boolean doBeforeRemove(Container self,
final Component component) {
@@ -115,14 +94,14 @@
}
return true;
}
- } );
+ } );*/
addCloseAllButton();
-
}
+ //TODO (JLIU):
private void addCloseAllButton() {
- closeAllButton = new Button( constants.CloseAllItems() );
+/* closeAllButton = new Button( constants.CloseAllItems() );
closeAllButton.addListener( new ButtonListenerAdapter() {
@Override
public void onClick(Button button,
@@ -136,10 +115,10 @@
}
}
} );
- tp.addButton( closeAllButton );
+ tp.addButton( closeAllButton );*/
}
- public TabPanel getPanel() {
+ public TabLayoutPanel getPanel() {
return tp;
}
@@ -173,16 +152,13 @@
final String[] keys) {
final String panelId = (keys.length == 1 ? keys[0] + id : Arrays.toString( keys ) + id);
- Panel localTP = new Panel();
- localTP.setClosable( closeable );
- localTP.setTitle( tabname );
- localTP.setId( panelId );
- localTP.setAutoScroll( true );
- localTP.add( widget );
- tp.add( localTP,
- this.centerLayoutData );
+
+ ScrollPanel localTP = new ScrollPanel();
+ localTP.add(widget);
+ tp.add(localTP, tabname);
+ tp.selectTab(localTP);
- localTP.addListener( new PanelListenerAdapter() {
+/* localTP.ad( new PanelListenerAdapter() {
public void onDestroy(Component component) {
Panel p = openedTabs.remove( keys );
if ( p != null ) {
@@ -192,7 +168,7 @@
openedPackageEditors.remove( tabname );
}
} );
-
+*/
if ( widget instanceof GuvnorEditor ) {
this.openedAssetEditors.put( panelId,
(GuvnorEditor) widget );
@@ -201,32 +177,35 @@
(PackageEditor) widget );
}
- tp.activate( localTP.getId() );
+ //tp.activate( localTP.getId() );
openedTabs.put( keys,
localTP );
-
}
/**
* Will open if existing. If not it will return false;
*/
public boolean showIfOpen(String key) {
- if ( openedTabs.containsKey( key ) ) {
+ if (openedTabs.containsKey(key)) {
LoadingPopup.close();
-
- Panel tpi = (Panel) openedTabs.get( key );
- this.tp.activate( tpi.getId() );
-
+ Panel tpi = (Panel)openedTabs.get(key);
+ tp.selectTab(tpi);
return true;
}
return false;
}
public void close(String key) {
- tp.remove( key + id );
- Panel p = openedTabs.remove( key );
- if ( p != null ) p.destroy();
+ //tp.remove( key + id );
+ Panel tpi = openedTabs.remove(key);
+
+ int widgetIndex = tp.getWidgetIndex(tpi);
+ if (widgetIndex == tp.getSelectedIndex()) {
+ tp.selectTab(widgetIndex - 1);
+ }
+ tp.remove(widgetIndex);
+ //if (tpi != null ) tpi.destroy();
}
/**
@@ -403,23 +382,23 @@
public void openSnapshot(final SnapshotInfo snap) {
//make this refresh the 'snap'
- if ( !showIfOpen( snap.name + snap.uuid ) ) {
- LoadingPopup.showMessage( constants.LoadingSnapshot() );
- RepositoryServiceFactory.getService().loadPackageConfig( snap.uuid,
- new GenericCallback<PackageConfigData>() {
- public void onSuccess(PackageConfigData conf) {
- addTab( Format.format( constants.SnapshotLabel(),
- snap.name ),
+ if (!showIfOpen( snap.name + snap.uuid)) {
+ LoadingPopup.showMessage(constants.LoadingSnapshot());
+ RepositoryServiceFactory.getService().loadPackageConfig(snap.uuid,
+ new GenericCallback<PackageConfigData>() {
+ public void onSuccess(PackageConfigData conf) {
+ addTab(Format.format(constants.SnapshotLabel(),
+ snap.name),
true,
- new SnapshotView( snap,
- conf,
- new Command() {
- public void execute() {
- close( snap.name + snap.uuid );
- }
- },
- ExplorerViewCenterPanel.this ),
- snap.name + snap.uuid );
+ new SnapshotView(snap,
+ conf,
+ new Command() {
+ public void execute() {
+ close( snap.name + snap.uuid );
+ }
+ },
+ ExplorerViewCenterPanel.this),
+ snap.name + snap.uuid);
LoadingPopup.close();
}
} );
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesNewMenu.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesNewMenu.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesNewMenu.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -0,0 +1,181 @@
+/**
+ * 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.explorer;
+
+import org.drools.guvnor.client.common.AssetFormats;
+import org.drools.guvnor.client.common.GenericCallback;
+import org.drools.guvnor.client.common.LoadingPopup;
+import org.drools.guvnor.client.common.Util;
+import org.drools.guvnor.client.images.Images;
+import org.drools.guvnor.client.messages.Constants;
+import org.drools.guvnor.client.packages.NewPackageWizard;
+import org.drools.guvnor.client.rpc.RepositoryServiceFactory;
+
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.Command;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.ui.MenuBar;
+import com.google.gwt.user.client.ui.MenuItem;
+
+
+public class PackagesNewMenu {
+ private static Constants constants = ((Constants) GWT.create(Constants.class));
+ private static Images images = (Images) GWT.create(Images.class);
+
+ public static MenuBar getMenu(final AbstractTree manager) {
+
+ MenuBar createNewMenu = new MenuBar(true);
+
+ createNewMenu.addItem(Util.getHeader(images.newPackage(), constants.NewPackage1()),
+ true,
+ new Command() {
+ public void execute() {
+ NewPackageWizard wiz = new NewPackageWizard(new Command() {
+ public void execute() {
+ //refreshPackageTree();
+ }
+ });
+ wiz.show(); }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.newPackage(), constants.NewWorkingSet()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.WORKING_SET, constants.NewWorkingSet(), false);
+ }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.ruleAsset(), constants.NewRule()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(null, constants.NewRule(), true);
+ }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.modelAsset(), constants.UploadPOJOModelJar()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.MODEL, constants.NewModelArchiveJar(), false);
+ }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.modelAsset(), constants.NewDeclarativeModel()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.DRL_MODEL, constants.NewDeclarativeModelUsingGuidedEditor(), false);
+ }
+ });
+
+ if (Preferences.getBooleanPref("flex-bpel-editor")) {
+ createNewMenu.addItem(Util.getHeader(images.modelAsset(), constants.NewBPELPackage()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.BPEL_PACKAGE, constants
+ .CreateANewBPELPackage(), false);
+ }
+ });
+ }
+
+ createNewMenu.addItem(Util.getHeader(images.functionAssets(), constants.NewFunction()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.FUNCTION, constants.CreateANewFunction(), false);
+ }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.dsl(), constants.NewDSL()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.DSL, constants.CreateANewDSLConfiguration(), false);
+ }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.ruleflowSmall(), constants.NewRuleFlow()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.RULE_FLOW_RF, constants.CreateANewRuleFlow(), false);
+ }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.newEnumeration(), constants.NewEnumeration()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.ENUMERATION, constants.CreateANewEnumerationDropDownMapping(), false);
+ }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.testManager(), constants.NewTestScenario()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.TEST_SCENARIO, constants.CreateATestScenario(), false);
+ }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.newFile(), constants.CreateAFile()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard("*", constants.CreateAFile(), false);
+ }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.refresh(), constants.RebuildAllPackageBinariesQ()),
+ true,
+ new Command() {
+ public void execute() {
+ if (Window.confirm(constants.RebuildConfirmWarning())) {
+ LoadingPopup.showMessage(constants.RebuildingPackageBinaries());
+ RepositoryServiceFactory.getService().rebuildPackages(new GenericCallback<Void>() {
+ public void onSuccess(Void data) {
+ LoadingPopup.close();
+ }
+ });
+ }
+ }
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.newTemplate(), constants.NewRuleTemplate()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.RULE_TEMPLATE, constants.NewRuleTemplate(), true);
+ }
+ });
+
+
+ MenuBar rootMenuBar = new MenuBar(true);
+ rootMenuBar.setAutoOpen(true);
+ rootMenuBar.setAnimationEnabled(true);
+
+ rootMenuBar.addItem(new MenuItem(constants.CreateNew(), createNewMenu));
+
+ return rootMenuBar;
+ }
+
+
+}
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesPanel.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesPanel.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesPanel.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -369,7 +369,7 @@
new GenericCallback<PackageConfigData>() {
public void onSuccess(PackageConfigData value) {
- TreeNode globalRootNode = ExplorerNodeConfig.getPackageItemStructure("Global Area", value.uuid);
+ TreeNode globalRootNode = /*ExplorerNodeConfig.getPackageItemStructure("Global Area", value.uuid)*/new TreeNode();
globalRootNode.setUserObject(value);
globalRootNode.setAttribute("icon", "images/silk/chart_organisation.gif"); //NON-NLS
@@ -396,7 +396,7 @@
}
private TreeNode loadPackage(String name, PackageConfigData conf) {
- TreeNode pn = ExplorerNodeConfig.getPackageItemStructure(name, conf.uuid);
+ TreeNode pn = /*ExplorerNodeConfig.getPackageItemStructure(name, conf.uuid)*/new TreeNode();
// TreeNode wsNode = new TreeNode(constants.WorkingSets(), "images/workingset.gif");
// ExplorerNodeConfig.getWorkingSetItemsStructure(wsNode, conf.workingsets);
// pn.appendChild(wsNode);
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesTree.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesTree.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/PackagesTree.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -0,0 +1,294 @@
+/**
+ * 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.explorer;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.drools.guvnor.client.common.AssetFormats;
+import org.drools.guvnor.client.common.GenericCallback;
+import org.drools.guvnor.client.common.RulePackageSelector;
+import org.drools.guvnor.client.common.Util;
+import org.drools.guvnor.client.images.Images;
+import org.drools.guvnor.client.messages.Constants;
+import org.drools.guvnor.client.rpc.PackageConfigData;
+import org.drools.guvnor.client.rpc.PushClient;
+import org.drools.guvnor.client.rpc.PushResponse;
+import org.drools.guvnor.client.rpc.RepositoryServiceFactory;
+import org.drools.guvnor.client.rpc.ServerPushNotification;
+import org.drools.guvnor.client.rpc.TableDataResult;
+import org.drools.guvnor.client.ruleeditor.MultiViewRow;
+import org.drools.guvnor.client.rulelist.AssetItemGrid;
+import org.drools.guvnor.client.rulelist.AssetItemGridDataLoader;
+import org.drools.guvnor.client.rulelist.EditItemEvent;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.logical.shared.SelectionEvent;
+import com.google.gwt.user.client.Command;
+import com.google.gwt.user.client.ui.Tree;
+import com.google.gwt.user.client.ui.TreeItem;
+
+
+
+public class PackagesTree extends AbstractTree {
+ private static Constants constants = GWT.create(Constants.class);
+ private static Images images = (Images) GWT.create(Images.class);
+
+ private Map<TreeItem, String> itemWidgets = new HashMap<TreeItem, String>();
+
+ private boolean packagesLoaded = false;
+
+ public PackagesTree(ExplorerViewCenterPanel tabbedPanel) {
+ super(tabbedPanel);
+ this.name = constants.KnowledgeBases();
+ this.image = images.packages();
+/*
+ Toolbar pkgToolbar = new Toolbar();
+ final ToolbarMenuButton menuButton = new ToolbarMenuButton(constants.CreateNew(), packageNewMenu());
+ pkgToolbar.addButton( menuButton );
+
+ menuButton.addListener( new SplitButtonListenerAdapter() {
+
+ public void onClick(Button button,
+ EventObject e) {
+ menuButton.showMenu();
+ }
+ } );
+
+ packagesPanel = new VerticalPanel();
+ packagesPanel.setWidth("100%");
+ packagesPanel.add(pkgToolbar);*/
+
+ //these panels are lazy loaded to easy startup wait time.
+/* addListener(new PanelListenerAdapter() {
+ public void onExpand(Panel panel) {
+ loadPackageList();
+ }
+ });
+
+ add(packagesPanel);
+ */
+ mainTree = packageExplorer(tabbedPanel);
+ mainTree.addSelectionHandler(this);
+
+ }
+/*
+ public void loadPackageList() {
+ if (!packagesLoaded) {
+ packagesPanel.add(packageExplorer(centertabbedPanel));
+ packagesLoaded = true;
+ }
+ }
+*/
+ private void refreshPackageTree() {
+ //TODO (JLIU):
+ //packagesPanel.remove(1);
+ //packagesPanel.add(packageExplorer(centertabbedPanel));
+ }
+
+ private Tree packageExplorer(final ExplorerViewCenterPanel tabPanel) {
+ Tree rootNode = new Tree();
+ rootNode.setAnimationEnabled(true);
+
+ //Tree rootNode = new Tree(constants.Admin());
+
+ TreeItem packageRootNode = rootNode.addItem(Util.getHeader(images.chartOrganisation(), constants.Packages()));
+ //itemWidgets.put(root, constants.AssetsTreeView());
+ //Tree packageRootNode = new Tree(constants.Packages());
+ //packageRootNode.setAttribute("icon", "images/silk/chart_organisation.gif"); // NON-NLS
+ loadPackages(packageRootNode, itemWidgets);
+
+ /*
+ * TreeNode globalRootNode = new TreeNode("Global area");
+ * globalRootNode.setAttribute("icon",
+ * "images/silk/chart_organisation.gif"); //NON-NLS
+ * globalRootNode.setAttribute("id", "globalarea");
+ */
+ //loadGlobal(rootNode);
+
+ rootNode.addItem(packageRootNode);
+ // rootNode.appendChild(globalRootNode);
+
+
+/* @Override
+ public void onCollapseNode(final TreeItem node) {
+ if (node.getText().equals(constants.Packages())) {
+ Node[] children = node.getChildNodes();
+ for (Node child : children) {
+ node.removeChild(child);
+ }
+ loadPackages(node, itemWidgets);
+ }
+ }*/
+
+
+ // register listener
+/* panel.addListener(treePanelListener);
+
+ final ScrollPanel scp = wrapScroll(panel);*/
+
+
+ return rootNode;
+ }
+
+ private void loadPackages(final TreeItem root, final Map<TreeItem, String> itemWidgets) {
+ RepositoryServiceFactory.getService().listPackages(
+ new GenericCallback<PackageConfigData[]>() {
+ public void onSuccess(PackageConfigData[] value) {
+ PackageHierarchy ph = new PackageHierarchy();
+
+ for (PackageConfigData val : value) {
+ ph.addPackage(val);
+ }
+
+ for (PackageHierarchy.Folder hf : ph.root.children) {
+ buildPkgTree(root, hf);
+ }
+
+ //root.expand();
+ }
+ });
+ }
+
+ //TODO (JLIU):
+/* private void loadGlobal(final TreeNode root) {
+ RepositoryServiceFactory.getService().loadGlobalPackage(
+ new GenericCallback<PackageConfigData>() {
+ public void onSuccess(PackageConfigData value) {
+
+ TreeNode globalRootNode = ExplorerNodeConfig.getPackageItemStructure("Global Area", value.uuid);
+ globalRootNode.setUserObject(value);
+
+ globalRootNode.setAttribute("icon", "images/silk/chart_organisation.gif"); //NON-NLS
+ globalRootNode.setAttribute("id", "globalarea");
+
+ root.appendChild(globalRootNode);
+
+ }
+ });
+ }
+ */
+ private void buildPkgTree(TreeItem root, PackageHierarchy.Folder fldr) {
+ if (fldr.conf != null) {
+ root.addItem(loadPackage(fldr.name, fldr.conf));
+ } else {
+ TreeItem tn = new TreeItem(Util.getHeader(images.ruleAsset(), fldr.name));
+
+ TreeItem item = new TreeItem(Util.getHeader(images.emptyPackage(), constants.BusinessRuleAssets()));
+ itemWidgets.put(item, AssetFormats.BUSINESS_RULE_FORMATS[0]);
+ root.addItem(item);
+
+
+/* tn.setText(fldr.name);
+ tn.setIcon("images/empty_package.gif"); //NON-NLS
+ root.addItem(tn);*/
+ for (PackageHierarchy.Folder c : fldr.children) {
+ buildPkgTree(tn, c);
+ }
+ }
+ }
+
+ private TreeItem loadPackage(String name, PackageConfigData conf) {
+ TreeItem pn = ExplorerNodeConfig.getPackageItemStructure(name, conf.uuid, itemWidgets);
+// TreeNode wsNode = new TreeNode(constants.WorkingSets(), "images/workingset.gif");
+// ExplorerNodeConfig.getWorkingSetItemsStructure(wsNode, conf.workingsets);
+// pn.appendChild(wsNode);
+ pn.setUserObject(conf);
+ return pn;
+ }
+
+ public static String key(String[] fmts, PackageConfigData userObject) {
+ String key = userObject.uuid;
+ for (String fmt : fmts) {
+ key = key + fmt;
+ }
+ if (fmts.length == 0) {
+ key = key + "[0]";
+ }
+ return key;
+ }
+
+
+ // Show the associated widget in the deck panel
+ public void onSelection(SelectionEvent<TreeItem> event) {
+ TreeItem node = event.getSelectedItem();
+ //String widgetID = itemWidgets.get(node);
+
+/* //this refreshes the list.
+ if (content.equals(ExplorerNodeConfig.CATEGORY_ID)) {
+ //self.getParentNode().replaceChild(ExplorerNodeConfig.getCategoriesStructure(), self);
+ } else if (content.equals(ExplorerNodeConfig.STATES_ID)) {
+ //self.getParentNode().replaceChild(ExplorerNodeConfig.getStatesStructure(), self);
+ } else */
+
+ if (node.getUserObject() instanceof PackageConfigData
+ && !"global".equals(((PackageConfigData) node.getUserObject()).name)) {
+ PackageConfigData pc = (PackageConfigData) node.getUserObject();
+ RulePackageSelector.currentlySelectedPackage = pc.name;
+
+ String uuid = pc.uuid;
+ centertabbedPanel.openPackageEditor(uuid, new Command() {
+ public void execute() {
+ // refresh the package tree.
+ refreshPackageTree();
+ }
+ });
+ } else if (node.getUserObject() instanceof Object[]) {
+ //Object[] uo = (Object[]) node.getUserObject();
+ //final String[] fmts = (String[]) uo[0];
+ final String[] fmts = (String[]) node.getUserObject();
+ final PackageConfigData pc = (PackageConfigData) node.getParentItem().getUserObject();
+ RulePackageSelector.currentlySelectedPackage = pc.name;
+ String key = key(fmts, pc);
+ if (!centertabbedPanel.showIfOpen(key)) {
+
+ final AssetItemGrid list = new AssetItemGrid(new EditItemEvent() {
+ public void open(String uuid) {
+ centertabbedPanel.openAsset(uuid);
+ }
+
+ public void open(MultiViewRow[] rows) {
+ centertabbedPanel.openAssets(rows);
+ }
+ }, AssetItemGrid.PACKAGEVIEW_LIST_TABLE_ID, new AssetItemGridDataLoader() {
+ public void loadData(int startRow, int numberOfRows, GenericCallback<TableDataResult> cb) {
+ RepositoryServiceFactory.getService().listAssets(pc.uuid, fmts, startRow, numberOfRows,
+ AssetItemGrid.PACKAGEVIEW_LIST_TABLE_ID, cb);
+ }
+ }, GWT.getModuleBaseURL() + "feed/package?name=" + pc.name + "&viewUrl="
+ + CategoriesPanel.getSelfURL() + "&status=*");
+ centertabbedPanel.addTab(node.getText() + " [" + pc.name + "]", true, list, key);
+
+ final ServerPushNotification sub = new ServerPushNotification() {
+ public void messageReceived(PushResponse response) {
+ if (response.messageType.equals("packageChange") && response.message.equals(pc.name)) {
+ list.refreshGrid();
+ }
+ }
+ };
+ PushClient.instance().subscribe(sub);
+ list.addUnloadListener(new Command() {
+ public void execute() {
+ PushClient.instance().unsubscribe(sub);
+ }
+ });
+ }
+ }
+
+ }
+
+}
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/QAPanel.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/QAPanel.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/QAPanel.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -18,6 +18,7 @@
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.core.client.GWT;
+import com.gwtext.client.widgets.tree.TreeNode;
import com.gwtext.client.widgets.tree.TreePanel;
import org.drools.guvnor.client.messages.Constants;
@@ -34,7 +35,7 @@
final VerticalPanel qaPanel = new VerticalPanel();
qaPanel.setWidth("100%");
- TreePanel qaTree = genericExplorerWidget(ExplorerNodeConfig.getQAStructure(centertabbedPanel));
+ TreePanel qaTree = genericExplorerWidget(/*ExplorerNodeConfig.getQAStructure(centertabbedPanel)*/new TreeNode());
qaTree.setRootVisible(false);
qaPanel.add(PackagesPanel.wrapScroll(qaTree));
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/QATree.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/QATree.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/QATree.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -0,0 +1,106 @@
+/**
+ * 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.explorer;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import com.google.gwt.user.client.ui.TreeItem;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.logical.shared.SelectionEvent;
+
+import com.gwtext.client.util.Format;
+
+import org.drools.guvnor.client.images.Images;
+import org.drools.guvnor.client.messages.Constants;
+import org.drools.guvnor.client.qa.AnalysisView;
+import org.drools.guvnor.client.qa.ScenarioPackageView;
+import org.drools.guvnor.client.rpc.PackageConfigData;
+import org.drools.guvnor.client.ruleeditor.MultiViewRow;
+import org.drools.guvnor.client.rulelist.EditItemEvent;
+
+public class QATree extends AbstractTree {
+ private static Constants constants = GWT.create(Constants.class);
+ private static Images images = (Images) GWT.create(Images.class);
+
+ private Map<TreeItem, String> itemWidgets = new HashMap<TreeItem, String>();
+
+ public QATree(ExplorerViewCenterPanel tabbedPanel) {
+ super(tabbedPanel);
+ this.name = constants.QA1();
+ this.image = images.analyze();
+
+ mainTree = ExplorerNodeConfig.getQAStructure(itemWidgets);
+
+ //Add Selection listener
+ mainTree.addSelectionHandler(this);
+ }
+
+ public void onSelection(SelectionEvent<TreeItem> event) {
+ TreeItem item = event.getSelectedItem();
+
+ if (item.getUserObject() instanceof PackageConfigData) {
+ PackageConfigData pc = (PackageConfigData) item.getUserObject();
+ String id = itemWidgets.get(item);
+
+ if (ExplorerNodeConfig.TEST_SCENARIOS.equals(id)) {
+ if (!centertabbedPanel.showIfOpen("scenarios" + pc.uuid)) { // NON-NLS
+ final EditItemEvent edit = new EditItemEvent() {
+ public void open(String key) {
+ centertabbedPanel.openAsset(key);
+ }
+
+ public void open(MultiViewRow[] rows) {
+ for (MultiViewRow row : rows) {
+ centertabbedPanel.openAsset(row.uuid);
+ }
+ }
+ };
+
+ String m = Format.format(constants.ScenariosForPackage(),
+ pc.name);
+ centertabbedPanel.addTab(m, true, new ScenarioPackageView(
+ pc.uuid, pc.name, edit, centertabbedPanel),
+ "scenarios" + pc.uuid);
+ }
+ } else if (ExplorerNodeConfig.ANALYSIS.equals(id)) {
+ if (!centertabbedPanel.showIfOpen("analysis" + pc.uuid)) { //NON-NLS
+ final EditItemEvent edit = new EditItemEvent() {
+ public void open(String key) {
+ centertabbedPanel.openAsset(key);
+ }
+
+ public void open(MultiViewRow[] rows) {
+ for (MultiViewRow row : rows) {
+ centertabbedPanel.openAsset(row.uuid);
+ }
+ }
+ };
+
+ String m = Format.format(constants.AnalysisForPackage(),
+ pc.name);
+ centertabbedPanel.addTab(m,
+ true,
+ new AnalysisView(pc.uuid,
+ pc.name,
+ edit),
+ "analysis" + pc.uuid);
+ }
+ }
+ }
+ }
+}
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/RulesNewMenu.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/RulesNewMenu.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/RulesNewMenu.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -17,67 +17,77 @@
package org.drools.guvnor.client.explorer;
import org.drools.guvnor.client.common.AssetFormats;
+import org.drools.guvnor.client.common.Util;
+import org.drools.guvnor.client.images.Images;
import org.drools.guvnor.client.messages.Constants;
-import com.gwtext.client.core.EventObject;
-import com.gwtext.client.widgets.menu.BaseItem;
-import com.gwtext.client.widgets.menu.Item;
-import com.gwtext.client.widgets.menu.Menu;
-import com.gwtext.client.widgets.menu.event.BaseItemListenerAdapter;
import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.Command;
+import com.google.gwt.user.client.ui.MenuBar;
+import com.google.gwt.user.client.ui.MenuItem;
-/**
- * TODO: this class should be generated via ant task: 'ant plug-editors'
- *
- * @author ant plug-editors
- */
public class RulesNewMenu {
private static Constants constants = ((Constants) GWT.create(Constants.class));
+ private static Images images = (Images) GWT.create(Images.class);
- public static Menu getMenu(final GenericPanel manager) {
- Menu m = new Menu();
+ public static MenuBar getMenu(final AbstractTree manager) {
+ MenuBar createNewMenu = new MenuBar(true);
- m.addItem(new Item(constants.BusinessRuleGuidedEditor(), new BaseItemListenerAdapter() {
- public void onClick(BaseItem item, EventObject e) {
+ createNewMenu.addItem(Util.getHeader(images.businessRule(), constants.BusinessRuleGuidedEditor()),
+ true,
+ new Command() {
+ public void execute() {
manager.launchWizard(AssetFormats.BUSINESS_RULE, constants.NewBusinessRuleGuidedEditor(), true);
}
- }, "images/business_rule.gif")); //NON-NLS
+ });
-
- m.addItem(new Item(constants.DSLBusinessRuleTextEditor(), new BaseItemListenerAdapter() {
- public void onClick(BaseItem item, EventObject e) {
+ createNewMenu.addItem(Util.getHeader(images.ruleAsset(), constants.DSLBusinessRuleTextEditor()),
+ true,
+ new Command() {
+ public void execute() {
manager.launchWizard(AssetFormats.DSL_TEMPLATE_RULE, constants.NewRuleUsingDSL(), true);
}
- }, "images/business_rule.gif")); //NON-NLS
-
-
- m.addItem(new Item(constants.DRLRuleTechnicalRuleTextEditor(), new BaseItemListenerAdapter() {
- public void onClick(BaseItem item, EventObject e) {
- manager.launchWizard(AssetFormats.DRL, constants.NewDRL(), true);
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.ruleAsset(), constants.DRLRuleTechnicalRuleTextEditor()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.DRL, constants.NewDRL(), true);
}
- }, "images/rule_asset.gif")); //NON-NLS
-
- m.addItem(new Item(constants.DecisionTableSpreadsheet(), new BaseItemListenerAdapter() {
- public void onClick(BaseItem item, EventObject e) {
- manager.launchWizard(AssetFormats.DECISION_SPREADSHEET_XLS, constants.NewDecisionTableSpreadsheet(), true);
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.spreadsheetSmall(), constants.DecisionTableSpreadsheet()),
+ true,
+ new Command() {
+ public void execute() {
+ manager.launchWizard(AssetFormats.DECISION_SPREADSHEET_XLS, constants.NewDecisionTableSpreadsheet(), true);
}
- }, "images/spreadsheet_small.gif")); //NON-NLS
+ });
- m.addItem(new Item(constants.DecisionTableWebGuidedEditor(), new BaseItemListenerAdapter() {
- public void onClick(BaseItem item, EventObject e) {
+ createNewMenu.addItem(Util.getHeader(images.gdst(), constants.DecisionTableWebGuidedEditor()),
+ true,
+ new Command() {
+ public void execute() {
manager.launchWizard(AssetFormats.DECISION_TABLE_GUIDED, constants.NewDecisionTableGuidedEditor(), true);
}
- }, "images/gdst.gif")); //NON-NLS
-
- m.addItem(new Item(constants.TestScenario(), new BaseItemListenerAdapter() {
- public void onClick(BaseItem item, EventObject e) {
+ });
+
+ createNewMenu.addItem(Util.getHeader(images.testManager(), constants.TestScenario()),
+ true,
+ new Command() {
+ public void execute() {
manager.launchWizard(AssetFormats.TEST_SCENARIO,
constants.CreateATestScenario(), false);
}
- }, "images/test_manager.gif")); //NON-NLS
+ });
- return m;
+ MenuBar rootMenuBar = new MenuBar(true);
+ rootMenuBar.setAutoOpen(true);
+ rootMenuBar.setAnimationEnabled(true);
+
+ rootMenuBar.addItem(new MenuItem(constants.CreateNew(), createNewMenu));
+
+ return rootMenuBar;
}
-
-
}
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/Images.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/Images.java (rev 0)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/Images.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -0,0 +1,127 @@
+/**
+ * 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.images;
+
+import com.google.gwt.resources.client.ClientBundle;
+import com.google.gwt.resources.client.ImageResource;
+
+public interface Images extends ClientBundle {
+ @Source("rule_asset.gif")
+ ImageResource ruleAsset();
+
+ @Source("find.gif")
+ ImageResource find();
+
+ @Source("inbox.gif")
+ ImageResource inbox();
+
+ @Source("category_small.gif")
+ ImageResource categorySmall();
+
+ @Source("status_small.gif")
+ ImageResource statusSmall();
+
+ @Source("chart_organisation.gif")
+ ImageResource chartOrganisation();
+
+ @Source("business_rule.gif")
+ ImageResource businessRule();
+
+ @Source("spreadsheet_small.gif")
+ ImageResource spreadsheetSmall();
+
+ @Source("gdst.gif")
+ ImageResource gdst();
+
+ @Source("test_manager.gif")
+ ImageResource testManager();
+
+ @Source("package.gif")
+ ImageResource packages();
+
+ @Source("empty_package.gif")
+ ImageResource emptyPackage();
+
+ @Source("dsl.gif")
+ ImageResource dsl();
+
+ @Source("enumeration.gif")
+ ImageResource enumeration();
+
+ @Source("function_assets.gif")
+ ImageResource functionAssets();
+
+ @Source("model_asset.gif")
+ ImageResource modelAsset();
+
+ @Source("workingset.gif")
+ ImageResource workingset();
+
+ @Source("new_file.gif")
+ ImageResource newFile();
+
+ @Source("ruleflow_small.gif")
+ ImageResource ruleflowSmall();
+
+ @Source("technical_rule_assets.gif")
+ ImageResource technicalRuleAssets();
+
+ @Source("new_package.gif")
+ ImageResource newPackage();
+
+ @Source("new_enumeration.gif")
+ ImageResource newEnumeration();
+
+ @Source("refresh.gif")
+ ImageResource refresh();
+
+ @Source("new_template.gif")
+ ImageResource newTemplate();
+
+ @Source("analyze.gif")
+ ImageResource analyze();
+
+ @Source("deploy.gif")
+ ImageResource deploy();
+
+ @Source("snapshot_small.gif")
+ ImageResource snapshotSmall();
+
+ @Source("rules.gif")
+ ImageResource rules();
+
+ @Source("tag.png")
+ ImageResource tag();
+
+ @Source("backup_small.gif")
+ ImageResource backupSmall();
+
+ @Source("error.gif")
+ ImageResource error();
+
+ @Source("icoUsers.gif")
+ ImageResource icoUsers();
+
+ @Source("save_edit.gif")
+ ImageResource saveEdit();
+
+ @Source("rule_verification.png")
+ ImageResource ruleVerification();
+
+ @Source("information.gif")
+ ImageResource information();
+}
\ No newline at end of file
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/analyze.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/analyze.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/backup_small.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/backup_small.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/business_rule.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/business_rule.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/category_small.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/category_small.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/chart_organisation.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/chart_organisation.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/deploy.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/deploy.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/dsl.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/dsl.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/empty_package.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/empty_package.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/enumeration.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/enumeration.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/error.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/error.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/find.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/find.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/function_assets.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/function_assets.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/gdst.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/gdst.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/icoUsers.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/icoUsers.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/inbox.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/inbox.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/information.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/information.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/model_asset.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/model_asset.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_enumeration.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_enumeration.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_file.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_file.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_package.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_package.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_template.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/new_template.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/package.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/package.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/refresh.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/refresh.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/rule_asset.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/rule_asset.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/rule_verification.png
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/rule_verification.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/ruleflow_small.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/ruleflow_small.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/rules.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/rules.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/save_edit.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/save_edit.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/snapshot_small.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/snapshot_small.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/spreadsheet_small.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/spreadsheet_small.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/status_small.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/status_small.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/tag.png
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/tag.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/technical_rule_assets.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/technical_rule_assets.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/test_manager.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/test_manager.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/workingset.gif
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/images/workingset.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -613,11 +613,11 @@
String AddAnOptionToTheRule();
String AddMetadataToTheRule();
-
+
String UseRowNumber();
-
+
String ReverseOrder();
-
+
String Metadata1();
String Attribute();
@@ -1753,11 +1753,11 @@
String HideThisColumn();
String PleaseSelectOrEnterField();
-
+
String NotifyNoSelectedOrEnteredField();
String PleaseSelectAnOperator();
-
+
String NotifyNoSelectedOperator();
String January();
@@ -2091,44 +2091,46 @@
String ActivateRuleFlowGroup();
String CantRemoveThisBlockAsOneOfTheNamesIsBeingUsed();
-
+
String FillInColumnWithValue();
-
+
String LoadTemplateData();
-
+
String RepositoryConfiguration();
-
+
String RepositoryConfig();
-
+
String ManageRepositoryConfig();
-
+
String ManageRepositoryConfigDesc();
-
+
String SelectRdbmsType();
-
+
String UseJndi();
-
+
String PleaseSelectRdbmsType();
-
+
String PleaseEnterDriver();
-
+
String PleaseEnterUrl();
-
+
String PleaseEnterUserName();
-
+
String PleaseEnterPassword();
-
+
String PleaseEnterJndiName();
-
+
String GenerateRepositoryConfiguration();
-
+
String RepositoryXml();
-
+
String UnableToProcessRepositoryConfiguration();
-
+
String SaveRepo();
-
+
String SaveTheRepositoryConfig();
-
+
String SaveRepoInfo();
+
+ String Inbox();
}
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.properties
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.properties 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.properties 2010-09-02 06:54:47 UTC (rev 34971)
@@ -1,1053 +1,1054 @@
-ActionColumnConfigurationInsertingANewFact=Action column configuration (inserting a new fact)
+ActionColumnConfigurationInsertingANewFact=Action column configuration (inserting a new fact)
CantRemoveThisBlockAsOneOfTheNamesIsBeingUsed=Can't remove this block as one of the names is being used.
-ChooseAPatternThatThisColumnAddsDataTo=Choose a pattern that this column adds data to
-Pattern=Pattern:
-Assets=Assets
-CreateNew=Create New
-Category=Category
-CategoryColon=Category:
-RemoveThisItem=Remove this item?
-AddAnotherFieldToThisSoYouCanSetItsValue=Add another field to this so you can set its value.
-ChooseAMethodToInvoke=Choose a method to invoke
-AddField=Add field
-EditTheFieldThatThisColumnOperatesOn=Edit the field that this column operates on
-Field=Field:
-ValueListsExplanation=Value lists are an optional comma separated list of values to show as a drop down.
-ValueList=Value list
-optionalValueList=(optional) value list:
-ColumnHeaderDescription=Column header (description):
-ApplyChanges=Apply changes
-YouMustEnterAColumnHeaderValueDescription=You must enter a column header value (description)
-ThatColumnNameIsAlreadyInUsePleasePickAnother=That column name is already in use - please pick another
-OK=OK
-pleaseChooseFactType=(please choose fact type)
-ChooseExistingPatternToAddColumnTo=Choose existing pattern to add column to:
-ORwithEmphasis=<i><b>---OR---</i></b>
-CreateNewFactPattern=Create new fact pattern
-NewFactSelectTheType=New fact - select the type
-FactType=Fact type:
-name=name:
-AddAField=Add a field
-ColumnConfigurationSetAFieldOnAFact=Column configuration (set a field on a fact)
-ChooseABoundFactThatThisColumnPertainsTo=Choose a bound fact that this column pertains to
-UpdateEngineWithChanges=Update engine with changes:
-UpdateFact=Update fact
-UpdateDescription=Checking this will tell the engine that the value has changed. This will cause the rules that depend on it to be re-evaluated. Use with care !
-pleaseChooseAFactPatternFirst=(please choose a fact pattern first)
-ChooseFact=Choose fact:
-pleaseChooseABoundFactForThisColumn=(please choose a bound fact for this column)
-setterLabel={0} value of {1}
-statusIs=<i>Status: [{0}]</i>
-SaveChanges=Save changes
-CommitAnyChangesForThisAsset=Commit any changes for this asset.
-Copy=Copy
-CopyThisAsset=Copy this asset.
-Archive=Archive
-ArchiveThisAssetThisWillNotPermanentlyDeleteIt=Archive this asset. This will not permanently delete it.
-AreYouSureYouWantToArchiveThisItem=Are you sure you want to archive this item?
-ArchivedItemOn=Archived Item on :
-Delete=Delete
-DeleteAssetTooltip=Permanently delete this asset. This will only be enabled before the asset is checked in.
-DeleteAreYouSure=Are you sure you want to permanently delete this (unversioned) item?
-ChangeStatus=Change status
-ChangeStatusTip=Change the status of this asset.
-CopyThisItem=Copy this item
-NewName=New name:
-CreateCopy=Create copy
-AssetNameMustNotBeEmpty=Asset name must not be empty.
-CreatedANewItemSuccess=Created a new item called [{0}] in package: [{1}] successfully.
-CheckInChanges=Check in changes.
-Fact=Fact:
-FieldValue=Field value
-LiteralValue=Literal value
-LiteralValTip=A literal value means the constraint is directly against the value that you type (ie. what you see on screen).
-Literal=Literal
-AdvancedSection=<i>Advanced</i>
-Formula=Formula
-FormulaTip=A formula is used when values are calculated, or a variable is used.
-Administration=Administration
-CategoryManager=Category Manager
-ArchivedManager=Archived Manager
-StateManager=State Manager
-ImportExport=Import Export
-EventLog=Event Log
-UserPermissionMappings=User Permission mappings
-About=About
-WebDAVURL=WebDAV URL:
-Version=Version
-Errors=Errors
-Warnings=Warnings
-Notes=Notes
-ShowFactUsages=Show fact usages...
-FactUsages=Fact usages
-FieldsUsed=<i>Fields used:</i>
-ShowRulesAffected=<i>Show rules affected ...</i>
-RulesAffected=<i>Rules affected:</i>
-Reason=Reason
-Cause=Cause
-AnalysingPackage=<b>Analysing package: {0}</b>
-RunAnalysis=Run analysis
-AnalysingPackageRunning=Analysing package...
-ArchivedItems=<b>Archived items</b>
-RestoreSelectedPackage=Restore selected package
-PermanentlyDeletePackage=Permanently delete package
-AreYouSurePackageDelete=Are you sure you want to permanently delete this package? This can not be undone.
-ArchivedPackagesList=Archived packages
-RestoreSelectedAsset=Restore selected asset
-PleaseSelectAnItemToRestore=Please select an item to restore.
-ItemRestored=Item restored.
-DeleteSelectedAsset=Delete selected asset
-PleaseSelectAnItemToPermanentlyDelete=Please select an item to permanently delete.
-AreYouSureDeletingAsset=Are you sure you want to permanently delete this asset ? This can not be undone.
-ItemDeleted=Item deleted.
-ArchivedAssets=Archived assets
-PackageDeleted=Package deleted
-PackageRestored=Package restored.
-noArchivedPackages=-- no archived packages --
-analysisResultSummary=<b>{0}</b> ({1} items).
-Upload=Upload
-UploadNewVersion=Upload new version:
-Download=Download
-DownloadCurrentVersion=Download current version:
-FileWasUploadedSuccessfully=File was uploaded successfully.
-UnableToUploadTheFile=Unable to upload the file.
-Uploading=Uploading...
-AddANewCategory=Add a new category.
-RemoveThisCategory=Remove this category
-SelectCategoryToAdd=Select category to add
-ShowingNofXItems=Showing X items out of Y.
-NItems=X items.
-refreshList=[refresh list]
-openSelected=[open selected]
-Opening=Opening:
-Next=Next ->
-Previous=<- Previous
-goToFirst=(go to first)
-ImportOrExport=<b>Import/Export</b>
-ImportFromAnXmlFile=Import from an xml file
-ExportToAZipFile=Export to a zip file
-Export=Export
-Import=Import
-ImportConfirm=Are you sure you want to import? This will erase any content in the repository currently?
-ImportingInProgress=Importing repository, please wait, as this could take some time...
-ImportDone=Rules repository imported successfully. Browser will now refresh to show the new content.
-ImportFailed=Unable to import into the repository. Consult the server logs for error messages.
-NoExportFilename=You did not specify an exported repository filename !
-PleaseSpecifyAValidRepositoryXmlFile=Please specify a valid repository xml file.
-ImportPackageConfirm=Are you sure you want to import? This will erase any content in the package currently?
-ImportingPackage=Importing package to repository, please wait, as this could take some time...
-PackageImportDone=Rules package imported successfully. Please refresh your browser (F5) to show the new content.
-PackageImportFailed=Unable to import into the repository. Consult the server logs for error messages.
-PackageExportNoName=You did not specify an exported repository package filename !
-PackageExportName=Please specify a valid repository package xml file.
-ExportRepoWarning=Export the repository? This may take some time.
-ExportRepoWait=Exporting repository, please wait, as this could take some time...
-ExportThePackage=Export the package?
-PleaseWait=Please Wait...
-TestFailureBulkFailures=[{0} failures out of {1}]
-Open=Open
-failuresOutOFExpectations={0} failures out of {1} expectations.
-OverallResult=Overall result:
-SuccessOverall=<b>SUCCESS</b>
-FailureOverall=<b>FAILURE</b>
-Results=Results:
-RuleCoveragePercent={0}% of the rules were tested.
-RulesCovered=Rules covered:
-UncoveredRules=Uncovered rules:
-Scenarios=Scenarios
-Close=Close
-BuildErrorsUnableToRunScenarios=Build errors - unable to run scenarios
-UserName=User name:
-Password=Password:
-Authenticating=Authenticating...
-IncorrectUsernameOrPassword=Incorrect username or password.
-Login=Login
-LastModified=Last Modified
-Name=Name
-Description=Description
-Status=Status
-Package=Package
-Categories=Categories
-LastContributor=Last contributor
-Created=Created
-PackageName=Package name
-UnableToRunTests=Unable to run tests
-NoTestScenariosFound=No test scenarios found.
-CategoryName=Category name
-CreateANewTopLevelCategory=Create a new top level category.
-CreateNewCategoryUnder0=Create new category under: [{0}]
-CategoryWasNotSuccessfullyCreated=Category was not successfully created.
-CanNotHaveAnEmptyCategoryName=Can't have an empty category name.
-
-
-NoCategoriesCreatedYetTip=No categories created yet. Add some categories from the administration screen.
-Refresh=Refresh
-CategoriesPurposeTip=Categories aid in managing large numbers of rules/assets. A shallow hierarchy is recommended.
-EditCategories=<b>Edit categories</b>
-CurrentCategories=Current categories:
-NewCategory=New category
-CreateANewCategory=Create a new category
-RenameSelected=Rename selected
-PleaseSelectACategoryToRename=Please select a category to rename
-DeleteSelected=Delete selected
-PleaseSelectACategoryToDelete=Please select a category to delete.
-DeleteSelectedCat=Deletes the currently selected category. You won't be able to delete if the category is in use.
-CategoryNewNamePleaseEnter=Please enter the name you would like to change this category to
-CategoryRenamed=Category renamed
-AreYouSureYouWantToDeleteCategory=Are you sure you want to delete category:
-AddAnOptionalCheckInComment=Add an optional check in comment
-CheckIn=Check in
-enterTextToFilterList=<enter text to filter list>
-AddFactToContraint=Add a fact to this constraint. If it is an 'or' type, it will need at least 2.
-Choose=Choose...
-NewFactPattern=New fact pattern...
-chooseFactType=choose fact type
-pleaseChoose=--- please choose ---
-FormulaEvaluateToAValue=This is a formula expression which will evaluate to a value.
-LiteralValueTip=This is a literal value. What is shown is what the field is checked against.
-RefreshingList=Refreshing list...
-UnableToLoadList=Unable to load list...
-AdvancedOptions=<i>Advanced options:</i>
-BoundVariable=Bound variable
-AVariable=A variable:
-ABoundVariable=A bound variable
-BoundVariableTip=Will apply a constraint that compares a field to a bound variable.
-NewFormula=New formula
-AFormula=A formula
-FormulaExpressionTip=A formula is an expression that calculates and returns a value. That value is used to enforce the constraint.
-DecisionTableWidgetDescription=<small><i>This is a decision table in a spreadsheet (XLS). Typically they contain many rules in one sheet.</i></small>
-UploadNewVersionDescription=<small><i>Upload new version...</i></small>
-PackageSnapshots=Package snapshots
-Deploy=Deploy...
-NewDeploymentSnapshot=New Deployment snapshot
-RebuildAllSnapshotBinaries=Rebuild all snapshot binaries
-PleaseWaitDotDotDot=Please wait...
-AddANewCondition=Add a new condition
-AddAnAction=Add an action
-TheValue0IsNotValidForThisField=The value {0} is not valid for this field
-Error=Error
-ShowDetail=Show detail
-Navigate=Navigate
-BusinessRuleAssets=Business rule assets
-TechnicalRuleAssets=Technical rule assets
-Functions=Functions
-DSLConfigurations=DSL configurations
-Model=Model
-RuleFlows=Processes
-Enumerations=Enumerations
-TestScenarios=Test Scenarios
-XMLProperties=XML, Properties
-OtherAssetsDocumentation=Other assets, documentation
-Admin=Admin
-UserPermission=User permission
-AssetsTreeView=Assets
-Find=Find
-ByCategory=By Category
-ByStatus=By Status
-QA=QA
-TestScenariosInPackages=Test Scenarios in packages
-Analysis=Analysis
-ScenariosForPackage=Scenarios for {0}
-AnalysisForPackage=Analysis for {0}
-AreYouSureCloseWarningUnsaved=Are you sure you want to close this item? Any unsaved changes will be lost.
-CloseAllItems=Close all items
-AreYouSureYouWantToCloseOpenItems=Are you sure you want to close open items?
-LoadingAsset=Loading asset...
-LoadingPackageInformation=Loading package information...
-LoadingSnapshot=Loading snapshot...
-SnapshotLabel=Snapshot: {0}
-WholeNumberInteger=Whole number (integer)
-TrueOrFalse=True or False
-Date=Date
-DecimalNumber=Decimal number
-Text=Text
-FieldName=<b><small>{0}:</small></b>
-AreYouSureYouWantToRemoveTheField0=Are you sure you want to remove the field {0} ?
-AddNewFactType=Add new fact type
-NewType=New type
-EnterNewTypeName=Enter new type name
-TypeNameExistsWarning=The type name [{0}] already exists, please choose another name.
-chooseType=-- choose type --
-FieldNameAttribute=Field name
-Type=Type
-ChangeName=Change name
-NameTakenForModel=The name [{0}] is already taken - please choose another
-ModelNameChangeWarning=Are you sure you want to change the name? Its possible that rules will need to be changed to reflect the new name.
-ChangeFactName=Change fact name
-AreYouSureYouWantToRemoveThisFact=Are you sure you want to remove this fact?
-RemoveThisFactType=Remove this fact type
-RefreshingModel=Refreshing model...
-RemoveThisWholeRestriction=Remove this whole restriction
-AddAFieldToThisNestedConstraint=Add a field to this nested constraint.
-AllOf=all of the following
-AnyOf=any of the following
-RemoveThisNestedRestriction=Remove this (nested) restriction
-RemoveThisItemFromNestedConstraint=Remove this item from nested constraint?
-AddMoreOptionsToThisFieldsValues=Add more options to this fields values.
-FormulaBooleanTip=This is a formula expression that is evaluated to be true or false.
-AddOrBindToCondition=Add a field to this condition, or bind a variable to this fact.
-GiveFieldVarName=Give this field a variable name that can be used elsewhere.
-FactTypes=Fact types:
-Cancel=Cancel
-CreateANewFactTemplate=Create a new fact template
-Name1=Name:
-FactAttributes=Fact attributes:
-SessionExpiredMessage=<i><strong>Your session expired due to inactivity.</strong></i><p/> Please <a href='{0}'>[Log in].</a>
-DecisionTable=Decision table
-ConditionColumns=Condition columns
-ActionColumns=Action columns
-options=(options)
-none=-- none --
-GroupByColumn=Group by column:
-Apply=Apply
-EditThisActionColumnConfiguration=Edit this action column configuration
-CreateANewActionColumn=Create a new action column
-SetTheValueOfAField=Set the value of a field
-SetTheValueOfAFieldOnANewFact=Set the value of a field on a new fact
-TypeOfActionColumn=Type of action column:
-RemoveThisActionColumn=Remove this action column
-AddANewConditionColumn=Add a new condition column
-EditThisColumnsConfiguration=Edit this columns configuration
-RemoveThisConditionColumn=Remove this condition column
-DeleteConditionColumnWarning=Are you sure you want to delete the column for {0} - all data in that column will be removed?
-DeleteActionColumnWarning=Are you sure you want to delete the column for {0} - all data in that column will be removed?
-Metadata=Metadata:
-Attributes=Attributes:
-AddANewAttributeMetadata=Add a new attribute/metadata.
-AddAnOptionToTheRule=Add an option to the rule
-AddMetadataToTheRule=Add Metadata to the rule.
-Metadata1=Metadata:
-Attribute=Attribute:
-AddAttributeMetadata=Add Attribute/Metadata:
-RemoveThisAttribute=Remove this attribute
-RemoveThisMetadata=Remove this metadata
-ConfigureColumnsNote=Configure the columns first, then add rows (rules). A fact model (in the current package) will be needed to provide the facts and fields to configure this decision table.
-Items=Items
-Item=Item
-AddRow=Add row...
-RemoveSelectedRowS=Remove selected row(s)...
-AreYouSureYouWantToDeleteTheSelectedRowS=Are you sure you want to delete the selected row(s)?
-CopySelectedRowS=Copy selected row(s)...
-Modify=Modify
-ConditionColumnConfiguration=Condition column configuration
-ChooseAnExistingPatternThatThisColumnAddsTo=Choose an existing pattern that this column adds to
-Predicate=Predicate
-CalculationType=Calculation type:
-EditTheOperatorThatIsUsedToCompareDataWithThisField=Edit the operator that is used to compare data with this field
-Operator=Operator:
-notNeededForPredicate=(not needed for predicate)
-pleaseSelectAPatternFirst=(please select a pattern first)
-pleaseChooseAFieldFirst=(please choose a field first)
-pleaseSelectAField=(please select a field)
-SetTheOperator=Set the operator
-noOperator=(no operator)
-CreateANewFactPattern=Create a new fact pattern
-isEqualTo=equal to
-isNotEqualTo=not equal to
-isLessThan=less than
-lessThanOrEqualTo=less than or equal to
-greaterThan=greater than
-greaterThanOrEqualTo=greater than or equal to
-orEqualTo=or equal to
-orNotEqualTo=or not equal to
-andNotEqualTo=and not equal to
-andGreaterThan=and greater than
-andLessThan=and less than
-orGreaterThan=or greater than
-orLessThan=or less than
-orGreaterThanOrEqualTo=or greater than (or equal to)
-orLessThanOrEqualTo=or less than (or equal to)
-andGreaterThanOrEqualTo=and greater than (or equal to)
-andLessThanOrEqualTo=and less than (or equal to)
-andContains=and contains
-orContains=or contains
-andMatches=and matches
-orMatches=or matches
-orExcludes=or excludes
-andExcludes=and excludes
-soundsLike=sounds like
-ThereIsNo=The following does not exist
-ThereExists=The following exists
-AnyOf1=Any of the following are true
-Insert=Insert
-LogicallyInsert=Logically insert
-Retract=Retract
-Set=Set
-CallMethod=Call
-LoadingUserPermissions=Loading user permissions...
-WelcomeUser=Welcome: {0}
-SignOut=Sign Out
-LoadingLogMessages=Loading log messages...
-Timestamp=Timestamp
-Message=Message
-ShowRecentLogTip=Showing recent INFO and ERROR messages from the log
-Reload=Reload
-showMoreInfo=[show more info...]
-RenameThisAsset=Rename this asset
-Title=Title:
-CategoriesMetaData=Categories:
-ModifiedOnMetaData=Modified on:
-ModifiedByMetaData=by:
-NoteMetaData=Note:
-CreatedOnMetaData=Created on:
-CreatedByMetaData=Created by:
-FormatMetaData=Format:
-PackageMetaData=Package:
-IsDisabledMetaData=Is Disabled:
-DisableTip=Disables this asset. It will not be included in any processing.
-OtherMetaData=Other meta data ...
-SubjectMetaData=Subject:
-AShortDescriptionOfTheSubjectMatter=A short description of the subject matter.
-TypeMetaData=Type:
-TypeTip=This is for classification purposes.
-ExternalLinkMetaData=External link:
-ExternalLinkTip=This is for relating the asset to an external system.
-SourceMetaData=Source:
-SourceMetaDataTip=A short description or code indicating the source of the rule.
-VersionHistory=Version history ...
-CurrentVersionNumber=Current version number:
-RenameThisItem=Rename this item
-NewNameAsset=New name
-RenameItem=Rename item
-ItemHasBeenRenamed=Item has been renamed
-MoveThisItemToAnotherPackage=Move this item to another package
-CurrentPackage=Current package:
-NewPackage=New package:
-ChangePackage=Change package
-YouNeedToPickADifferentPackageToMoveThisTo=You need to pick a different package to move this to.
-MovedFromPackage=Moved from : {0}
-NotCheckedInYet=<i>Not checked in yet</i>
-InitialCategory=Initial category:
-TypeFormatOfRule=Type (format) of rule:
-FileExtensionTypeFormat=File extension (type/format):
-DSLMappingTip=A dsl is a language mapping from a domain specific language to the rule language.
-NewEnumDoco=An enumeration is a mapping from fields to a list of values. This will mean the rule editor will show a drop down for fields, instead of a text box. The format of this is\: 'FactType.fieldName'\: ['Value1', 'Value2']\nYou can add more mappings by adding in more lines. \nFor example\:\n\n'Person.sex' \: ['M', 'F']\n'Person.rating' \: ['High', 'Low']\n\nYou can also add display aliases (so the value used in the rule is separate to the one displayed\:\n'Person.sex' \: ['M\=Male', 'F\=Female']\nin the above case, the 'M\=Male' means that 'Male' will be displayed as an item in a drop down box, but the value 'M' will be used in the rule.
-InitialDescription=Initial description:
-BusinessRuleGuidedEditor=Business Rule (Guided editor)
-DSLBusinessRuleTextEditor=DSL Business Rule (Text editor)
-DRLRuleTechnicalRuleTextEditor=DRL Rule (Technical rule - text editor)
-DecisionTableSpreadsheet=Decision Table (Spreadsheet)
-DecisionTableWebGuidedEditor=Decision Table (Web - guided editor)
-YouHaveToPickAnInitialCategory=You have to pick an initial category.
-PleaseEnterAFormatFileType=Please enter a format/file type
-AssetNameAlreadyExistsPickAnother=An asset with that name already exists in the chosen package. Please use another name
-emptyNameIsNotAllowed=empty name is not allowed
-NonValidJCRName='{0}' is not valid. '{1}' is not a valid name character
-CreateANewPackage=Create a new package
-CreateANewSubPackage=Create a new subpackage
-ParentPackage=Parent Package
-ImportDRLDesc1=Importing a package from an existing DRL will create the package in the BRMS if it does not already exist. If it does exist, any new rules found will be merged into the package.
-ImportDRLDesc2=Any new rules created will not have any categories assigned initially, but rules and functions will be stored individually (ie normalised). Queries, imports etc will show up in the package configuration.
-ImportDRLDesc3=Any DSLs or models required by the imported package will need to be uploaded separately.
-NameColon=Name:
-DescriptionColon=Description:
-PackageNameTip=The name of the package. Avoid spaces, use underscore instead.
-CreateNewPackageRadio=Create new package
-ImportFromDrlRadio=Import from drl file
-DRLFileToImport=DRL file to import:
-CreatePackage=Create package
-PackageNameCorrectHint=Invalid package name. Please use a name that is of the style [abc] or perhaps [abc.def].
-CreatingPackagePleaseWait=Creating package - please wait...
-upload=upload:
-ImportMergeWarning=Are you sure you want to import this package? If the package already exists in the repository it will be merged.
-ImportingDRLPleaseWait=Importing drl package, please wait, as this could take some time...
-PackageWasImportedSuccessfully=Package was imported successfully.
-UnableToImportIntoThePackage0=Unable to import into the package. [{0}]
-YouDidNotChooseADrlFileToImport=You did not choose a drl file to import !
-YouCanOnlyImportDrlFiles=You can only import '.drl' files.
-WelcomeToGuvnor=Welcome to Guvnor
-BrandNewRepositoryNote=<b>This looks like a brand new repository.<br/>Would you like to install a sample repository?</b>
-YesPleaseInstallSamples=Yes, please install samples
-NoThanks=No thanks
-AboutToInstallSampleRepositoryAreYouSure=About to install sample repository. Are you sure?
-ImportingAndProcessing=Importing and processing...
-RepositoryInstalledSuccessfully=Repository installed successfully.
-BuildPackage=Build package
-ThisWillValidateAndCompileAllTheAssetsInAPackage=This will validate and compile all the assets in a package.
-OptionalSelectorName=(Optional) selector name
-CustomSelector=Custom selector
-SelectorTip=A selector is configured by administrators to choose what assets form part of a package build. If no selector is chosen, the whole package will be built. This is configured on the server side. See the WEB-INF/classes/selectors.properties for details.
-BuildBinaryPackage=Build binary package:
-BuildingPackageNote=Building a package will collect all the assets, validate and compile into a deployable package.
-CreateSnapshotForDeployment=Create snapshot for deployment
-TakeSnapshot=Take snapshot:
-AssemblingPackageSource=Assembling package source...
-ViewingSourceFor0=Viewing source for: {0}
-ReadOnlySourceNote=THIS IS READ ONLY - you may copy and paste, but not edit.
-ValidatingAndBuildingPackagePleaseWait=Validating and building package, please wait...
-PackageBuiltSuccessfully=Package built successfully. Last modified on
-DownloadBinaryPackage=Download binary package
-Format=Format
-Message1=Message
-LoadingExistingSnapshots=Loading existing snapshots...
-CreateASnapshotForDeployment=Create a snapshot for deployment.
-SnapshotDescription=<i>A package snapshot is a read only 'locked in' and labelled view of a package at a point in time, which can be used for deployment.</i><b>You should build the package before taking a snapshot, generally.</b>
-ChooseOrCreateSnapshotName=Choose or create snapshot name:
-NEW=NEW
-Comment=Comment:
-CreateNewSnapshot=Create new snapshot
-YouHaveToEnterOrChoseALabelNameForTheSnapshot=You have to enter or choose a label (name) for the snapshot.
-TheSnapshotCalled0WasSuccessfullyCreated=The snapshot called: {0} was successfully created.
-ConfigurationSection=Configuration
-Configuration=Configuration:
-CategoryRules=Category Rules:
-SaveAndValidateConfiguration=Save and validate configuration
-BuildAndValidate=Build and validate
-InformationAndImportantURLs=Information and important URLs
-DateCreated=Date created:
-ShowPackageSource=Show package source
-URLForPackageSource=URL for package source:
-URLSourceDescription=Use this URL to download the source, or in the 'runtime agent' to access the rules in source form
-URLForPackageBinary=URL for package binary:
-UseThisUrlInTheRuntimeAgentToFetchAPreCompiledBinary=Use this url in the 'runtime agent' to fetch a pre compiled binary.
-URLForRunningTests=URL for running tests:
-URLRunTestsRemote=Use this url to run the scenarios remotely and collect results.
-ChangeStatusDot=Change status.
-Tip=Tip...
-AllRulesForCategory0WillNowExtendTheRule1=All rules for Category: [{0}] will now extend the rule: [{1}]
-RemoveThisCategoryRule=Remove this Category Rule?
-AddCatRuleToThePackage=Add a Category Rule to the Package, to automatically add rule LHS to all rules in this category.
-CategoryParentRules=Category parent rules
-CatRulesInfo=This allows you to set 'parent rules' for a category. Any rules appearing in the given category will 'extend' the rule specified - ie inherit the conditions/LHS.
-AddACategoryRuleToThePackage=Add a Category Rule to the Package
-CreateCategoryRule=Create Category Rule.
-AllTheRulesInFollowingCategory=All the rules in category:
-WillExtendTheFollowingRuleCalled=Will extend the rule called:
-ThereWereErrorsValidatingThisPackageConfiguration=There were errors validating this package configuration.
-ViewErrors=View errors
-Rename=Rename
-AreYouSureYouWantToArchiveRemoveThisPackage=Are you sure you want to archive (remove) this package?
-RenameThePackage=Rename the package
-RenamePackageTip=<i>Rename the package. A new unique name is required.</i>
-NewPackageNameIs=New package name:
-PackageRenamedSuccessfully=Package renamed successfully.
-CopyThePackage=Copy the package
-CopyThePackageTip=<i>Copy the package and all its assets. A new unique name is required.</i>
-NotAValidPackageName=Not a valid package name.
-PackageCopiedSuccessfully=Package copied successfully.
-SavingPackageConfigurationPleaseWait=Saving package configuration. Please wait ...
-PackageConfigurationUpdatedSuccessfullyRefreshingContentCache=Package configuration updated successfully, refreshing content cache...
-RefreshingPackageData=Refreshing package data...
-ImportedTypes=Imported types
-FactTypesJarTip=Fact types are classes from 'jar' files that have been uploaded to the current package.
-AreYouSureYouWantToRemoveThisFactType=Are you sure you want to remove this fact type?
-Globals=Globals
-GlobalTypesAreClassesFromJarFilesThatHaveBeenUploadedToTheCurrentPackage=Global types are classes from 'jar' files that have been uploaded to the current package.
-AreYouSureYouWantToRemoveThisGlobal=Are you sure you want to remove this global?
-AdvancedView=Advanced view
-SwitchToTextModeEditing=Switch to text mode editing.
-SwitchToAdvancedTextModeForPackageEditing=Switch to advanced text mode for package editing?
-BasicView=Basic view
-SwitchToGuidedModeEditing=Switch to guided mode editing.
-SwitchToGuidedModeForPackageEditing=Switch to guided mode for package editing? This is not always possible with some advanced package configurations.
-ChooseAFactType=Choose a fact type
-loadingList=loading list ....
-TypesInThePackage=Types in the package
-IfNoTypesTip=If no types appear in the list, create a model asset, and upload a jar file to it for this package. The jar file should contain the .class files for the types needed by the rules only.
-ChooseClassType=Choose class type:
-GlobalName=Global name:
-EnteringATypeClassName=Entering a type class name
-EnterTypeNameTip=You should only need to do this if a fact class is on the BRMS classpath itself. Otherwise it should be in the list above.
-advancedClassName=(advanced) class name:
-YouMustEnterAGlobalVariableName=You must enter a global variable name.
-Packages=Packages
-NewPackage1=New Package
-NewSubPackage=New SubPackage
-NewRule=New Rule
-UploadPOJOModelJar=Upload POJO Model jar
-NewModelArchiveJar=New model archive (jar)
-NewDeclarativeModel=New Declarative Model
-NewDeclarativeModelUsingGuidedEditor=New declarative model (using guided editor).
-NewFunction=New Function
-CreateANewFunction=Create a new function
-NewDSL=New DSL
-CreateANewDSLConfiguration=Create a new DSL configuration
-NewRuleFlow=New RuleFlow
-CreateANewRuleFlow=Create a new RuleFlow
-NewEnumeration=New Enumeration
-CreateANewEnumerationDropDownMapping=Create a new enumeration (drop down mapping).
-NewTestScenario=New Test Scenario
-CreateATestScenario=Create a test scenario.
-NewFile=New File
-CreateAFile=Create a file.
-RebuildAllPackageBinariesQ=Rebuild all package binaries
-RebuildConfirmWarning=You should only run this if Drools has been upgraded recently (and you have been experiencing errors). This may take some time - are you sure you want to do this?
-RebuildingPackageBinaries=Rebuilding package binaries...
-TipAuthEnable=TIP: To enable or disable authorization, open components.xml in WEB-INF
-EnablingAuthorization=Enabling authorization
-EnablingAuthPopupTip=In components.xml, edit enable-role-based-authorization attribute
-UserName1=User name
-Administrator=Administrator
-HasPackagePermissions=Has package permissions
-HasCategoryPermissions=Has category permissions
-Reload1=Reload
-CurrentlyConfiguredUsers=Currently configured users:
-CreateNewUserMapping=Create new user mapping
-EnterNewUserName=Enter new userName
-NewUserName=New user name
-DeleteSelectedUser=Delete selected user
-AreYouSureYouWantToDeleteUser0=Are you sure you want to delete user [{0}]
-LoadingUsersPermissions=Loading users permissions...
-EditUser0=Edit user: {0}
-UserAuthenticationTip=Users are authenticated by a directory service, here you can define Guvnor specific permissions as needed.
-Updating=Updating...
-ThisUserIsAnAdministrator=This user is an administrator:
-RemoveAdminRights=Remove Admin rights
-AreYouSureYouWantToRemoveAdministratorPermissions=Are you sure you want to remove Administrator permissions?
-RemovePermission=Remove permission.
-AreYouSureYouWantToRemovePermission0=Are you sure you want to remove permission [{0}] ?
-AddANewPermission=Add a new permission
-Loading=Loading...
-PermissionType=Permission type:
-pleaseChoose1=-- please choose --
-MakeThisUserAdmin=Make this user admin:
-SelectCategoryToProvidePermissionFor=Select category to provide permission for:
-SelectPackageToApplyPermissionTo=Select package to apply permission to:
-Yes=Yes
-PermissionDetails=Permission details
-PermissionDetailsTip=The 'analyst' permission applies to a category(s), and their sub categories. A user with only 'analyst' permissions will see a subset of the user interface. 'package' permissions apply to a specific package. A 'package.admin' can build and create snapshots, but a 'package.developer' can only edit items inside their specified packages.
-TheVariableName0IsAlreadyTaken=The variable name [{0}] is already taken.
-BindTheFieldCalled0ToAVariable=Bind the field called [{0}] to a variable:
-BindTheExpressionToAVariable=Bind the Expression to a new variable:
-ShowSubFields=Show sub fields...
-ApplyAConstraintToASubFieldOf0=Apply a constraint to a sub-field of [{0}]:
-AddFieldsToThisConstraint=Add fields to this constraint
-AddARestrictionOnAField=Add a restriction on a field
-AllOfAnd=All of (And)
-AnyOfOr=Any of (Or)
-MultipleFieldConstraints=Multiple field constraints
-MultipleConstraintsTip=You can specify constraints that span multiple fields (and more). The results of all these constraints can be combined with a 'and' or an 'or' logically. You can also have other multiple field constraints nested inside these restrictions.
-MultipleFieldConstraint=Multiple field constraint
-ModifyConstraintsFor0=Modify constraints for {0}
-AddSubFieldConstraint=Add sub-field constraint
-MultipleConstraintsTip1=You can specify constraints that span multiple fields (and more). The results of all these constraints can be combined with a 'and' or an 'or' logically. You can also have other multiple field constraints nested inside these restrictions.
-AdvancedOptionsColon=Advanced options:
-AddFromConditionColon=Add From condition:
-AddANewFormulaStyleExpression=Add a new formula style expression
-VariableName=Variable name
-Add=Add
-Clear=Clear
-Properties=Properties
-QA1=QA
-AttributeSearch=Attribute search ...
-CreatedBy=Created by
-Format1=Format
-Subject=Subject
-Type1=Type
-ExternalLink=External link
-Source=Source
-Description1=Description
-LastModifiedBy=Last modified by
-CheckinComment=Checkin comment
-WildCardsSearchTip=Use * for wildcards, separate different options with a comma.
-AfterColon=After:
-BeforeColon=Before:
-Before=Before
-DateCreated1=Date created
-LastModified1=Last modified
-Search=Search
-NameSearch=Name search ...
-TextSearch=Text search ...
-SearchFor=Search for:
-Search1=Search
-PleaseEnterSomeSearchText=Please enter some search text
-FindItemsWithANameMatching=Find items with a name matching:
-IncludeArchivedAssetsInResults=Include archived assets in results:
-EnterSearchString=Enter the name or part of a name. Alternatively, use the categories to browse.
-SearchingDotDotDot=Searching...
-ThereAreMoreItemsTryNarrowingTheSearchTerms=There are more items... try narrowing the search terms..
-Metadata2=Metadata:
-Attributes1=Attributes:
-RemoveThisRuleOption=Remove this rule option?
-RuleDocHint=This is rule documentation. Human friendly descriptions of the business logic.
-documentationDefault=<documentation>
-RuleFlowUploadTip=Ruleflows allow flow control between rules. The eclipse plugin provides a graphical editor. Upload ruleflow .rf files for inclusion in this package.
-CalculatingSource=Calculating source...
-ViewingDiagram=Viewing diagram
-Parameters=Parameters
-CouldNotCreateTheRuleflowDiagramItIsPossibleThatTheRuleflowFileIsInvalid=Could not create the ruleflow diagram. It is possible that the ruleflow file is invalid.
-AddAConditionToThisRule=Add a condition to this rule.
-AddAnOptionToTheRuleToModifyItsBehaviorWhenEvaluatedOrExecuted=Add an option to the rule, to modify its behavior when evaluated or executed.
-Metadata3=Metadata:
-Attribute1=Attribute:
-AddXToListY=Add <b>[{0}]</b> to the list <b>[{1}]</b>
-RemoveThisAction=Remove this action.
-AddAConditionToTheRule=Add a condition to the rule...
-ChooseFactType=Choose fact type...
-Fact1=Fact
-ChooseOtherConditionType=Choose other condition type...
-FreeFormDrl=Free form drl
-ExpressionEditor=Expression editor
-ConditionTypeButton=Condition type
-ChooseDotDotDot=Choose...
-DSLSentence=DSL sentence
-NoModelTip=Note: No model has been defined.<br/>Tip: You will want to import or define a model for this user interface to work !
-AddANewAction=Add a new action...
-NotifyEngineOfChanges=Notify engine of changes
-NotifyEngineOfChangesUpdateModify=Notify engine of changes (update/modify)
-ModifyEngineTip=Modify a field on a fact, and notify the engine to re-evaluate rules.\nWARNING\: this can cause infinite loops - use with care.
-SetFieldValues=Set field values
-RetractTheFact=Retract the fact
-AddAnItemToACollection=Add an item to a collection:
-InsertANewFact=Insert a new fact
-LogicallyAssertAFactTheFactWillBeRetractedWhenTheSupportingEvidenceIsRemoved=Logically assert a fact - the fact will be retracted when the supporting evidence is removed.
-LogicallyInsertANewFact=Logically insert a new fact
-CallAMethodOnFollowing=Call a method on
-AddFreeFormDrl=Add free form drl
-FreeFormAction=Free form action
-ThisIsADrlExpressionFreeForm=This is a drl expression (free form)
-RemoveThisENTIREConditionAndAllTheFieldConstraintsThatBelongToIt=Remove this ENTIRE condition, and all the field constraints that belong to it.
-RemoveThisEntireConditionQ=Remove this entire condition?
-CanTRemoveThatItemAsItIsUsedInTheActionPartOfTheRule=Can't remove that item as it is used in the action part of the rule.
-NewBusinessRuleGuidedEditor=New Business Rule (Guided editor)
-NewRuleUsingDSL=New Rule using DSL
-NewDRL=New DRL
-NewDecisionTableSpreadsheet=New Decision Table (Spreadsheet)
-NewDecisionTableGuidedEditor=New Decision Table (Guided editor)
-TestScenario=Test Scenario
-ViewSource=View source
-Validate=Validate
-ValidatingItemPleaseWait=Validating item, please wait...
-ValidationResultsDotDot=Validation results...
-ItemValidatedSuccessfully=Item validated successfully.
-ValidationResults=Validation results
-packageConfigurationProblem=[package configuration problem]
-SavingPleaseWait=Saving, please wait...
-FailedToCheckInTheItemPleaseContactYourSystemAdministrator=Failed to check in the item. Please contact your system administrator.
-RefreshingContentAssistance=Refreshing content assistance...
-RefreshingItem=Refreshing item...
-WARNINGUnCommittedChanges=WARNING: Un-committed changes.
-Discard=Discard
-AreYouSureYouWantToDiscardChanges=Are you sure you want to discard changes?
-ScenariosForPackage1=Scenarios for package:
-RunAllScenarios=Run all scenarios
-BuildingAndRunningScenarios=Building and running scenarios...
-EXPECT=EXPECT
-DeleteItem=Delete item.
-AreYouSureYouWantToRemoveThisItem=Are you sure you want to remove this item?
-GIVEN=GIVEN
-AddInputDataAndExpectationsHere=Add input data and expectations here.
-MoreDotDot=More...
-AddAnotherSectionOfDataAndExpectations=Add another section of data and expectations.
-configuration=(configuration)
-globals=(globals)
-AddANewGlobalToThisScenario=Add a new global to this scenario.
-NewGlobal=New global
-TheName0IsAlreadyInUsePleaseChooseAnotherName=The name [{0}] is already in use. Please choose another name.
-GlobalColon=Global:
-AddANewDataInputToThisScenario=Add a new data input to this scenario.
-NewInput=New input
-YouMustEnterAValidFactName=You must enter a valid fact name.
-TheFactName0IsAlreadyInUsePleaseChooseAnotherName=The fact name [{0}] is already in use. Please choose another name.
-FactName=Fact name:
-InsertANewFact1=Insert a new fact:
-ModifyAnExistingFactScenario=Modify an existing fact:
-RetractAnExistingFactScenario=Retract an existing fact:
-AddANewExpectation=Add a new expectation.
-NewExpectation=New expectation
-Rule=Rule:
-FactValue=Fact value:
-AnyFactThatMatches=Any fact that matches:
-DeleteTheExpectationForThisFact=Delete the expectation for this fact.
-AreYouSureYouWantToRemoveThisExpectation=Are you sure you want to remove this expectation?
-EnterRuleNameScenario=Enter name of rule, or pick from a list. If there are a very large number of rules, you will need to type in the name.
-showListButton=(show list)
-loadingList1=(loading list)
-ValueFor0=Value for: {0}
-globalForScenario=global [{0}]
-modifyForScenario=modify [{0}]
-insertForScenario=insert [{0}]
-ChooseAFieldToAdd=Choose a field to add
-RemoveThisRow=Remove this row.
-AreYouSureYouWantToRemoveRow0=Are you sure you want to remove row [{0}]?
-RemoveTheColumnForScenario=Remove the column for [{0}]
-CanTRemoveThisColumnAsTheName0IsBeingUsed=Can't remove this column as the name [{0}] is being used.
-AreYouSureYouWantToRemoveColumn0=Are you sure you want to remove column [{0}]?
-AddANewRule=Add a new rule.
-RemoveSelectedRule=Remove selected rule.
-PleaseChooseARuleToRemove=Please choose a rule to remove.
-AllowTheseRulesToFire=Allow these rules to fire:
-PreventTheseRulesFromFiring=Prevent these rules from firing:
-AllRulesMayFire=All rules may fire
-SelectRule=Select rule
-UseRealDateAndTime=Use real date and time
-UseASimulatedDateAndTime=Use a simulated date and time
-property0RulesFiredIn1Ms={0} rules fired in {1}ms.
-ShowRulesFired=Show rules fired
-RulesFired=Rules fired:
-currentDateAndTime=<current date and time>
-BadDateFormatPleaseTryAgainTryTheFormatOf0=Bad date format - please try again (try the format of {0}).
-scenarioFactTypeHasValues={0} [{1}] has values:
-AFactOfType0HasValues=A fact of type [{0}] has values:
-AddAFieldToThisExpectation=Add a field to this expectation.
-equalsScenario=equals
-doesNotEqualScenario=does not equal
-RemoveThisFieldExpectation=Remove this field expectation.
-AreYouSureYouWantToRemoveThisFieldExpectation=Are you sure you want to remove this field expectation?
-ActualResult=(Actual: {0})
-ExpectRules=Expect rules
-firedAtLeastOnce=fired at least once
-didNotFire=did not fire
-firedThisManyTimes=fired this many times:
-RemoveThisRuleExpectation=Remove this rule expectation.
-AreYouSureYouWantToRemoveThisRuleExpectation=Are you sure you want to remove this rule expectation?
-RetractFacts=Retract facts
-RemoveThisRetractStatement=Remove this retract statement.
-RunScenario=Run scenario
-RunScenarioTip=Run this scenario. This will build the package if it is not already built (which may take some time).
-BuildingAndRunningScenario=Building and running scenario
-packageConfigurationProblem1=[package configuration problem]
-MaxRuleFiringsReachedWarning=WARNING: The maximum number of rule firings ({0}) was reached. It is likely that there is an infinite loop occurring.
-SummaryColon=Summary:
-AuditLogColon=Audit log:
-ShowEventsButton=Show events
-ViewingSnapshot=Viewing snapshot:
-ForPackage=For package:
-clickHereToDownloadBinaryOrCopyURLForDeploymentAgent=click here to download binary (or copy URL for deployment agent)
-DeploymentURL=Deployment URL:
-SnapshotCreatedOn=Snapshot created on:
-CommentColon=Comment:
-SnapshotDeleteConfirm=Are you sure you want to delete the snapshot labelled [{0}] from the package [{1}] ?
-SnapshotWasDeleted=Snapshot was deleted.
-CopySnapshotText=Copy snapshot {0}
-ExistingSnapshots=To an existing snapshot or a new snapshot:
-NewSnapshotNameIs=New Snapshot name:
-CreatedSnapshot0ForPackage1=Created snapshot [{0}] for package [{1}]
-Snapshot0ForPackage1WasCopiedFrom2=Snapshot [{0}] for package [{1}] was copied from [{2}]
-PleaseEnterANonExistingSnapshotName=Please enter a non existing Snapshot name
-SnapshotListingFor=Snapshot listing for:
-SnapshotItems=Snapshot items
-NewSnapshot=New snapshot
-SnapshotRebuildWarning=Rebuilding the snapshot binaries will take some time, and only needs to be done if the BRMS itself has been updated recently. This will also cause the rule agents to load the rules anew. Are you sure you want to do this?
-RebuildingSnapshotsPleaseWaitThisMayTakeSomeTime=Rebuilding snapshots. Please wait, this may take some time...
-SnapshotsWereRebuiltSuccessfully=Snapshots were rebuilt successfully.
-Type2=Type
-Priority= Priority:
-ValueRuleFlow= Value:
-ManageStatuses=Manage statuses
-StatusTagsAreForTheLifecycleOfAnAsset=Status tags are for the lifecycle of an asset.
-CurrentStatuses=Current statuses:
-NewStatus=New status
-PleaseSelectAStatusToRename=Please select a status to rename.
-PleaseSelectAStatusToRemove=Please select a status to remove.
-AddNewStatus=Add new status:
-StatusRemoved=Status removed.
-PleaseEnterTheNameYouWouldLikeToChangeThisStatusTo=Please enter the name you would like to change this status to
-StatusRenamed=Status renamed.
-LoadingStatuses=Loading statuses...
-ChooseOne=-- Choose one --
-UpdatingStatus=Updating status...
-CreateNewStatus=Create new status
-StatusName=Status name
-CanTHaveAnEmptyStatusName=Can't have an empty status name.
-CreatingStatus=Creating status
-StatusWasNotSuccessfullyCreated=Status was not successfully created.
-UnableToGetContentAssistanceForThisRule=Unable to get content assistance for this rule.
-UnableToValidatePackageForSCE=Unable to validate package configuration (eg, DSLs, models) for [{0}]. Suggestion completions may not operate correctly for graphical editors for this package.
-Detail=Detail:
-VersionHistory1=Version history
-NoHistory=No history.
-View=View
-LoadingVersionFromHistory=Loading version
-VersionNumber0Of1=Version number [{0}] of [{1}]
-RestoreThisVersion=Restore this version
-RestoreThisVersionQ=Restore this version?
-NoteNewPackageDrlImportWarning=Note:
-PleaseEnterANameForFact=Please enter a name.
-PleaseEnterANameThatIsNotTheSameAsTheFactType=Please enter a name that is not the same as the fact type.
-ThatNameIsInUsePleaseTryAnother=That name is in use, please try another.
-Browse=Browse
-KnowledgeBases=Knowledge Bases
-DefaultValue=Default value:
-UseRowNumber=Use row number
-ReverseOrder=Reverse order
-HideThisColumn=Hide this column
-PleaseSelectOrEnterField=Please select or enter field
-NotifyNoSelectedOrEnteredField=Field has not been selected or entered
-PleaseSelectAnOperator=Please select an operator
-NotifyNoSelectedOperator=Operator has not been selected
-January=January
-February=February
-March=March
-April=April
-May=May
-June=June
-July=July
-August=August
-October=October
-September=September
-November=November
-December=December
-SorryAnItemOfThatNameAlreadyExistsInTheRepositoryPleaseChooseAnother=Sorry, an item of that name already exists in the repository. Please choose another.
-ALiteralValueMeansTheValueAsTypedInIeItsNotACalculation=A literal value means the value as typed in (ie it is not a calculation).
-WHEN=WHEN
-THEN=THEN
-AddAnActionToThisRule=Add an action to this rule.
-optionsRuleModeller=(options)
-clickToAddPatterns=(click to add patterns...)
-ChangeFieldValuesOf0=Change field values of {0}...
-Retract0=Retract {0}
-Modify0=Modify {0}...
-InsertFact0=Insert fact {0}...
-LogicallyInsertFact0=Logically Insert fact {0}...
-Append0ToList1=Append {0} to list: {1}
-CallMethodOn0=Call method on {0}...
-hide=(hide)
-RemoveThisBlockOfData=Remove this block of data
-AreYouSureYouWantToRemoveThisBlockOfData=Are you sure you want to remove this block of data?
-PleaseEnterANameThatIsNotAlreadyUsedByAnotherPattern=Please enter a name that is not already used by another pattern.
-ThereIsAAn0With=There is a/an {0} with:
-ThereIsAAn0=There is a/an {0}
-All0with=All {0} with:
-AddFirstNewField=Add first new field.
-ImportedDRLContainsNoNameForThePackage=Imported DRL contains no name for the package. Please name the package.
-InitialisingInfoFor0PleaseWait=Initialising info for {0}, please wait...
-SavedOK=(Saved OK)
-Actions=Actions...
-ChangeSet=Change Set:
-URLToChangeSetForDeploymentAgents=URL to change set for deployment agents.
-FrozenAreas=Frozen areas...
-FrozenExplanation=Frozen areas mean that the rule can only have its fields edited, no extra conditions added or removed or the structure changed.
-FreezeAreasForEditing=Freeze areas for editing:
-Conditions=Conditions
-smallCommentBy0On1Small=<small>Comment by {0} on {1}:</small>
-AddADiscussionComment=Add a discussion comment
-EraseAllComments=Erase all comments
-EraseAllCommentsWarning=Erase ALL discussion items? NOTE that this CAN NOT be undone. Are you sure?
-Discussion=Discussion
-SaveAndClose=Save and close
-Predicates=Predicates
-PredicatesInfo=Predicates are expressions that resolve to a true or a false. You can place $param in the field and the value from the cell will be substituted in place of param. For example [this.callMethod($param)]
-NewBPELPackage=New BPEL package
-CreateANewBPELPackage=Create a new BPEL package
-OpenEditorInNewWindow=Open editor in new window.
-BPELPackages=BPEL Packages
-ValueCanNotBeEmpty=Value can not be empty
-Value=Value
-property0ModifiedOn12={0} modified on: {1} ({2})
-isContainedInTheFollowingList=is contained in the a (comma separated) list
-RecentlyOpened=Recently Opened
-RecentlyEdited=Recently Edited
-IncomingChanges=Incoming changes
-From=From
-FromAccumulate=From Accumulate
-FromCollect=From Collect
-URLDocumentionDescription=Use this url to download package documentation PDF.
-URLForDocumention=URL for package documentation:
-CanNotMoveColumnsFromOneTypeGroupToAnother=Can not move columns from one type group to another
-PleaseSelectARow=Please select a row
-AddRowBeforeSelectedRow=Add row before selected row...
-CreateNewAsset=Create new\:
-CreateLinkedAsset=Import asset from global area\:
-CreateLinkedAssetFromUUID=UUID of the existing asset\:
-NoteNewLinkedAsset=NOTE\:
-NewLinkedAssetDesc1=This will import a shared asset from global area.
-NewLinkedAssetDesc2=you need to open the existing asset that you want to link to, copy and paste its
-NewLinkedAssetDesc3=UUID to the text box above.
-BuildWholePackageTip=This will build the whole package.
-BuiltInSelectorTip=The built-in selector allows you to choose what assets form part of a package build according to asset's status, category and meta data. Please use a custom selector if the built-in selector does not satisfy your requirement.
-BuildWholePackage=Build whole package
-BuildPackageUsingBuiltInSelector=Use built-in selector
-BuildPackageUsingCustomSelector=Use custom selector
-BuildPackageUsingFollowingAssets=Build package using following assets:
-BuildPackageUsingBuiltInSelectorStatus=When status :
-BuildPackageUsingBuiltInSelectorCat=When category :
-BuiltInSelector=Built-in selector
-BuildPackageUsingCustomSelectorSelector=Custom Selector :
-CreateInPackage=Create in Package\:
-CreateInGlobalArea=Create in Global area
-AssetToImport=Asset to import\:
-Older0=Older : {0}
-Newer0=Newer: {0}
-TypeAdded=Added
-TypeArchived=Archived
-TypeDeleted=Deleted
-TypeRestored=Restored
-TypeUpdated=Updated
-Severity=Severity
-CleaningLogMessages=Cleaning log messages...
-Clean=Clean
-MoveUp=Move up
-MoveDown=Move down
-clickToAddPattern=click to add pattern...
-Top=Top
-Bottom=Bottom
-Line0=Line {0}
-PositionColon=Position:
-ConditionPositionExplanation=Select the position where the Condition will be added.
-ActionPositionExplanation=Select the position where the Action will be added.
-AddAConditionBelow=Add a condition below.
-AddAnActionBelow=Add an action below.
-openSelectedToSingleTab=[open selected to single tab]
-SaveAllChanges=Save all changes
-SaveAndCloseAll=Save and close all
-DescriptionAndDiscussion=Description and discussion
-Show=Show
-Asset0IsAlreadyOpenPleaseCloseItBeforeOpeningMultiview=Asset {0} is already open, please close it before opening multiview.
-PromoteToGlobal=Promote to Global
-PromoteAreYouSure=Are you sure you want to promote this item to global area?
-Promoted=The item has been moved to global area.
-ItemAlreadyInGlobalArea=The item is already in global area.
-VerifyingItemPleaseWait=Verifying item, please wait.
-Verify=Verify
-VerificationReport=Verification report
-CanNotSwitchToBasicView=There are errors in this view. Can not switch to guided mode until the errors are resolved
-Causes=Causes
-ImpactedRules=Impacted rules
-SelectWorkingSets=Select Working Sets
-WorkingSets=WorkingSets
-NewWorkingSet=New WorkingSet
-CreateWorkingSet=Create a WorkingSet
-ErrorLoadingRules=Error loading rules.
-WorkingSetName=WorkingSet name
-CopyTheWorkingSet=Copy the WorkingSet
-CopyTheWorkingSetTip=<i>Copy the WorkingSet and all its facts and restrictions. A new unique name is required.</i>
-NewWorkingSetNameIs=New WorkingSet name:
-NotAValidWorkingSetName=Not a valid WorkingSet name.
-WorkingSetCopiedSuccessfully=WorkingSet copied successfully.
-RenameTheWorkingSet=Rename the WorkingSet.
-RenameTheWorkingSetTip=<i>Rename the WorkingSet. A new unique name is required.</i>
-WorkingSetRenamedSuccessfully=WorkingSet successfully renamed.
-ConstraintsSection=Constraints Section
-AddNewConstraint=Add New Constraint
-removeConstraint=Remove Constraint
-AElementToDelInCollectionList=Delete element in the list
-AElementToAddInCollectionList=Add element to the list
-GuidedList=Guided list
-AGuidedList=A guide list
-AGuidedListTip=Helps you enter data to a collect/list
-AddElementBelow=Add an element below
-MoveUpList=Move element in list up
-MoveDownListMove= element in list down
-theRuleHasErrorsOrWarningsDotDoYouWantToContinue=The Rule has errors or warnings. Do you want to continue?
-RulesVerification=Rules Verification
-RulesVerificationManager=Rules Verification Manager
-EditRulesVerificationConfiguration=Edit Rules Verification Configuration
-AutomaticVerification=Automatic Verification
-Enabled=Enabled
-NewRuleTemplate=New rule template
-TemplateKey=Template key
-AllChangesHaveBeenSaved=All changes have been saved
-TemplateEditor=Template Editor
-TemplateData=Template Data
-ActivateRuleFlowGroup=Activate rule flow group
-FillInColumnWithValue=Please fill in this column with a {0} value.
-LoadTemplateData=Load Template Data
-RepositoryConfiguration=Repository Configuration
-RepositoryConfig=Repository Config
-ManageRepositoryConfig=Manage Repository Configuration
-ManageRepositoryConfigDesc=Generate configuration for your RDBMS
-SelectRdbmsType=Select RDBMS type:
-UseJndi=Use JNDI:
-PleaseSelectRdbmsType=Please select RDBMS type
-PleaseEnterDriver=Please enter the driver
-PleaseEnterUrl=Please enter the URL
-PleaseEnterUserName=Please enter user name
-PleaseEnterJndiName=Please enter JNDI name
-PleaseEnterPassword=Please enter password
-GenerateRepositoryConfiguration=Generate repository config
-RepositoryXml=repository.xml
-UnableToProcessRepositoryConfiguration=Unable to Process Repository Configuration
-SaveRepo=Save Configuration
-SaveTheRepositoryConfig=Save the configuration?
-SaveRepoInfo=Save the repository configuration to a file. Alternatively you can cut/paste it from this page. Don't forget to back up your repository (Import/Export) before replacing your existing repository.xml and restart your server for changes to take effect.
\ No newline at end of file
+ChooseAPatternThatThisColumnAddsDataTo=Choose a pattern that this column adds data to
+Pattern=Pattern:
+Assets=Assets
+CreateNew=Create New
+Category=Category
+CategoryColon=Category:
+RemoveThisItem=Remove this item?
+AddAnotherFieldToThisSoYouCanSetItsValue=Add another field to this so you can set its value.
+ChooseAMethodToInvoke=Choose a method to invoke
+AddField=Add field
+EditTheFieldThatThisColumnOperatesOn=Edit the field that this column operates on
+Field=Field:
+ValueListsExplanation=Value lists are an optional comma separated list of values to show as a drop down.
+ValueList=Value list
+optionalValueList=(optional) value list:
+ColumnHeaderDescription=Column header (description):
+ApplyChanges=Apply changes
+YouMustEnterAColumnHeaderValueDescription=You must enter a column header value (description)
+ThatColumnNameIsAlreadyInUsePleasePickAnother=That column name is already in use - please pick another
+OK=OK
+pleaseChooseFactType=(please choose fact type)
+ChooseExistingPatternToAddColumnTo=Choose existing pattern to add column to:
+ORwithEmphasis=<i><b>---OR---</i></b>
+CreateNewFactPattern=Create new fact pattern
+NewFactSelectTheType=New fact - select the type
+FactType=Fact type:
+name=name:
+AddAField=Add a field
+ColumnConfigurationSetAFieldOnAFact=Column configuration (set a field on a fact)
+ChooseABoundFactThatThisColumnPertainsTo=Choose a bound fact that this column pertains to
+UpdateEngineWithChanges=Update engine with changes:
+UpdateFact=Update fact
+UpdateDescription=Checking this will tell the engine that the value has changed. This will cause the rules that depend on it to be re-evaluated. Use with care !
+pleaseChooseAFactPatternFirst=(please choose a fact pattern first)
+ChooseFact=Choose fact:
+pleaseChooseABoundFactForThisColumn=(please choose a bound fact for this column)
+setterLabel={0} value of {1}
+statusIs=<i>Status: [{0}]</i>
+SaveChanges=Save changes
+CommitAnyChangesForThisAsset=Commit any changes for this asset.
+Copy=Copy
+CopyThisAsset=Copy this asset.
+Archive=Archive
+ArchiveThisAssetThisWillNotPermanentlyDeleteIt=Archive this asset. This will not permanently delete it.
+AreYouSureYouWantToArchiveThisItem=Are you sure you want to archive this item?
+ArchivedItemOn=Archived Item on :
+Delete=Delete
+DeleteAssetTooltip=Permanently delete this asset. This will only be enabled before the asset is checked in.
+DeleteAreYouSure=Are you sure you want to permanently delete this (unversioned) item?
+ChangeStatus=Change status
+ChangeStatusTip=Change the status of this asset.
+CopyThisItem=Copy this item
+NewName=New name:
+CreateCopy=Create copy
+AssetNameMustNotBeEmpty=Asset name must not be empty.
+CreatedANewItemSuccess=Created a new item called [{0}] in package: [{1}] successfully.
+CheckInChanges=Check in changes.
+Fact=Fact:
+FieldValue=Field value
+LiteralValue=Literal value
+LiteralValTip=A literal value means the constraint is directly against the value that you type (ie. what you see on screen).
+Literal=Literal
+AdvancedSection=<i>Advanced</i>
+Formula=Formula
+FormulaTip=A formula is used when values are calculated, or a variable is used.
+Administration=Administration
+CategoryManager=Category Manager
+ArchivedManager=Archived Manager
+StateManager=State Manager
+ImportExport=Import Export
+EventLog=Event Log
+UserPermissionMappings=User Permission mappings
+About=About
+WebDAVURL=WebDAV URL:
+Version=Version
+Errors=Errors
+Warnings=Warnings
+Notes=Notes
+ShowFactUsages=Show fact usages...
+FactUsages=Fact usages
+FieldsUsed=<i>Fields used:</i>
+ShowRulesAffected=<i>Show rules affected ...</i>
+RulesAffected=<i>Rules affected:</i>
+Reason=Reason
+Cause=Cause
+AnalysingPackage=<b>Analysing package: {0}</b>
+RunAnalysis=Run analysis
+AnalysingPackageRunning=Analysing package...
+ArchivedItems=<b>Archived items</b>
+RestoreSelectedPackage=Restore selected package
+PermanentlyDeletePackage=Permanently delete package
+AreYouSurePackageDelete=Are you sure you want to permanently delete this package? This can not be undone.
+ArchivedPackagesList=Archived packages
+RestoreSelectedAsset=Restore selected asset
+PleaseSelectAnItemToRestore=Please select an item to restore.
+ItemRestored=Item restored.
+DeleteSelectedAsset=Delete selected asset
+PleaseSelectAnItemToPermanentlyDelete=Please select an item to permanently delete.
+AreYouSureDeletingAsset=Are you sure you want to permanently delete this asset ? This can not be undone.
+ItemDeleted=Item deleted.
+ArchivedAssets=Archived assets
+PackageDeleted=Package deleted
+PackageRestored=Package restored.
+noArchivedPackages=-- no archived packages --
+analysisResultSummary=<b>{0}</b> ({1} items).
+Upload=Upload
+UploadNewVersion=Upload new version:
+Download=Download
+DownloadCurrentVersion=Download current version:
+FileWasUploadedSuccessfully=File was uploaded successfully.
+UnableToUploadTheFile=Unable to upload the file.
+Uploading=Uploading...
+AddANewCategory=Add a new category.
+RemoveThisCategory=Remove this category
+SelectCategoryToAdd=Select category to add
+ShowingNofXItems=Showing X items out of Y.
+NItems=X items.
+refreshList=[refresh list]
+openSelected=[open selected]
+Opening=Opening:
+Next=Next ->
+Previous=<- Previous
+goToFirst=(go to first)
+ImportOrExport=<b>Import/Export</b>
+ImportFromAnXmlFile=Import from an xml file
+ExportToAZipFile=Export to a zip file
+Export=Export
+Import=Import
+ImportConfirm=Are you sure you want to import? This will erase any content in the repository currently?
+ImportingInProgress=Importing repository, please wait, as this could take some time...
+ImportDone=Rules repository imported successfully. Browser will now refresh to show the new content.
+ImportFailed=Unable to import into the repository. Consult the server logs for error messages.
+NoExportFilename=You did not specify an exported repository filename !
+PleaseSpecifyAValidRepositoryXmlFile=Please specify a valid repository xml file.
+ImportPackageConfirm=Are you sure you want to import? This will erase any content in the package currently?
+ImportingPackage=Importing package to repository, please wait, as this could take some time...
+PackageImportDone=Rules package imported successfully. Please refresh your browser (F5) to show the new content.
+PackageImportFailed=Unable to import into the repository. Consult the server logs for error messages.
+PackageExportNoName=You did not specify an exported repository package filename !
+PackageExportName=Please specify a valid repository package xml file.
+ExportRepoWarning=Export the repository? This may take some time.
+ExportRepoWait=Exporting repository, please wait, as this could take some time...
+ExportThePackage=Export the package?
+PleaseWait=Please Wait...
+TestFailureBulkFailures=[{0} failures out of {1}]
+Open=Open
+failuresOutOFExpectations={0} failures out of {1} expectations.
+OverallResult=Overall result:
+SuccessOverall=<b>SUCCESS</b>
+FailureOverall=<b>FAILURE</b>
+Results=Results:
+RuleCoveragePercent={0}% of the rules were tested.
+RulesCovered=Rules covered:
+UncoveredRules=Uncovered rules:
+Scenarios=Scenarios
+Close=Close
+BuildErrorsUnableToRunScenarios=Build errors - unable to run scenarios
+UserName=User name:
+Password=Password:
+Authenticating=Authenticating...
+IncorrectUsernameOrPassword=Incorrect username or password.
+Login=Login
+LastModified=Last Modified
+Name=Name
+Description=Description
+Status=Status
+Package=Package
+Categories=Categories
+LastContributor=Last contributor
+Created=Created
+PackageName=Package name
+UnableToRunTests=Unable to run tests
+NoTestScenariosFound=No test scenarios found.
+CategoryName=Category name
+CreateANewTopLevelCategory=Create a new top level category.
+CreateNewCategoryUnder0=Create new category under: [{0}]
+CategoryWasNotSuccessfullyCreated=Category was not successfully created.
+CanNotHaveAnEmptyCategoryName=Can't have an empty category name.
+
+
+NoCategoriesCreatedYetTip=No categories created yet. Add some categories from the administration screen.
+Refresh=Refresh
+CategoriesPurposeTip=Categories aid in managing large numbers of rules/assets. A shallow hierarchy is recommended.
+EditCategories=<b>Edit categories</b>
+CurrentCategories=Current categories:
+NewCategory=New category
+CreateANewCategory=Create a new category
+RenameSelected=Rename selected
+PleaseSelectACategoryToRename=Please select a category to rename
+DeleteSelected=Delete selected
+PleaseSelectACategoryToDelete=Please select a category to delete.
+DeleteSelectedCat=Deletes the currently selected category. You won't be able to delete if the category is in use.
+CategoryNewNamePleaseEnter=Please enter the name you would like to change this category to
+CategoryRenamed=Category renamed
+AreYouSureYouWantToDeleteCategory=Are you sure you want to delete category:
+AddAnOptionalCheckInComment=Add an optional check in comment
+CheckIn=Check in
+enterTextToFilterList=<enter text to filter list>
+AddFactToContraint=Add a fact to this constraint. If it is an 'or' type, it will need at least 2.
+Choose=Choose...
+NewFactPattern=New fact pattern...
+chooseFactType=choose fact type
+pleaseChoose=--- please choose ---
+FormulaEvaluateToAValue=This is a formula expression which will evaluate to a value.
+LiteralValueTip=This is a literal value. What is shown is what the field is checked against.
+RefreshingList=Refreshing list...
+UnableToLoadList=Unable to load list...
+AdvancedOptions=<i>Advanced options:</i>
+BoundVariable=Bound variable
+AVariable=A variable:
+ABoundVariable=A bound variable
+BoundVariableTip=Will apply a constraint that compares a field to a bound variable.
+NewFormula=New formula
+AFormula=A formula
+FormulaExpressionTip=A formula is an expression that calculates and returns a value. That value is used to enforce the constraint.
+DecisionTableWidgetDescription=<small><i>This is a decision table in a spreadsheet (XLS). Typically they contain many rules in one sheet.</i></small>
+UploadNewVersionDescription=<small><i>Upload new version...</i></small>
+PackageSnapshots=Package snapshots
+Deploy=Deploy...
+NewDeploymentSnapshot=New Deployment snapshot
+RebuildAllSnapshotBinaries=Rebuild all snapshot binaries
+PleaseWaitDotDotDot=Please wait...
+AddANewCondition=Add a new condition
+AddAnAction=Add an action
+TheValue0IsNotValidForThisField=The value {0} is not valid for this field
+Error=Error
+ShowDetail=Show detail
+Navigate=Navigate
+BusinessRuleAssets=Business rule assets
+TechnicalRuleAssets=Technical rule assets
+Functions=Functions
+DSLConfigurations=DSL configurations
+Model=Model
+RuleFlows=Processes
+Enumerations=Enumerations
+TestScenarios=Test Scenarios
+XMLProperties=XML, Properties
+OtherAssetsDocumentation=Other assets, documentation
+Admin=Admin
+UserPermission=User permission
+AssetsTreeView=Assets
+Find=Find
+ByCategory=By Category
+ByStatus=By Status
+QA=QA
+TestScenariosInPackages=Test Scenarios in packages
+Analysis=Analysis
+ScenariosForPackage=Scenarios for {0}
+AnalysisForPackage=Analysis for {0}
+AreYouSureCloseWarningUnsaved=Are you sure you want to close this item? Any unsaved changes will be lost.
+CloseAllItems=Close all items
+AreYouSureYouWantToCloseOpenItems=Are you sure you want to close open items?
+LoadingAsset=Loading asset...
+LoadingPackageInformation=Loading package information...
+LoadingSnapshot=Loading snapshot...
+SnapshotLabel=Snapshot: {0}
+WholeNumberInteger=Whole number (integer)
+TrueOrFalse=True or False
+Date=Date
+DecimalNumber=Decimal number
+Text=Text
+FieldName=<b><small>{0}:</small></b>
+AreYouSureYouWantToRemoveTheField0=Are you sure you want to remove the field {0} ?
+AddNewFactType=Add new fact type
+NewType=New type
+EnterNewTypeName=Enter new type name
+TypeNameExistsWarning=The type name [{0}] already exists, please choose another name.
+chooseType=-- choose type --
+FieldNameAttribute=Field name
+Type=Type
+ChangeName=Change name
+NameTakenForModel=The name [{0}] is already taken - please choose another
+ModelNameChangeWarning=Are you sure you want to change the name? Its possible that rules will need to be changed to reflect the new name.
+ChangeFactName=Change fact name
+AreYouSureYouWantToRemoveThisFact=Are you sure you want to remove this fact?
+RemoveThisFactType=Remove this fact type
+RefreshingModel=Refreshing model...
+RemoveThisWholeRestriction=Remove this whole restriction
+AddAFieldToThisNestedConstraint=Add a field to this nested constraint.
+AllOf=all of the following
+AnyOf=any of the following
+RemoveThisNestedRestriction=Remove this (nested) restriction
+RemoveThisItemFromNestedConstraint=Remove this item from nested constraint?
+AddMoreOptionsToThisFieldsValues=Add more options to this fields values.
+FormulaBooleanTip=This is a formula expression that is evaluated to be true or false.
+AddOrBindToCondition=Add a field to this condition, or bind a variable to this fact.
+GiveFieldVarName=Give this field a variable name that can be used elsewhere.
+FactTypes=Fact types:
+Cancel=Cancel
+CreateANewFactTemplate=Create a new fact template
+Name1=Name:
+FactAttributes=Fact attributes:
+SessionExpiredMessage=<i><strong>Your session expired due to inactivity.</strong></i><p/> Please <a href='{0}'>[Log in].</a>
+DecisionTable=Decision table
+ConditionColumns=Condition columns
+ActionColumns=Action columns
+options=(options)
+none=-- none --
+GroupByColumn=Group by column:
+Apply=Apply
+EditThisActionColumnConfiguration=Edit this action column configuration
+CreateANewActionColumn=Create a new action column
+SetTheValueOfAField=Set the value of a field
+SetTheValueOfAFieldOnANewFact=Set the value of a field on a new fact
+TypeOfActionColumn=Type of action column:
+RemoveThisActionColumn=Remove this action column
+AddANewConditionColumn=Add a new condition column
+EditThisColumnsConfiguration=Edit this columns configuration
+RemoveThisConditionColumn=Remove this condition column
+DeleteConditionColumnWarning=Are you sure you want to delete the column for {0} - all data in that column will be removed?
+DeleteActionColumnWarning=Are you sure you want to delete the column for {0} - all data in that column will be removed?
+Metadata=Metadata:
+Attributes=Attributes:
+AddANewAttributeMetadata=Add a new attribute/metadata.
+AddAnOptionToTheRule=Add an option to the rule
+AddMetadataToTheRule=Add Metadata to the rule.
+Metadata1=Metadata:
+Attribute=Attribute:
+AddAttributeMetadata=Add Attribute/Metadata:
+RemoveThisAttribute=Remove this attribute
+RemoveThisMetadata=Remove this metadata
+ConfigureColumnsNote=Configure the columns first, then add rows (rules). A fact model (in the current package) will be needed to provide the facts and fields to configure this decision table.
+Items=Items
+Item=Item
+AddRow=Add row...
+RemoveSelectedRowS=Remove selected row(s)...
+AreYouSureYouWantToDeleteTheSelectedRowS=Are you sure you want to delete the selected row(s)?
+CopySelectedRowS=Copy selected row(s)...
+Modify=Modify
+ConditionColumnConfiguration=Condition column configuration
+ChooseAnExistingPatternThatThisColumnAddsTo=Choose an existing pattern that this column adds to
+Predicate=Predicate
+CalculationType=Calculation type:
+EditTheOperatorThatIsUsedToCompareDataWithThisField=Edit the operator that is used to compare data with this field
+Operator=Operator:
+notNeededForPredicate=(not needed for predicate)
+pleaseSelectAPatternFirst=(please select a pattern first)
+pleaseChooseAFieldFirst=(please choose a field first)
+pleaseSelectAField=(please select a field)
+SetTheOperator=Set the operator
+noOperator=(no operator)
+CreateANewFactPattern=Create a new fact pattern
+isEqualTo=equal to
+isNotEqualTo=not equal to
+isLessThan=less than
+lessThanOrEqualTo=less than or equal to
+greaterThan=greater than
+greaterThanOrEqualTo=greater than or equal to
+orEqualTo=or equal to
+orNotEqualTo=or not equal to
+andNotEqualTo=and not equal to
+andGreaterThan=and greater than
+andLessThan=and less than
+orGreaterThan=or greater than
+orLessThan=or less than
+orGreaterThanOrEqualTo=or greater than (or equal to)
+orLessThanOrEqualTo=or less than (or equal to)
+andGreaterThanOrEqualTo=and greater than (or equal to)
+andLessThanOrEqualTo=and less than (or equal to)
+andContains=and contains
+orContains=or contains
+andMatches=and matches
+orMatches=or matches
+orExcludes=or excludes
+andExcludes=and excludes
+soundsLike=sounds like
+ThereIsNo=The following does not exist
+ThereExists=The following exists
+AnyOf1=Any of the following are true
+Insert=Insert
+LogicallyInsert=Logically insert
+Retract=Retract
+Set=Set
+CallMethod=Call
+LoadingUserPermissions=Loading user permissions...
+WelcomeUser=Welcome: {0}
+SignOut=Sign Out
+LoadingLogMessages=Loading log messages...
+Timestamp=Timestamp
+Message=Message
+ShowRecentLogTip=Showing recent INFO and ERROR messages from the log
+Reload=Reload
+showMoreInfo=[show more info...]
+RenameThisAsset=Rename this asset
+Title=Title:
+CategoriesMetaData=Categories:
+ModifiedOnMetaData=Modified on:
+ModifiedByMetaData=by:
+NoteMetaData=Note:
+CreatedOnMetaData=Created on:
+CreatedByMetaData=Created by:
+FormatMetaData=Format:
+PackageMetaData=Package:
+IsDisabledMetaData=Is Disabled:
+DisableTip=Disables this asset. It will not be included in any processing.
+OtherMetaData=Other meta data ...
+SubjectMetaData=Subject:
+AShortDescriptionOfTheSubjectMatter=A short description of the subject matter.
+TypeMetaData=Type:
+TypeTip=This is for classification purposes.
+ExternalLinkMetaData=External link:
+ExternalLinkTip=This is for relating the asset to an external system.
+SourceMetaData=Source:
+SourceMetaDataTip=A short description or code indicating the source of the rule.
+VersionHistory=Version history ...
+CurrentVersionNumber=Current version number:
+RenameThisItem=Rename this item
+NewNameAsset=New name
+RenameItem=Rename item
+ItemHasBeenRenamed=Item has been renamed
+MoveThisItemToAnotherPackage=Move this item to another package
+CurrentPackage=Current package:
+NewPackage=New package:
+ChangePackage=Change package
+YouNeedToPickADifferentPackageToMoveThisTo=You need to pick a different package to move this to.
+MovedFromPackage=Moved from : {0}
+NotCheckedInYet=<i>Not checked in yet</i>
+InitialCategory=Initial category:
+TypeFormatOfRule=Type (format) of rule:
+FileExtensionTypeFormat=File extension (type/format):
+DSLMappingTip=A dsl is a language mapping from a domain specific language to the rule language.
+NewEnumDoco=An enumeration is a mapping from fields to a list of values. This will mean the rule editor will show a drop down for fields, instead of a text box. The format of this is\: 'FactType.fieldName'\: ['Value1', 'Value2']\nYou can add more mappings by adding in more lines. \nFor example\:\n\n'Person.sex' \: ['M', 'F']\n'Person.rating' \: ['High', 'Low']\n\nYou can also add display aliases (so the value used in the rule is separate to the one displayed\:\n'Person.sex' \: ['M\=Male', 'F\=Female']\nin the above case, the 'M\=Male' means that 'Male' will be displayed as an item in a drop down box, but the value 'M' will be used in the rule.
+InitialDescription=Initial description:
+BusinessRuleGuidedEditor=Business Rule (Guided editor)
+DSLBusinessRuleTextEditor=DSL Business Rule (Text editor)
+DRLRuleTechnicalRuleTextEditor=DRL Rule (Technical rule - text editor)
+DecisionTableSpreadsheet=Decision Table (Spreadsheet)
+DecisionTableWebGuidedEditor=Decision Table (Web - guided editor)
+YouHaveToPickAnInitialCategory=You have to pick an initial category.
+PleaseEnterAFormatFileType=Please enter a format/file type
+AssetNameAlreadyExistsPickAnother=An asset with that name already exists in the chosen package. Please use another name
+emptyNameIsNotAllowed=empty name is not allowed
+NonValidJCRName='{0}' is not valid. '{1}' is not a valid name character
+CreateANewPackage=Create a new package
+CreateANewSubPackage=Create a new subpackage
+ParentPackage=Parent Package
+ImportDRLDesc1=Importing a package from an existing DRL will create the package in the BRMS if it does not already exist. If it does exist, any new rules found will be merged into the package.
+ImportDRLDesc2=Any new rules created will not have any categories assigned initially, but rules and functions will be stored individually (ie normalised). Queries, imports etc will show up in the package configuration.
+ImportDRLDesc3=Any DSLs or models required by the imported package will need to be uploaded separately.
+NameColon=Name:
+DescriptionColon=Description:
+PackageNameTip=The name of the package. Avoid spaces, use underscore instead.
+CreateNewPackageRadio=Create new package
+ImportFromDrlRadio=Import from drl file
+DRLFileToImport=DRL file to import:
+CreatePackage=Create package
+PackageNameCorrectHint=Invalid package name. Please use a name that is of the style [abc] or perhaps [abc.def].
+CreatingPackagePleaseWait=Creating package - please wait...
+upload=upload:
+ImportMergeWarning=Are you sure you want to import this package? If the package already exists in the repository it will be merged.
+ImportingDRLPleaseWait=Importing drl package, please wait, as this could take some time...
+PackageWasImportedSuccessfully=Package was imported successfully.
+UnableToImportIntoThePackage0=Unable to import into the package. [{0}]
+YouDidNotChooseADrlFileToImport=You did not choose a drl file to import !
+YouCanOnlyImportDrlFiles=You can only import '.drl' files.
+WelcomeToGuvnor=Welcome to Guvnor
+BrandNewRepositoryNote=<b>This looks like a brand new repository.<br/>Would you like to install a sample repository?</b>
+YesPleaseInstallSamples=Yes, please install samples
+NoThanks=No thanks
+AboutToInstallSampleRepositoryAreYouSure=About to install sample repository. Are you sure?
+ImportingAndProcessing=Importing and processing...
+RepositoryInstalledSuccessfully=Repository installed successfully.
+BuildPackage=Build package
+ThisWillValidateAndCompileAllTheAssetsInAPackage=This will validate and compile all the assets in a package.
+OptionalSelectorName=(Optional) selector name
+CustomSelector=Custom selector
+SelectorTip=A selector is configured by administrators to choose what assets form part of a package build. If no selector is chosen, the whole package will be built. This is configured on the server side. See the WEB-INF/classes/selectors.properties for details.
+BuildBinaryPackage=Build binary package:
+BuildingPackageNote=Building a package will collect all the assets, validate and compile into a deployable package.
+CreateSnapshotForDeployment=Create snapshot for deployment
+TakeSnapshot=Take snapshot:
+AssemblingPackageSource=Assembling package source...
+ViewingSourceFor0=Viewing source for: {0}
+ReadOnlySourceNote=THIS IS READ ONLY - you may copy and paste, but not edit.
+ValidatingAndBuildingPackagePleaseWait=Validating and building package, please wait...
+PackageBuiltSuccessfully=Package built successfully. Last modified on
+DownloadBinaryPackage=Download binary package
+Format=Format
+Message1=Message
+LoadingExistingSnapshots=Loading existing snapshots...
+CreateASnapshotForDeployment=Create a snapshot for deployment.
+SnapshotDescription=<i>A package snapshot is a read only 'locked in' and labelled view of a package at a point in time, which can be used for deployment.</i><b>You should build the package before taking a snapshot, generally.</b>
+ChooseOrCreateSnapshotName=Choose or create snapshot name:
+NEW=NEW
+Comment=Comment:
+CreateNewSnapshot=Create new snapshot
+YouHaveToEnterOrChoseALabelNameForTheSnapshot=You have to enter or choose a label (name) for the snapshot.
+TheSnapshotCalled0WasSuccessfullyCreated=The snapshot called: {0} was successfully created.
+ConfigurationSection=Configuration
+Configuration=Configuration:
+CategoryRules=Category Rules:
+SaveAndValidateConfiguration=Save and validate configuration
+BuildAndValidate=Build and validate
+InformationAndImportantURLs=Information and important URLs
+DateCreated=Date created:
+ShowPackageSource=Show package source
+URLForPackageSource=URL for package source:
+URLSourceDescription=Use this URL to download the source, or in the 'runtime agent' to access the rules in source form
+URLForPackageBinary=URL for package binary:
+UseThisUrlInTheRuntimeAgentToFetchAPreCompiledBinary=Use this url in the 'runtime agent' to fetch a pre compiled binary.
+URLForRunningTests=URL for running tests:
+URLRunTestsRemote=Use this url to run the scenarios remotely and collect results.
+ChangeStatusDot=Change status.
+Tip=Tip...
+AllRulesForCategory0WillNowExtendTheRule1=All rules for Category: [{0}] will now extend the rule: [{1}]
+RemoveThisCategoryRule=Remove this Category Rule?
+AddCatRuleToThePackage=Add a Category Rule to the Package, to automatically add rule LHS to all rules in this category.
+CategoryParentRules=Category parent rules
+CatRulesInfo=This allows you to set 'parent rules' for a category. Any rules appearing in the given category will 'extend' the rule specified - ie inherit the conditions/LHS.
+AddACategoryRuleToThePackage=Add a Category Rule to the Package
+CreateCategoryRule=Create Category Rule.
+AllTheRulesInFollowingCategory=All the rules in category:
+WillExtendTheFollowingRuleCalled=Will extend the rule called:
+ThereWereErrorsValidatingThisPackageConfiguration=There were errors validating this package configuration.
+ViewErrors=View errors
+Rename=Rename
+AreYouSureYouWantToArchiveRemoveThisPackage=Are you sure you want to archive (remove) this package?
+RenameThePackage=Rename the package
+RenamePackageTip=<i>Rename the package. A new unique name is required.</i>
+NewPackageNameIs=New package name:
+PackageRenamedSuccessfully=Package renamed successfully.
+CopyThePackage=Copy the package
+CopyThePackageTip=<i>Copy the package and all its assets. A new unique name is required.</i>
+NotAValidPackageName=Not a valid package name.
+PackageCopiedSuccessfully=Package copied successfully.
+SavingPackageConfigurationPleaseWait=Saving package configuration. Please wait ...
+PackageConfigurationUpdatedSuccessfullyRefreshingContentCache=Package configuration updated successfully, refreshing content cache...
+RefreshingPackageData=Refreshing package data...
+ImportedTypes=Imported types
+FactTypesJarTip=Fact types are classes from 'jar' files that have been uploaded to the current package.
+AreYouSureYouWantToRemoveThisFactType=Are you sure you want to remove this fact type?
+Globals=Globals
+GlobalTypesAreClassesFromJarFilesThatHaveBeenUploadedToTheCurrentPackage=Global types are classes from 'jar' files that have been uploaded to the current package.
+AreYouSureYouWantToRemoveThisGlobal=Are you sure you want to remove this global?
+AdvancedView=Advanced view
+SwitchToTextModeEditing=Switch to text mode editing.
+SwitchToAdvancedTextModeForPackageEditing=Switch to advanced text mode for package editing?
+BasicView=Basic view
+SwitchToGuidedModeEditing=Switch to guided mode editing.
+SwitchToGuidedModeForPackageEditing=Switch to guided mode for package editing? This is not always possible with some advanced package configurations.
+ChooseAFactType=Choose a fact type
+loadingList=loading list ....
+TypesInThePackage=Types in the package
+IfNoTypesTip=If no types appear in the list, create a model asset, and upload a jar file to it for this package. The jar file should contain the .class files for the types needed by the rules only.
+ChooseClassType=Choose class type:
+GlobalName=Global name:
+EnteringATypeClassName=Entering a type class name
+EnterTypeNameTip=You should only need to do this if a fact class is on the BRMS classpath itself. Otherwise it should be in the list above.
+advancedClassName=(advanced) class name:
+YouMustEnterAGlobalVariableName=You must enter a global variable name.
+Packages=Packages
+NewPackage1=New Package
+NewSubPackage=New SubPackage
+NewRule=New Rule
+UploadPOJOModelJar=Upload POJO Model jar
+NewModelArchiveJar=New model archive (jar)
+NewDeclarativeModel=New Declarative Model
+NewDeclarativeModelUsingGuidedEditor=New declarative model (using guided editor).
+NewFunction=New Function
+CreateANewFunction=Create a new function
+NewDSL=New DSL
+CreateANewDSLConfiguration=Create a new DSL configuration
+NewRuleFlow=New RuleFlow
+CreateANewRuleFlow=Create a new RuleFlow
+NewEnumeration=New Enumeration
+CreateANewEnumerationDropDownMapping=Create a new enumeration (drop down mapping).
+NewTestScenario=New Test Scenario
+CreateATestScenario=Create a test scenario.
+NewFile=New File
+CreateAFile=Create a file.
+RebuildAllPackageBinariesQ=Rebuild all package binaries
+RebuildConfirmWarning=You should only run this if Drools has been upgraded recently (and you have been experiencing errors). This may take some time - are you sure you want to do this?
+RebuildingPackageBinaries=Rebuilding package binaries...
+TipAuthEnable=TIP: To enable or disable authorization, open components.xml in WEB-INF
+EnablingAuthorization=Enabling authorization
+EnablingAuthPopupTip=In components.xml, edit enable-role-based-authorization attribute
+UserName1=User name
+Administrator=Administrator
+HasPackagePermissions=Has package permissions
+HasCategoryPermissions=Has category permissions
+Reload1=Reload
+CurrentlyConfiguredUsers=Currently configured users:
+CreateNewUserMapping=Create new user mapping
+EnterNewUserName=Enter new userName
+NewUserName=New user name
+DeleteSelectedUser=Delete selected user
+AreYouSureYouWantToDeleteUser0=Are you sure you want to delete user [{0}]
+LoadingUsersPermissions=Loading users permissions...
+EditUser0=Edit user: {0}
+UserAuthenticationTip=Users are authenticated by a directory service, here you can define Guvnor specific permissions as needed.
+Updating=Updating...
+ThisUserIsAnAdministrator=This user is an administrator:
+RemoveAdminRights=Remove Admin rights
+AreYouSureYouWantToRemoveAdministratorPermissions=Are you sure you want to remove Administrator permissions?
+RemovePermission=Remove permission.
+AreYouSureYouWantToRemovePermission0=Are you sure you want to remove permission [{0}] ?
+AddANewPermission=Add a new permission
+Loading=Loading...
+PermissionType=Permission type:
+pleaseChoose1=-- please choose --
+MakeThisUserAdmin=Make this user admin:
+SelectCategoryToProvidePermissionFor=Select category to provide permission for:
+SelectPackageToApplyPermissionTo=Select package to apply permission to:
+Yes=Yes
+PermissionDetails=Permission details
+PermissionDetailsTip=The 'analyst' permission applies to a category(s), and their sub categories. A user with only 'analyst' permissions will see a subset of the user interface. 'package' permissions apply to a specific package. A 'package.admin' can build and create snapshots, but a 'package.developer' can only edit items inside their specified packages.
+TheVariableName0IsAlreadyTaken=The variable name [{0}] is already taken.
+BindTheFieldCalled0ToAVariable=Bind the field called [{0}] to a variable:
+BindTheExpressionToAVariable=Bind the Expression to a new variable:
+ShowSubFields=Show sub fields...
+ApplyAConstraintToASubFieldOf0=Apply a constraint to a sub-field of [{0}]:
+AddFieldsToThisConstraint=Add fields to this constraint
+AddARestrictionOnAField=Add a restriction on a field
+AllOfAnd=All of (And)
+AnyOfOr=Any of (Or)
+MultipleFieldConstraints=Multiple field constraints
+MultipleConstraintsTip=You can specify constraints that span multiple fields (and more). The results of all these constraints can be combined with a 'and' or an 'or' logically. You can also have other multiple field constraints nested inside these restrictions.
+MultipleFieldConstraint=Multiple field constraint
+ModifyConstraintsFor0=Modify constraints for {0}
+AddSubFieldConstraint=Add sub-field constraint
+MultipleConstraintsTip1=You can specify constraints that span multiple fields (and more). The results of all these constraints can be combined with a 'and' or an 'or' logically. You can also have other multiple field constraints nested inside these restrictions.
+AdvancedOptionsColon=Advanced options:
+AddFromConditionColon=Add From condition:
+AddANewFormulaStyleExpression=Add a new formula style expression
+VariableName=Variable name
+Add=Add
+Clear=Clear
+Properties=Properties
+QA1=QA
+AttributeSearch=Attribute search ...
+CreatedBy=Created by
+Format1=Format
+Subject=Subject
+Type1=Type
+ExternalLink=External link
+Source=Source
+Description1=Description
+LastModifiedBy=Last modified by
+CheckinComment=Checkin comment
+WildCardsSearchTip=Use * for wildcards, separate different options with a comma.
+AfterColon=After:
+BeforeColon=Before:
+Before=Before
+DateCreated1=Date created
+LastModified1=Last modified
+Search=Search
+NameSearch=Name search ...
+TextSearch=Text search ...
+SearchFor=Search for:
+Search1=Search
+PleaseEnterSomeSearchText=Please enter some search text
+FindItemsWithANameMatching=Find items with a name matching:
+IncludeArchivedAssetsInResults=Include archived assets in results:
+EnterSearchString=Enter the name or part of a name. Alternatively, use the categories to browse.
+SearchingDotDotDot=Searching...
+ThereAreMoreItemsTryNarrowingTheSearchTerms=There are more items... try narrowing the search terms..
+Metadata2=Metadata:
+Attributes1=Attributes:
+RemoveThisRuleOption=Remove this rule option?
+RuleDocHint=This is rule documentation. Human friendly descriptions of the business logic.
+documentationDefault=<documentation>
+RuleFlowUploadTip=Ruleflows allow flow control between rules. The eclipse plugin provides a graphical editor. Upload ruleflow .rf files for inclusion in this package.
+CalculatingSource=Calculating source...
+ViewingDiagram=Viewing diagram
+Parameters=Parameters
+CouldNotCreateTheRuleflowDiagramItIsPossibleThatTheRuleflowFileIsInvalid=Could not create the ruleflow diagram. It is possible that the ruleflow file is invalid.
+AddAConditionToThisRule=Add a condition to this rule.
+AddAnOptionToTheRuleToModifyItsBehaviorWhenEvaluatedOrExecuted=Add an option to the rule, to modify its behavior when evaluated or executed.
+Metadata3=Metadata:
+Attribute1=Attribute:
+AddXToListY=Add <b>[{0}]</b> to the list <b>[{1}]</b>
+RemoveThisAction=Remove this action.
+AddAConditionToTheRule=Add a condition to the rule...
+ChooseFactType=Choose fact type...
+Fact1=Fact
+ChooseOtherConditionType=Choose other condition type...
+FreeFormDrl=Free form drl
+ExpressionEditor=Expression editor
+ConditionTypeButton=Condition type
+ChooseDotDotDot=Choose...
+DSLSentence=DSL sentence
+NoModelTip=Note: No model has been defined.<br/>Tip: You will want to import or define a model for this user interface to work !
+AddANewAction=Add a new action...
+NotifyEngineOfChanges=Notify engine of changes
+NotifyEngineOfChangesUpdateModify=Notify engine of changes (update/modify)
+ModifyEngineTip=Modify a field on a fact, and notify the engine to re-evaluate rules.\nWARNING\: this can cause infinite loops - use with care.
+SetFieldValues=Set field values
+RetractTheFact=Retract the fact
+AddAnItemToACollection=Add an item to a collection:
+InsertANewFact=Insert a new fact
+LogicallyAssertAFactTheFactWillBeRetractedWhenTheSupportingEvidenceIsRemoved=Logically assert a fact - the fact will be retracted when the supporting evidence is removed.
+LogicallyInsertANewFact=Logically insert a new fact
+CallAMethodOnFollowing=Call a method on
+AddFreeFormDrl=Add free form drl
+FreeFormAction=Free form action
+ThisIsADrlExpressionFreeForm=This is a drl expression (free form)
+RemoveThisENTIREConditionAndAllTheFieldConstraintsThatBelongToIt=Remove this ENTIRE condition, and all the field constraints that belong to it.
+RemoveThisEntireConditionQ=Remove this entire condition?
+CanTRemoveThatItemAsItIsUsedInTheActionPartOfTheRule=Can't remove that item as it is used in the action part of the rule.
+NewBusinessRuleGuidedEditor=New Business Rule (Guided editor)
+NewRuleUsingDSL=New Rule using DSL
+NewDRL=New DRL
+NewDecisionTableSpreadsheet=New Decision Table (Spreadsheet)
+NewDecisionTableGuidedEditor=New Decision Table (Guided editor)
+TestScenario=Test Scenario
+ViewSource=View source
+Validate=Validate
+ValidatingItemPleaseWait=Validating item, please wait...
+ValidationResultsDotDot=Validation results...
+ItemValidatedSuccessfully=Item validated successfully.
+ValidationResults=Validation results
+packageConfigurationProblem=[package configuration problem]
+SavingPleaseWait=Saving, please wait...
+FailedToCheckInTheItemPleaseContactYourSystemAdministrator=Failed to check in the item. Please contact your system administrator.
+RefreshingContentAssistance=Refreshing content assistance...
+RefreshingItem=Refreshing item...
+WARNINGUnCommittedChanges=WARNING: Un-committed changes.
+Discard=Discard
+AreYouSureYouWantToDiscardChanges=Are you sure you want to discard changes?
+ScenariosForPackage1=Scenarios for package:
+RunAllScenarios=Run all scenarios
+BuildingAndRunningScenarios=Building and running scenarios...
+EXPECT=EXPECT
+DeleteItem=Delete item.
+AreYouSureYouWantToRemoveThisItem=Are you sure you want to remove this item?
+GIVEN=GIVEN
+AddInputDataAndExpectationsHere=Add input data and expectations here.
+MoreDotDot=More...
+AddAnotherSectionOfDataAndExpectations=Add another section of data and expectations.
+configuration=(configuration)
+globals=(globals)
+AddANewGlobalToThisScenario=Add a new global to this scenario.
+NewGlobal=New global
+TheName0IsAlreadyInUsePleaseChooseAnotherName=The name [{0}] is already in use. Please choose another name.
+GlobalColon=Global:
+AddANewDataInputToThisScenario=Add a new data input to this scenario.
+NewInput=New input
+YouMustEnterAValidFactName=You must enter a valid fact name.
+TheFactName0IsAlreadyInUsePleaseChooseAnotherName=The fact name [{0}] is already in use. Please choose another name.
+FactName=Fact name:
+InsertANewFact1=Insert a new fact:
+ModifyAnExistingFactScenario=Modify an existing fact:
+RetractAnExistingFactScenario=Retract an existing fact:
+AddANewExpectation=Add a new expectation.
+NewExpectation=New expectation
+Rule=Rule:
+FactValue=Fact value:
+AnyFactThatMatches=Any fact that matches:
+DeleteTheExpectationForThisFact=Delete the expectation for this fact.
+AreYouSureYouWantToRemoveThisExpectation=Are you sure you want to remove this expectation?
+EnterRuleNameScenario=Enter name of rule, or pick from a list. If there are a very large number of rules, you will need to type in the name.
+showListButton=(show list)
+loadingList1=(loading list)
+ValueFor0=Value for: {0}
+globalForScenario=global [{0}]
+modifyForScenario=modify [{0}]
+insertForScenario=insert [{0}]
+ChooseAFieldToAdd=Choose a field to add
+RemoveThisRow=Remove this row.
+AreYouSureYouWantToRemoveRow0=Are you sure you want to remove row [{0}]?
+RemoveTheColumnForScenario=Remove the column for [{0}]
+CanTRemoveThisColumnAsTheName0IsBeingUsed=Can't remove this column as the name [{0}] is being used.
+AreYouSureYouWantToRemoveColumn0=Are you sure you want to remove column [{0}]?
+AddANewRule=Add a new rule.
+RemoveSelectedRule=Remove selected rule.
+PleaseChooseARuleToRemove=Please choose a rule to remove.
+AllowTheseRulesToFire=Allow these rules to fire:
+PreventTheseRulesFromFiring=Prevent these rules from firing:
+AllRulesMayFire=All rules may fire
+SelectRule=Select rule
+UseRealDateAndTime=Use real date and time
+UseASimulatedDateAndTime=Use a simulated date and time
+property0RulesFiredIn1Ms={0} rules fired in {1}ms.
+ShowRulesFired=Show rules fired
+RulesFired=Rules fired:
+currentDateAndTime=<current date and time>
+BadDateFormatPleaseTryAgainTryTheFormatOf0=Bad date format - please try again (try the format of {0}).
+scenarioFactTypeHasValues={0} [{1}] has values:
+AFactOfType0HasValues=A fact of type [{0}] has values:
+AddAFieldToThisExpectation=Add a field to this expectation.
+equalsScenario=equals
+doesNotEqualScenario=does not equal
+RemoveThisFieldExpectation=Remove this field expectation.
+AreYouSureYouWantToRemoveThisFieldExpectation=Are you sure you want to remove this field expectation?
+ActualResult=(Actual: {0})
+ExpectRules=Expect rules
+firedAtLeastOnce=fired at least once
+didNotFire=did not fire
+firedThisManyTimes=fired this many times:
+RemoveThisRuleExpectation=Remove this rule expectation.
+AreYouSureYouWantToRemoveThisRuleExpectation=Are you sure you want to remove this rule expectation?
+RetractFacts=Retract facts
+RemoveThisRetractStatement=Remove this retract statement.
+RunScenario=Run scenario
+RunScenarioTip=Run this scenario. This will build the package if it is not already built (which may take some time).
+BuildingAndRunningScenario=Building and running scenario
+packageConfigurationProblem1=[package configuration problem]
+MaxRuleFiringsReachedWarning=WARNING: The maximum number of rule firings ({0}) was reached. It is likely that there is an infinite loop occurring.
+SummaryColon=Summary:
+AuditLogColon=Audit log:
+ShowEventsButton=Show events
+ViewingSnapshot=Viewing snapshot:
+ForPackage=For package:
+clickHereToDownloadBinaryOrCopyURLForDeploymentAgent=click here to download binary (or copy URL for deployment agent)
+DeploymentURL=Deployment URL:
+SnapshotCreatedOn=Snapshot created on:
+CommentColon=Comment:
+SnapshotDeleteConfirm=Are you sure you want to delete the snapshot labelled [{0}] from the package [{1}] ?
+SnapshotWasDeleted=Snapshot was deleted.
+CopySnapshotText=Copy snapshot {0}
+ExistingSnapshots=To an existing snapshot or a new snapshot:
+NewSnapshotNameIs=New Snapshot name:
+CreatedSnapshot0ForPackage1=Created snapshot [{0}] for package [{1}]
+Snapshot0ForPackage1WasCopiedFrom2=Snapshot [{0}] for package [{1}] was copied from [{2}]
+PleaseEnterANonExistingSnapshotName=Please enter a non existing Snapshot name
+SnapshotListingFor=Snapshot listing for:
+SnapshotItems=Snapshot items
+NewSnapshot=New snapshot
+SnapshotRebuildWarning=Rebuilding the snapshot binaries will take some time, and only needs to be done if the BRMS itself has been updated recently. This will also cause the rule agents to load the rules anew. Are you sure you want to do this?
+RebuildingSnapshotsPleaseWaitThisMayTakeSomeTime=Rebuilding snapshots. Please wait, this may take some time...
+SnapshotsWereRebuiltSuccessfully=Snapshots were rebuilt successfully.
+Type2=Type
+Priority= Priority:
+ValueRuleFlow= Value:
+ManageStatuses=Manage statuses
+StatusTagsAreForTheLifecycleOfAnAsset=Status tags are for the lifecycle of an asset.
+CurrentStatuses=Current statuses:
+NewStatus=New status
+PleaseSelectAStatusToRename=Please select a status to rename.
+PleaseSelectAStatusToRemove=Please select a status to remove.
+AddNewStatus=Add new status:
+StatusRemoved=Status removed.
+PleaseEnterTheNameYouWouldLikeToChangeThisStatusTo=Please enter the name you would like to change this status to
+StatusRenamed=Status renamed.
+LoadingStatuses=Loading statuses...
+ChooseOne=-- Choose one --
+UpdatingStatus=Updating status...
+CreateNewStatus=Create new status
+StatusName=Status name
+CanTHaveAnEmptyStatusName=Can't have an empty status name.
+CreatingStatus=Creating status
+StatusWasNotSuccessfullyCreated=Status was not successfully created.
+UnableToGetContentAssistanceForThisRule=Unable to get content assistance for this rule.
+UnableToValidatePackageForSCE=Unable to validate package configuration (eg, DSLs, models) for [{0}]. Suggestion completions may not operate correctly for graphical editors for this package.
+Detail=Detail:
+VersionHistory1=Version history
+NoHistory=No history.
+View=View
+LoadingVersionFromHistory=Loading version
+VersionNumber0Of1=Version number [{0}] of [{1}]
+RestoreThisVersion=Restore this version
+RestoreThisVersionQ=Restore this version?
+NoteNewPackageDrlImportWarning=Note:
+PleaseEnterANameForFact=Please enter a name.
+PleaseEnterANameThatIsNotTheSameAsTheFactType=Please enter a name that is not the same as the fact type.
+ThatNameIsInUsePleaseTryAnother=That name is in use, please try another.
+Browse=Browse
+KnowledgeBases=Knowledge Bases
+DefaultValue=Default value:
+UseRowNumber=Use row number
+ReverseOrder=Reverse order
+HideThisColumn=Hide this column
+PleaseSelectOrEnterField=Please select or enter field
+NotifyNoSelectedOrEnteredField=Field has not been selected or entered
+PleaseSelectAnOperator=Please select an operator
+NotifyNoSelectedOperator=Operator has not been selected
+January=January
+February=February
+March=March
+April=April
+May=May
+June=June
+July=July
+August=August
+October=October
+September=September
+November=November
+December=December
+SorryAnItemOfThatNameAlreadyExistsInTheRepositoryPleaseChooseAnother=Sorry, an item of that name already exists in the repository. Please choose another.
+ALiteralValueMeansTheValueAsTypedInIeItsNotACalculation=A literal value means the value as typed in (ie it is not a calculation).
+WHEN=WHEN
+THEN=THEN
+AddAnActionToThisRule=Add an action to this rule.
+optionsRuleModeller=(options)
+clickToAddPatterns=(click to add patterns...)
+ChangeFieldValuesOf0=Change field values of {0}...
+Retract0=Retract {0}
+Modify0=Modify {0}...
+InsertFact0=Insert fact {0}...
+LogicallyInsertFact0=Logically Insert fact {0}...
+Append0ToList1=Append {0} to list: {1}
+CallMethodOn0=Call method on {0}...
+hide=(hide)
+RemoveThisBlockOfData=Remove this block of data
+AreYouSureYouWantToRemoveThisBlockOfData=Are you sure you want to remove this block of data?
+PleaseEnterANameThatIsNotAlreadyUsedByAnotherPattern=Please enter a name that is not already used by another pattern.
+ThereIsAAn0With=There is a/an {0} with:
+ThereIsAAn0=There is a/an {0}
+All0with=All {0} with:
+AddFirstNewField=Add first new field.
+ImportedDRLContainsNoNameForThePackage=Imported DRL contains no name for the package. Please name the package.
+InitialisingInfoFor0PleaseWait=Initialising info for {0}, please wait...
+SavedOK=(Saved OK)
+Actions=Actions...
+ChangeSet=Change Set:
+URLToChangeSetForDeploymentAgents=URL to change set for deployment agents.
+FrozenAreas=Frozen areas...
+FrozenExplanation=Frozen areas mean that the rule can only have its fields edited, no extra conditions added or removed or the structure changed.
+FreezeAreasForEditing=Freeze areas for editing:
+Conditions=Conditions
+smallCommentBy0On1Small=<small>Comment by {0} on {1}:</small>
+AddADiscussionComment=Add a discussion comment
+EraseAllComments=Erase all comments
+EraseAllCommentsWarning=Erase ALL discussion items? NOTE that this CAN NOT be undone. Are you sure?
+Discussion=Discussion
+SaveAndClose=Save and close
+Predicates=Predicates
+PredicatesInfo=Predicates are expressions that resolve to a true or a false. You can place $param in the field and the value from the cell will be substituted in place of param. For example [this.callMethod($param)]
+NewBPELPackage=New BPEL package
+CreateANewBPELPackage=Create a new BPEL package
+OpenEditorInNewWindow=Open editor in new window.
+BPELPackages=BPEL Packages
+ValueCanNotBeEmpty=Value can not be empty
+Value=Value
+property0ModifiedOn12={0} modified on: {1} ({2})
+isContainedInTheFollowingList=is contained in the a (comma separated) list
+RecentlyOpened=Recently Opened
+RecentlyEdited=Recently Edited
+IncomingChanges=Incoming changes
+From=From
+FromAccumulate=From Accumulate
+FromCollect=From Collect
+URLDocumentionDescription=Use this url to download package documentation PDF.
+URLForDocumention=URL for package documentation:
+CanNotMoveColumnsFromOneTypeGroupToAnother=Can not move columns from one type group to another
+PleaseSelectARow=Please select a row
+AddRowBeforeSelectedRow=Add row before selected row...
+CreateNewAsset=Create new\:
+CreateLinkedAsset=Import asset from global area\:
+CreateLinkedAssetFromUUID=UUID of the existing asset\:
+NoteNewLinkedAsset=NOTE\:
+NewLinkedAssetDesc1=This will import a shared asset from global area.
+NewLinkedAssetDesc2=you need to open the existing asset that you want to link to, copy and paste its
+NewLinkedAssetDesc3=UUID to the text box above.
+BuildWholePackageTip=This will build the whole package.
+BuiltInSelectorTip=The built-in selector allows you to choose what assets form part of a package build according to asset's status, category and meta data. Please use a custom selector if the built-in selector does not satisfy your requirement.
+BuildWholePackage=Build whole package
+BuildPackageUsingBuiltInSelector=Use built-in selector
+BuildPackageUsingCustomSelector=Use custom selector
+BuildPackageUsingFollowingAssets=Build package using following assets:
+BuildPackageUsingBuiltInSelectorStatus=When status :
+BuildPackageUsingBuiltInSelectorCat=When category :
+BuiltInSelector=Built-in selector
+BuildPackageUsingCustomSelectorSelector=Custom Selector :
+CreateInPackage=Create in Package\:
+CreateInGlobalArea=Create in Global area
+AssetToImport=Asset to import\:
+Older0=Older : {0}
+Newer0=Newer: {0}
+TypeAdded=Added
+TypeArchived=Archived
+TypeDeleted=Deleted
+TypeRestored=Restored
+TypeUpdated=Updated
+Severity=Severity
+CleaningLogMessages=Cleaning log messages...
+Clean=Clean
+MoveUp=Move up
+MoveDown=Move down
+clickToAddPattern=click to add pattern...
+Top=Top
+Bottom=Bottom
+Line0=Line {0}
+PositionColon=Position:
+ConditionPositionExplanation=Select the position where the Condition will be added.
+ActionPositionExplanation=Select the position where the Action will be added.
+AddAConditionBelow=Add a condition below.
+AddAnActionBelow=Add an action below.
+openSelectedToSingleTab=[open selected to single tab]
+SaveAllChanges=Save all changes
+SaveAndCloseAll=Save and close all
+DescriptionAndDiscussion=Description and discussion
+Show=Show
+Asset0IsAlreadyOpenPleaseCloseItBeforeOpeningMultiview=Asset {0} is already open, please close it before opening multiview.
+PromoteToGlobal=Promote to Global
+PromoteAreYouSure=Are you sure you want to promote this item to global area?
+Promoted=The item has been moved to global area.
+ItemAlreadyInGlobalArea=The item is already in global area.
+VerifyingItemPleaseWait=Verifying item, please wait.
+Verify=Verify
+VerificationReport=Verification report
+CanNotSwitchToBasicView=There are errors in this view. Can not switch to guided mode until the errors are resolved
+Causes=Causes
+ImpactedRules=Impacted rules
+SelectWorkingSets=Select Working Sets
+WorkingSets=WorkingSets
+NewWorkingSet=New WorkingSet
+CreateWorkingSet=Create a WorkingSet
+ErrorLoadingRules=Error loading rules.
+WorkingSetName=WorkingSet name
+CopyTheWorkingSet=Copy the WorkingSet
+CopyTheWorkingSetTip=<i>Copy the WorkingSet and all its facts and restrictions. A new unique name is required.</i>
+NewWorkingSetNameIs=New WorkingSet name:
+NotAValidWorkingSetName=Not a valid WorkingSet name.
+WorkingSetCopiedSuccessfully=WorkingSet copied successfully.
+RenameTheWorkingSet=Rename the WorkingSet.
+RenameTheWorkingSetTip=<i>Rename the WorkingSet. A new unique name is required.</i>
+WorkingSetRenamedSuccessfully=WorkingSet successfully renamed.
+ConstraintsSection=Constraints Section
+AddNewConstraint=Add New Constraint
+removeConstraint=Remove Constraint
+AElementToDelInCollectionList=Delete element in the list
+AElementToAddInCollectionList=Add element to the list
+GuidedList=Guided list
+AGuidedList=A guide list
+AGuidedListTip=Helps you enter data to a collect/list
+AddElementBelow=Add an element below
+MoveUpList=Move element in list up
+MoveDownListMove= element in list down
+theRuleHasErrorsOrWarningsDotDoYouWantToContinue=The Rule has errors or warnings. Do you want to continue?
+RulesVerification=Rules Verification
+RulesVerificationManager=Rules Verification Manager
+EditRulesVerificationConfiguration=Edit Rules Verification Configuration
+AutomaticVerification=Automatic Verification
+Enabled=Enabled
+NewRuleTemplate=New rule template
+TemplateKey=Template key
+AllChangesHaveBeenSaved=All changes have been saved
+TemplateEditor=Template Editor
+TemplateData=Template Data
+ActivateRuleFlowGroup=Activate rule flow group
+FillInColumnWithValue=Please fill in this column with a {0} value.
+LoadTemplateData=Load Template Data
+RepositoryConfiguration=Repository Configuration
+RepositoryConfig=Repository Config
+ManageRepositoryConfig=Manage Repository Configuration
+ManageRepositoryConfigDesc=Generate configuration for your RDBMS
+SelectRdbmsType=Select RDBMS type:
+UseJndi=Use JNDI:
+PleaseSelectRdbmsType=Please select RDBMS type
+PleaseEnterDriver=Please enter the driver
+PleaseEnterUrl=Please enter the URL
+PleaseEnterUserName=Please enter user name
+PleaseEnterJndiName=Please enter JNDI name
+PleaseEnterPassword=Please enter password
+GenerateRepositoryConfiguration=Generate repository config
+RepositoryXml=repository.xml
+UnableToProcessRepositoryConfiguration=Unable to Process Repository Configuration
+SaveRepo=Save Configuration
+SaveTheRepositoryConfig=Save the configuration?
+SaveRepoInfo=Save the repository configuration to a file. Alternatively you can cut/paste it from this page. Don't forget to back up your repository (Import/Export) before replacing your existing repository.xml and restart your server for changes to take effect.
+Inbox=Inbox
\ No newline at end of file
Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/packages/SnapshotView.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/packages/SnapshotView.java 2010-09-02 03:15:05 UTC (rev 34970)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/packages/SnapshotView.java 2010-09-02 06:54:47 UTC (rev 34971)
@@ -17,7 +17,9 @@
package org.drools.guvnor.client.packages;
import java.util.ArrayList;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
import org.drools.guvnor.client.common.FormStylePopup;
import org.drools.guvnor.client.common.GenericCallback;
@@ -27,6 +29,7 @@
import org.drools.guvnor.client.explorer.ExplorerNodeConfig;
import org.drools.guvnor.client.explorer.ExplorerViewCenterPanel;
import org.drools.guvnor.client.explorer.GenericPanel;
+import org.drools.guvnor.client.explorer.PackagesTree;
import org.drools.guvnor.client.messages.Constants;
import org.drools.guvnor.client.rpc.PackageConfigData;
import org.drools.guvnor.client.rpc.RepositoryServiceAsync;
@@ -40,6 +43,8 @@
import org.drools.guvnor.client.util.Format;
import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.logical.shared.SelectionEvent;
+import com.google.gwt.event.logical.shared.SelectionHandler;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
@@ -52,13 +57,12 @@
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.RadioButton;
+import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.TextBox;
+import com.google.gwt.user.client.ui.Tree;
+import com.google.gwt.user.client.ui.TreeItem;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
-import com.gwtext.client.core.EventObject;
-import com.gwtext.client.widgets.tree.TreeNode;
-import com.gwtext.client.widgets.tree.TreePanel;
-import com.gwtext.client.widgets.tree.event.TreePanelListenerAdapter;
/**
* This is the new snapshot view.
@@ -373,18 +377,21 @@
}
protected Widget packageTree() {
- TreeNode pkg = ExplorerNodeConfig.getPackageItemStructure( parentConf.name,
- snapInfo.uuid );
+ Map<TreeItem, String> itemWidgets = new HashMap<TreeItem, String>();
+ Tree root = new Tree();
+ root.setAnimationEnabled(true);
+
+
+ TreeItem pkg = ExplorerNodeConfig.getPackageItemStructure( parentConf.name,
+ snapInfo.uuid,
+ itemWidgets);
pkg.setUserObject( snapInfo );
- TreeNode root = new TreeNode( snapInfo.name );
- root.appendChild( pkg );
- TreePanel tp = GenericPanel.genericExplorerWidget( root );
- tp.setRootVisible( false );
- tp.addListener( new TreePanelListenerAdapter() {
-
- public void onClick(TreeNode node,
- EventObject e) {
- Object uo = node.getUserObject();
+ root.addItem(pkg);
+
+ ScrollPanel packagesTreeItemPanel = new ScrollPanel(root);
+ root.addSelectionHandler(new SelectionHandler<TreeItem>() {
+ public void onSelection(SelectionEvent<TreeItem> event) {
+ Object uo = event.getSelectedItem().getUserObject();
if ( uo instanceof Object[] ) {
Object o = ((Object[]) uo)[0];
showAssetList( (String[]) o );
@@ -393,12 +400,11 @@
//todo - add snap notice to this..
centerPanel.openPackageEditor( s.uuid,
null );
- }
+ }
+ }
+ });
- }
- } );
- return tp;
-
+ return packagesTreeItemPanel;
}
protected void showAssetList(final String[] assetTypes) {
More information about the jboss-svn-commits
mailing list