當前位置: 首頁>>代碼示例>>Java>>正文


Java NotifyDescriptor.getOptions方法代碼示例

本文整理匯總了Java中org.openide.NotifyDescriptor.getOptions方法的典型用法代碼示例。如果您正苦於以下問題:Java NotifyDescriptor.getOptions方法的具體用法?Java NotifyDescriptor.getOptions怎麽用?Java NotifyDescriptor.getOptions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.openide.NotifyDescriptor的用法示例。


在下文中一共展示了NotifyDescriptor.getOptions方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: notify

import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
    assertNull (options);
    assertNotNull (toReturn);
    options = descriptor.getOptions();
    Object r = toReturn;
    toReturn = null;
    return r;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:9,代碼來源:CloneableEditorUserQuestionAsyncTest.java

示例2: notify

import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
    if (disableTest) {
        return toReturn;
    } else {
        assertNull(options);
        assertNotNull(toReturn);
        options = descriptor.getOptions();
        Object r = toReturn;
        toReturn = null;
        return r;
    }
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:13,代碼來源:DefaultDataObjectHasOpenTest.java

示例3: notify

import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
    IntroduceFieldPanel panel = (IntroduceFieldPanel) descriptor
            .getMessage();

    if (name != null) {
        panel
                .setFieldName(name);
    }

    if (replaceAll != null) {
        panel
                .setReplaceAll(replaceAll);
    }

    if (declareFinal != null) {
        panel
                .setDeclareFinal(declareFinal);
    }

    if (modifiers != null) {
        panel
                .setAccess(modifiers);
    }

    return ok ? descriptor
            .getOptions()[0] : descriptor
            .getOptions()[1];
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:29,代碼來源:IntroduceHintTest.java

示例4: notify

import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
@Override
public Object notify(NotifyDescriptor descriptor) {
    return descriptor.getOptions()[1];
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:5,代碼來源:MultiViewEditorDiscardTest.java

示例5: notify

import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
    // last options allows to close usually
    return descriptor.getOptions()[descriptor.getOptions().length - 1];
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:5,代碼來源:ActivatedDeativatedTest.java

示例6: notify

import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
    assertAWT();
    
    // last options allows to close usually
    return descriptor.getOptions()[descriptor.getOptions().length - 1];
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:7,代碼來源:ShutdownFromAWTTest.java

示例7: notify

import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
@Override
public Object notify(NotifyDescriptor descriptor) {
    return descriptor.getOptions()[0];
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:5,代碼來源:DefaultDataObjectTest.java

示例8: notify

import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
    assertNull("No dialog yet", nd);
    nd = descriptor;
    
    
    Object r = descriptor.getOptions()[toReturn];
    toReturn = -1;
    
    return r;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:11,代碼來源:FeedbackSurveyTest.java


注:本文中的org.openide.NotifyDescriptor.getOptions方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。