Package org.openquark.gems.client.valueentry

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


                // Add to the list of active entry panels
                valueEditorHierarchyManager.addTopValueEditor(editor);

                // Update the context and editor map
                editor.setContext(new ValueEditorContext() {
                    public TypeExpr getLeastConstrainedTypeExpr() {
                        return inputPart.getType();
                    }
                });
                inputToEditorMap.put(inputPart, editor);
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public ValueEditorContext getValueEditorContext(final ValueGem valueGem) {
        return new ValueEditorContext() {
            public TypeExpr getLeastConstrainedTypeExpr() {
                return gemCutter.getTableTop().getGemGraph().getLeastConstrainedValueType(valueGem, gemCutter.getTypeCheckInfo());
            }
        };
    }
View Full Code Here

                    tableTop.getDisplayedGem(valueGem).setLocation(newPoint);
                }
            });
   
            // Set the vep's context for type switching.
            valueEntryPanel.setContext(new ValueEditorContext() {
                public TypeExpr getLeastConstrainedTypeExpr() {
                    return tableTop.getGemGraph().getLeastConstrainedValueType(valueGem, tableTop.getTypeCheckInfo());
                }
            });
           
View Full Code Here

TOP

Related Classes of org.openquark.gems.client.valueentry.ValueEditorContext

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.