APISonar


org.netbeans.modules.websvc.api.support.InvokeOperationCookie.TargetSourceType.JAVA

> org > netbeans > modules > websvc > api > support > InvokeOperationCookie > TargetSourceType > JAVA
org APIs netbeans APIs modules APIs websvc APIs api APIs support APIs InvokeOperationCookie APIs TargetSourceType APIs JAVA APIs

Example 1
private InvokeOperationCookie.TargetSourceType getTargetSourceType(DataObject dObj) {
        EditorCookie cookie = dObj.getCookie(EditorCookie.class);
        if (cookie!=null && "text/x-jsp".equals(cookie.getDocument().getProperty("mimeType"))) { //NOI18N
            return InvokeOperationCookie.TargetSourceType.JSP;
        } else if (cookie!=null && "text/x-java".equals(cookie.getDocument().getProperty("mimeType"))) { //NOI18N
            return InvokeOperationCookie.TargetSourceType.JAVA;
        }
        return InvokeOperationCookie.TargetSourceType.UNKNOWN;
    }