Java Code Examples for org.openide.NotifyDescriptor#getTitleForType()

The following examples show how to use org.openide.NotifyDescriptor#getTitleForType() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ProfilerDialogs.java    From netbeans with Apache License 2.0 5 votes vote down vote up
/**
 * Create an informational report about the results of a command.
 *
 * @param shortMsg the short message object
 * @param detailsMsg the details message object
 * @see org.openide.NotifyDescriptor#NotifyDescriptor
 */
public MessageWithDetails(final Object shortMsg, final Object detailsMsg, final boolean respectParent) {
    super(shortMsg, NotifyDescriptor.getTitleForType(NotifyDescriptor.INFORMATION_MESSAGE));
    this.detailsMsg = detailsMsg;
    showDetailsButton.setDefaultCapable(false);
    setOptions(new Object[] { OK_OPTION });
    setAdditionalOptions(new Object[] { showDetailsButton });
    setLeaf(!respectParent);
}
 
Example 2
Source File: ProfilerDialogs.java    From netbeans with Apache License 2.0 5 votes vote down vote up
/**
 * Create a report about the results of a command.
 *
 * @param shortMsg     the message object
 * @param detailsMsg the details message object
 * @param messageType the type of message to be displayed
 * @see org.openide.NotifyDescriptor#NotifyDescriptor
 */
public MessageWithDetails(final Object shortMsg, final Object detailsMsg, final int messageType,
                          final boolean respectParent) {
    super(shortMsg, NotifyDescriptor.getTitleForType(messageType));
    this.setMessageType(messageType);
    this.detailsMsg = detailsMsg;
    showDetailsButton.setDefaultCapable(false);
    setOptions(new Object[] { OK_OPTION });
    setAdditionalOptions(new Object[] { showDetailsButton });
    setLeaf(!respectParent);
}
 
Example 3
Source File: ProfilerDialogs.java    From visualvm with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create an informational report about the results of a command.
 *
 * @param shortMsg the short message object
 * @param detailsMsg the details message object
 * @see org.openide.NotifyDescriptor#NotifyDescriptor
 */
public MessageWithDetails(final Object shortMsg, final Object detailsMsg, final boolean respectParent) {
    super(shortMsg, NotifyDescriptor.getTitleForType(NotifyDescriptor.INFORMATION_MESSAGE));
    this.detailsMsg = detailsMsg;
    showDetailsButton.setDefaultCapable(false);
    setOptions(new Object[] { OK_OPTION });
    setAdditionalOptions(new Object[] { showDetailsButton });
    setLeaf(!respectParent);
}
 
Example 4
Source File: ProfilerDialogs.java    From visualvm with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a report about the results of a command.
 *
 * @param shortMsg     the message object
 * @param detailsMsg the details message object
 * @param messageType the type of message to be displayed
 * @see org.openide.NotifyDescriptor#NotifyDescriptor
 */
public MessageWithDetails(final Object shortMsg, final Object detailsMsg, final int messageType,
                          final boolean respectParent) {
    super(shortMsg, NotifyDescriptor.getTitleForType(messageType));
    this.setMessageType(messageType);
    this.detailsMsg = detailsMsg;
    showDetailsButton.setDefaultCapable(false);
    setOptions(new Object[] { OK_OPTION });
    setAdditionalOptions(new Object[] { showDetailsButton });
    setLeaf(!respectParent);
}