Package org.clarent.ivyidea.exception.ui

Examples of org.clarent.ivyidea.exception.ui.LinkBehavior


    private void showSimpleErrorDialog(String title, IvyIdeaException exception) {
        IvyIdeaExceptionDialog.showModalDialog(title, exception, myProject);
    }

    private void showIvySettingsNotFoundErrorDialog(IvySettingsNotFoundException exception) {
        LinkBehavior linkBehavior = null;
        // TODO: For now I can only activate the link on project settings errors...
        //       Currently I don't know how to open the facet setting from the code...
        //       if only the facet config was a Configurable instance!
        if (exception.getConfigLocation() == IvySettingsNotFoundException.ConfigLocation.Project) {
            linkBehavior = new LinkBehavior(
                    "Open " + exception.getConfigLocation() + " settings for " + exception.getConfigName() + "...",
                    new LinkListener() {
                        public void linkSelected(LinkLabel linkLabel, Object o) {
                            Configurable component = project.getComponent(IvyIdeaProjectSettingsComponent.class);
                            ShowSettingsUtil.getInstance().editConfigurable(project, component);
View Full Code Here

TOP

Related Classes of org.clarent.ivyidea.exception.ui.LinkBehavior

Copyright © 2018 www.massapicom. 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.