Examples of DialogPage


Examples of org.eclipse.jface.dialogs.DialogPage

        GridData data = new GridData(GridData.FILL_BOTH);
        composite.setLayoutData(data);
        composite.setFont(parent.getFont());

        DialogPage page= new MessageDialogPage((Composite)composite) {
          public void setErrorMessage(String newMessage) {
            super.setErrorMessage(newMessage);
            setButtonEnabledState(IDialogConstants.OK_ID, newMessage == null);
            setButtonEnabledState(APPLY_ID, newMessage == null);
          }
View Full Code Here

Examples of org.springframework.richclient.dialog.DialogPage

        Application app = new Application(new DefaultApplicationLifecycleAdvisor());
        app.setApplicationContext(applicationContext);
    }

    public void testMessageMonitor() {
        DialogPage page = new TestDialogPage();
        TestMessagable monitor = new TestMessagable();
        DialogPageUtils.addMessageMonitor(page, monitor);

        monitor.resetMessageCount();
        page.setMessage(new DefaultMessage("a message"));
        assertEquals("Message text not equal", monitor.getMessage().getMessage(), "a message");

        page.setMessage(new DefaultMessage("another message"));
        assertEquals("Message text not equal", monitor.getMessage().getMessage(), "another message");

        assertEquals("Message count incorrect", 2, monitor.getMessageCount());
    }
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.