Examples of ValueEditorContext


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

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

    /**
     * {@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

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

                    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
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.