Package org.drools.guvnor.client.packages

Examples of org.drools.guvnor.client.packages.PackageEditor


                                                ClientFactory clientFactory,
                                                EventBus eventBus,
                                                boolean historicalReadOnly,
                                                Command refreshCommand) {
        if ( packageConfigData.getFormat().equals( "package" ) ) {
            return new PackageEditor(
                                      packageConfigData,
                                      clientFactory,
                                      eventBus,
                                      historicalReadOnly,
                                      refreshCommand );
        } else if ( packageConfigData.format.equals( "soaservice" ) ) {
            return new SOAServiceEditor(
                                         packageConfigData,
                                         clientFactory,
                                         eventBus,
                                         historicalReadOnly,
                                         refreshCommand );
        } else {
            //default:
            return new PackageEditor(
                                      packageConfigData,
                                      clientFactory,
                                      eventBus,
                                      historicalReadOnly,
                                      refreshCommand );
View Full Code Here


              // When model is saved update the package view if it is
              // opened.
              if (a.metaData.format.equals(AssetFormats.MODEL)) {
                  Command command =new Command() {
                                    public void execute() {
                                        PackageEditor packageEditor = openedPackageEditors.get(a.metaData.packageName);
                                        if (packageEditor != null) {
                                            packageEditor.reload();
                                        }
                                    }
                                };
                rv.setCheckedInCommand( command );
                rv.setArchiveCommand( command );
View Full Code Here

    if (!showIfOpen(uuid)) {
      LoadingPopup.showMessage(constants.LoadingPackageInformation());
      RepositoryServiceFactory.getService().loadPackageConfig(uuid, new GenericCallback<PackageConfigData>() {
        public void onSuccess(PackageConfigData conf) {
          PackageEditor ed = new PackageEditor(conf, new Command() {
            public void execute() {
              close(uuid);
            }
          }, refPackageList, new EditItemEvent() {
            public void open(String uuid) {
View Full Code Here

              // When model is saved update the package view if it is
              // opened.
              if (a.metaData.format.equals(AssetFormats.MODEL)) {
                  Command command =new Command() {
                                    public void execute() {
                                        PackageEditor packageEditor = openedPackageEditors.get(a.metaData.packageName);
                                        if (packageEditor != null) {
                                            packageEditor.reload();
                                        }
                                    }
                                };
                rv.setCheckedInCommand( command );
                rv.setArchiveCommand( command );
View Full Code Here

    if (!showIfOpen(uuid)) {
      LoadingPopup.showMessage(constants.LoadingPackageInformation());
      RepositoryServiceFactory.getService().loadPackageConfig(uuid, new GenericCallback<PackageConfigData>() {
        public void onSuccess(PackageConfigData conf) {
          PackageEditor ed = new PackageEditor(conf, new Command() {
            public void execute() {
              close(uuid);
            }
          }, refPackageList, new EditItemEvent() {
            public void open(String uuid) {
View Full Code Here

                                                ClientFactory clientFactory,
                                                EventBus eventBus,
                                                boolean historicalReadOnly,
                                                Command refreshCommand) {
        if ( packageConfigData.getFormat().equals( "package" ) ) {
            return new PackageEditor(
                                      packageConfigData,
                                      clientFactory,
                                      eventBus,
                                      historicalReadOnly,
                                      refreshCommand );
        } else if ( packageConfigData.getFormat().equals( "soaservice" ) ) {
            return new SOAServiceEditor(
                                         packageConfigData,
                                         clientFactory,
                                         eventBus,
                                         historicalReadOnly,
                                         refreshCommand );
        } else {
            //default:
            return new PackageEditor(
                                      packageConfigData,
                                      clientFactory,
                                      eventBus,
                                      historicalReadOnly,
                                      refreshCommand );
View Full Code Here

                    }

                    private Command createCheckInAndArchiveCommandForRuleViewer(final RuleAsset ruleAsset) {
                        Command command = new Command() {
                            public void execute() {
                                PackageEditor packageEditor = explorerViewCenterPanel.getOpenedPackageEditors().get( ruleAsset.metaData.packageName );
                                if ( packageEditor != null ) {
                                    packageEditor.reload();
                                }
                            }
                        };
                        return command;
                    }
View Full Code Here

        if ( !explorerViewCenterPanel.showIfOpen( uuid ) ) {
            LoadingPopup.showMessage( constants.LoadingPackageInformation() );
            RepositoryServiceFactory.getService().loadPackageConfig( uuid,
                                                                     new GenericCallback<PackageConfigData>() {
                                                                         public void onSuccess(PackageConfigData conf) {
                                                                             PackageEditor ed = new PackageEditor( conf,
                                                                                                                   new Command() {
                                                                                                                       public void execute() {
                                                                                                                           explorerViewCenterPanel.close( uuid );
                                                                                                                       }
                                                                                                                   },
View Full Code Here

                                                ClientFactory clientFactory,
                                                EventBus eventBus,
                                                boolean historicalReadOnly,
                                                Command refreshCommand) {
        if ( packageConfigData.getFormat().equals( "package" ) ) {
            return new PackageEditor(
                                      packageConfigData,
                                      clientFactory,
                                      eventBus,
                                      historicalReadOnly,
                                      refreshCommand );
        } else if ( packageConfigData.format.equals( "soaservice" ) ) {
            return new SOAServiceEditor(
                                         packageConfigData,
                                         clientFactory,
                                         eventBus,
                                         historicalReadOnly,
                                         refreshCommand );
        } else {
            //default:
            return new PackageEditor(
                                      packageConfigData,
                                      clientFactory,
                                      eventBus,
                                      historicalReadOnly,
                                      refreshCommand );
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.packages.PackageEditor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.