Examples of NavAddressMethod


Examples of org.openquark.gems.client.navigator.NavAddress.NavAddressMethod

     * entity with the given address. Does nothing if no updates are required.
     * @param address the address of the entity whose metadata changed
     */
    private void updateInputNames(NavAddress address) {

        NavAddressMethod method = address.getMethod();
       
        if (method != NavAddress.FUNCTION_METHOD &&
            method != NavAddress.CLASS_METHOD_METHOD &&
            method != NavAddress.DATA_CONSTRUCTOR_METHOD) {
           
View Full Code Here

Examples of org.openquark.gems.client.navigator.NavAddress.NavAddressMethod

            @Override
            public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
               
                NavAddress address = NavAddress.getAddress((CALFeatureName) value);
                NavAddressMethod method = address.getMethod();
                NavFrameOwner owner = getEditorSection().getEditorPanel().getNavigatorOwner();
                ScopedEntityNamingPolicy namingPolicy = new UnqualifiedUnlessAmbiguous(owner.getPerspective().getWorkingModuleTypeInfo());
               
                String text = NavAddressHelper.getDisplayText(owner, address, namingPolicy);
                Icon icon = null;
View Full Code Here

Examples of org.openquark.gems.client.navigator.NavAddress.NavAddressMethod

     * null if there is no metadata associated with the address
     */
    public static CALFeatureMetadata getMetadata(NavFrameOwner owner, NavAddress address) {
       
        CALFeatureMetadata metadata = null;
        NavAddressMethod method = address.getMethod();

        if (method == NavAddress.WORKSPACE_METHOD || method == NavAddress.SEARCH_METHOD) {
            return null;
           
        } else if (method == NavAddress.COLLECTOR_METHOD) {
View Full Code Here

Examples of org.openquark.gems.client.navigator.NavAddress.NavAddressMethod

     * @param metadata the metadata to save
     * @return true if save successful, false otherwise
     */
    public static boolean saveMetadata(NavFrameOwner owner, NavAddress address, CALFeatureMetadata metadata) {

        NavAddressMethod method = address.getMethod();
       
        if (method == NavAddress.WORKSPACE_METHOD || method == NavAddress.SEARCH_METHOD) {
            return false;
           
        } else if (address.getParameter(NavAddress.ARGUMENT_PARAMETER) != null) {
View Full Code Here

Examples of org.openquark.gems.client.navigator.NavAddress.NavAddressMethod

     * @param metadata the metadata to validate
     * @return true if the metadata exists and was successfully validated, false otherwise
     */
    private static boolean isMetadataValid(NavFrameOwner owner, NavAddress address, CALFeatureMetadata metadata) {
       
        NavAddressMethod method = address.getMethod();
       
        if (method == NavAddress.FUNCTION_METHOD ||
            method == NavAddress.CLASS_METHOD_METHOD ||
            method == NavAddress.DATA_CONSTRUCTOR_METHOD) {

View Full Code Here

Examples of org.openquark.gems.client.navigator.NavAddress.NavAddressMethod

     * @return string array with the strings for the type pieces or an empty array
     * if the address does not point to an entity with a TypeExpr
     */
    public static String[] getTypeStrings(NavFrameOwner owner, NavAddress address, ScopedEntityNamingPolicy namingPolicy) {
       
        NavAddressMethod method = address.getMethod();
       
        if (method == NavAddress.CLASS_METHOD_METHOD ||
            method == NavAddress.FUNCTION_METHOD ||
            method == NavAddress.DATA_CONSTRUCTOR_METHOD) {

View Full Code Here

Examples of org.openquark.gems.client.navigator.NavAddress.NavAddressMethod

     * @return the display text for this address
     */
    public static String getDisplayText(NavFrameOwner owner, NavAddress address, ScopedEntityNamingPolicy namingPolicy) {

        CALFeatureMetadata metadata = getMetadata(owner, address);
        NavAddressMethod method = address.getMethod();

        // If this feature has no metadata, then there is nothing
        // sensible that we can say about it.  Just return the
        // raw text.
        if (metadata == null) {
View Full Code Here

Examples of org.openquark.gems.client.navigator.NavAddress.NavAddressMethod

    /**
     * @return the string to use for the type label
     */
    private String getTypeString() {
       
        NavAddressMethod method = address.getMethod();
       
        if (address.getParameter(NavAddress.ARGUMENT_PARAMETER) != null) {
           
            if (method == NavAddress.INSTANCE_METHOD_METHOD) {
                NavAddress parentAddress = NavAddress.getAddress(address.toFeatureName()); // this strips out the &argument=n parameter
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.