Examples of TabOpener


Examples of org.drools.guvnor.client.util.TabOpener

        if ( item.getUserObject() instanceof PackageConfigData ) {
            PackageConfigData pc = (PackageConfigData) item.getUserObject();
            String id = itemWidgets.get( item );

            TabOpener opener = TabOpener.getInstance();

            if ( ExplorerNodeConfig.TEST_SCENARIOS_ID.equals( id ) ) {
                opener.openTestScenario( pc.uuid,
                                         pc.name );
            } else if ( ExplorerNodeConfig.ANALYSIS_ID.equals( id ) ) {
                opener.openVerifierView( pc.uuid,
                                         pc.name );
            }
        }
    }
View Full Code Here

Examples of org.drools.guvnor.client.util.TabOpener

            RepositoryServiceFactory.getService().listSnapshots( conf.name,
                                                                 new GenericCallback<SnapshotInfo[]>() {
                                                                     public void onSuccess(SnapshotInfo[] a) {
                                                                         for ( SnapshotInfo snap : a ) {
                                                                             if ( snap.name.equals( snapName ) ) {
                                                                                 TabOpener opener = TabOpener.getInstance();
                                                                                 opener.openSnapshot( snap );
                                                                                 return;
                                                                             }
                                                                         }
                                                                     }
                                                                 } );
View Full Code Here

Examples of org.drools.guvnor.client.util.TabOpener

    }

    protected void launchWizard(String format,
                                String title,
                                boolean showCats) {
        final TabOpener tabOpener = TabOpener.getInstance();

        NewAssetWizard pop = new NewAssetWizard( new OpenItemCommand() {
                                                     public void open(String key) {
                                                         tabOpener.openAsset( key );
                                                     }

                                                     public void open(MultiViewRow[] rows) {
                                                         for ( MultiViewRow row : rows ) {
                                                             tabOpener.openAsset( row.uuid );
                                                         }
                                                     }
                                                 },
                                                 showCats,
                                                 format,
View Full Code Here

Examples of org.drools.guvnor.client.util.TabOpener

    // Show the associated widget in the deck panel
    public void onSelection(SelectionEvent<TreeItem> event) {
        TreeItem item = event.getSelectedItem();
        String widgetID = itemWidgets.get( item );

        TabOpener opener = TabOpener.getInstance();

        if ( widgetID != null ) {
            if ( widgetID.equals( ExplorerNodeConfig.FIND_ID ) ) {
                opener.openFind();
            } else if ( widgetID.equals( ExplorerNodeConfig.INCOMING_ID ) || widgetID.equals( ExplorerNodeConfig.RECENT_EDITED_ID ) || widgetID.equals( ExplorerNodeConfig.RECENT_VIEWED_ID ) ) {
                opener.openInbox( item.getText(),
                                  widgetID );
            } else if ( widgetID.startsWith( ExplorerNodeConfig.STATES_ID ) ) {
                opener.openState( item.getText(),
                                  widgetID );
            } else if ( widgetID.startsWith( ExplorerNodeConfig.CATEGORY_ID ) ) {
                opener.openCategory( item.getText(),
                                     widgetID );
            }
        }
    }
View Full Code Here

Examples of org.drools.guvnor.client.util.TabOpener

        header.add( new HTML( constants.ArchivedItems() ) );

        pf.addHeader( images.backupLarge(),
                      header );

        final TabOpener tabOpener = TabOpener.getInstance();

        OpenItemCommand edit = new OpenItemCommand() {
            public void open(String key) {
                tabOpener.openAsset( key );
            }

            public void open(MultiViewRow[] rows) {
                for ( MultiViewRow row : rows ) {
                    tabOpener.openAsset( row.uuid );
                }
            }
        };
        grid = new AssetItemGrid( edit,
                                  AssetItemGrid.ARCHIVED_RULE_LIST_TABLE_ID,
View Full Code Here

Examples of org.drools.guvnor.client.util.TabOpener

    // Show the associated widget in the deck panel
    public void onSelection(SelectionEvent<TreeItem> event) {
        TreeItem node = event.getSelectedItem();
        Object userObject = node.getUserObject();

        TabOpener opener = TabOpener.getInstance();

        if ( userObject != null ) {
            if ( userObject instanceof PackageConfigData && !((PackageConfigData) userObject).isGlobal() ) {
                PackageConfigData pc = (PackageConfigData) userObject;
                RulePackageSelector.currentlySelectedPackage = pc.name;

                String uuid = pc.uuid;
                opener.openPackageEditor( uuid,
                                          new Command() {
                                              public void execute() {
                                                  // refresh the package tree.
                                                  refreshTree();
                                              }
                                          } );
            } else if ( userObject instanceof String[] ) {
                final String[] formats = (String[]) userObject;
                final PackageConfigData packageConfigData = (PackageConfigData) node.getParentItem().getUserObject();
                RulePackageSelector.currentlySelectedPackage = packageConfigData.name;
                String key = key( formats,
                                  packageConfigData );
                opener.openPackageViewAssets( packageConfigData.uuid,
                                              packageConfigData.name,
                                              key,
                                              formats.length == 0 ? null : Arrays.asList( formats ),
                                              formats.length == 0 ? Boolean.TRUE : null,
                                              node.getText() );
View Full Code Here

Examples of org.drools.guvnor.client.util.TabOpener

        g.addGridRowListener( new GridRowListenerAdapter() {
            public void onRowDblClick(GridPanel grid,
                                      int rowIndex,
                                      EventObject e) {
                String uuid = grid.getSelectionModel().getSelected().getAsString( "uuid" ); //NON-NLS
                TabOpener tabOpener = TabOpener.getInstance();
                tabOpener.openAsset( uuid );
            }
        } );

        g.setWidth( 800 );
        g.setHeight( 600 );
View Full Code Here

Examples of org.drools.guvnor.client.util.TabOpener

                if ( uo instanceof Object[] ) {
                    Object o = ((Object[]) uo)[0];
                    showAssetList( (String[]) o );
                } else if ( uo instanceof SnapshotInfo ) {
                    SnapshotInfo s = (SnapshotInfo) uo;
                    TabOpener tabOpener = TabOpener.getInstance();
                    tabOpener.openPackageEditor( s.uuid, null );
                }
            }
        } );

        return packagesTreeItemPanel;
View Full Code Here

Examples of org.drools.guvnor.client.util.TabOpener

        StringBuilder keyBuilder = new StringBuilder(this.snapInfo.uuid);
        for (String assetType : assetTypes) {
            keyBuilder.append(assetType);
        }

        TabOpener tabOpener = TabOpener.getInstance();
        tabOpener.openSnapshotAssetList( snapInfo.name, snapInfo.uuid, assetTypes, keyBuilder.toString() );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.