Examples of ValueEditorManager


Examples of org.apache.directory.studio.valueeditors.ValueEditorManager

     */
    public ValueEditorManager getValueEditorManager( TableViewer viewer )
    {
        if ( valueEditorManager == null )
        {
            valueEditorManager = new ValueEditorManager( viewer.getTable() );
        }
        return valueEditorManager;
    }
View Full Code Here

Examples of org.apache.directory.studio.valueeditors.ValueEditorManager

        this.searchResultEditor = searchResultEditor;
        searchResultEditorActionMap = new HashMap<String, SearchResultEditorActionProxy>();

        TableViewer viewer = searchResultEditor.getMainWidget().getViewer();
        SearchResultEditorCursor cursor = searchResultEditor.getConfiguration().getCursor( viewer );
        ValueEditorManager valueEditorManager = searchResultEditor.getConfiguration().getValueEditorManager( viewer );

        showDNAction = new ShowDNAction();
        showLinksAction = new ShowLinksAction();
        showDecoratedValuesAction = new ShowDecoratedValuesAction();
        openSearchResultEditorPreferencePage = new OpenSearchResultEditorPreferencePage();
        showQuickFilterAction = new ShowQuickFilterAction( searchResultEditor.getMainWidget().getQuickFilterWidget() );

        openBestValueEditorActionProxy = new SearchResultEditorActionProxy( cursor, new OpenBestEditorAction( viewer,
            cursor, valueEditorManager, this ) );
        openDefaultValueEditorActionProxy = new SearchResultEditorActionProxy( cursor, new OpenDefaultEditorAction(
            viewer, cursor, valueEditorManager, openBestValueEditorActionProxy, this ) );
        IValueEditor[] valueEditors = searchResultEditor.getConfiguration().getValueEditorManager( viewer )
            .getAllValueEditors();
        openValueEditorActionProxies = new SearchResultEditorActionProxy[valueEditors.length];
        for ( int i = 0; i < openValueEditorActionProxies.length; i++ )
        {
            openValueEditorActionProxies[i] = new SearchResultEditorActionProxy( cursor, new OpenEditorAction( viewer,
                cursor, valueEditorManager, valueEditors[i], this ) );
        }
        openEntryValueEditorActionProxy = new SearchResultEditorActionProxy( cursor, new OpenEntryEditorAction( viewer,
            cursor, valueEditorManager, valueEditorManager.getEntryValueEditor(), this ) );
        openValueEditorPreferencesAction = new ValueEditorPreferencesAction();

        searchResultEditorActionMap.put( copyTableAction, new SearchResultEditorActionProxy( cursor,
            new CopyEntryAsCsvAction( CopyEntryAsCsvAction.MODE_TABLE ) ) );
        searchResultEditorActionMap.put( refreshSearchAction, new SearchResultEditorActionProxy( cursor,
View Full Code Here

Examples of org.apache.directory.studio.valueeditors.ValueEditorManager

     */
    public ValueEditorManager getValueEditorManager( TreeViewer viewer )
    {
        if ( valueEditorManager == null )
        {
            valueEditorManager = new ValueEditorManager( viewer.getTree() );
        }

        return valueEditorManager;
    }
View Full Code Here

Examples of org.apache.directory.studio.valueeditors.ValueEditorManager

        super.init( site, input );

        ConnectionEventRegistry.addConnectionUpdateListener( this, ConnectionUIPlugin.getDefault().getEventRunner() );
        getSite().getPage().addPartListener( this );

        this.valueEditorManager = new ValueEditorManager( getSite().getShell() );
    }
View Full Code Here

Examples of org.apache.directory.studio.valueeditors.ValueEditorManager

    public EditLdifAttributeAction( LdifEditor editor )
    {
        super( "Edit Attribute Description", editor );
        super.setActionDefinitionId( BrowserCommonConstants.ACTION_ID_EDIT_ATTRIBUTE_DESCRIPTION );

        manager = new ValueEditorManager( editor.getSite().getShell() );
    }
View Full Code Here

Examples of org.openquark.gems.client.valueentry.ValueEditorManager

                }                           
            } else {
                specializedInputTypes = TypeExpr.copyTypeExprs(inputTypes);
            }

            ValueEditorManager valueEditorManager = gemCutter.getValueEditorManager();
            ValueEditorDirector valueEditorDirector = valueEditorManager.getValueEditorDirector();

            Map<PartInput, ValueEditor> inputToEditorMap = new LinkedHashMap<PartInput, ValueEditor>();

            // Step through args, create a new value input panel for each, with the correct value type
            for (int i = 0; i < numArgs; i++) {
View Full Code Here

Examples of org.openquark.gems.client.valueentry.ValueEditorManager

        // TODOEL: the various runners should create their own builder helpers.
        //   Unfortunately we still rely on the value editor manager for vnbh initialization.
        ValueNodeBuilderHelper valueBuilderHelper = new ValueNodeBuilderHelper(perspective);
        ValueNodeBuilderHelper displayedGemBuilderHelper = new ValueNodeBuilderHelper(perspective);
       
        valueEditorManager = new ValueEditorManager(displayedGemBuilderHelper, getWorkspace(), typeColours, getTypeCheckInfo());
        displayedGemRunner = new DisplayedGemRunner(workspaceManager, this);
        tableTopEditorHierarchyManager = new ValueEditorHierarchyManager(valueEditorManager, getTableTopPanel());
        outputPanelHierarchyManager = new ValueEditorHierarchyManager(valueEditorManager, getLayeredPane());

        valueRunner.setValueNodeBuilderHelper(valueBuilderHelper);
View Full Code Here

Examples of org.openquark.gems.client.valueentry.ValueEditorManager

        // Lazily create the value panel on demand.
        if (!valueGemPanelMap.containsKey(valueGem)) {
           
            final ValueEditorHierarchyManager valueEditorHierarchyManager = gemCutter.getValueEditorHierarchyManager();
            ValueEditorManager valueEditorManager = valueEditorHierarchyManager.getValueEditorManager();
            ValueNode valueNode = valueGem.getValueNode();
   
            // Create the value entry panel.
            final ValueEntryPanel valueEntryPanel =
                (ValueEntryPanel)valueEditorManager.getValueEditorDirector().getRootValueEditor(valueEditorHierarchyManager,
                                                                                                valueNode, null, 0, null);
           
            // Add it to the map.
            valueGemPanelMap.put(valueGem, valueEntryPanel);
           
View Full Code Here

Examples of org.openquark.gems.client.valueentry.ValueEditorManager

                   
                    // Check if a value gem can be connected.
                    // They get special treatment since autoburning doesn't apply to value gems.
                   
                    ModuleTypeInfo currentModuleTypeInfo = tableTop.getCurrentModuleTypeInfo();
                    ValueEditorManager valueEditorManager = gemCutter.getValueEditorManager();
                   
                    if (!valueEditorManager.canInputDefaultValue(sinkPart.getType())) {
                        setCursor(connectNoParkCursor);
                       
                    } else if (GemGraph.isCompositionConnectionValid(sourcePart, sinkPart, currentModuleTypeInfo)) {
                        setCursor(connectCursor);
                       
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.