Java Code Examples for org.netbeans.spi.options.OptionsPanelController#isChanged()

The following examples show how to use org.netbeans.spi.options.OptionsPanelController#isChanged() . 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: Model.java    From netbeans with Apache License 2.0 5 votes vote down vote up
boolean isValid () {
    for (OptionsPanelController controller : categoryToController.values()) {
        // if changed (#145569) and not valid
        if (!controller.isValid() && controller.isChanged()) {
            return false;
        }
    }
    return true;
}
 
Example 2
Source File: TabbedController.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public boolean isValid() {
    for (OptionsPanelController c : getControllers()) {
        // if changed (#145569) and not valid
        if (!c.isValid() && c.isChanged()) {
            return false;
        }
    }
    return true;
}
 
Example 3
Source File: TabbedController.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public boolean isChanged() {
    for (OptionsPanelController c : getControllers()) {
        if (c.isChanged()) {
            return true;
        }
    }
    return false;
}
 
Example 4
Source File: FrameworksPanel.java    From netbeans with Apache License 2.0 5 votes vote down vote up
boolean isChanged() {
    for (OptionsPanelController controller : option2controller.values()) {
        if (controller.isChanged()) {
            return true;
        }
    }
    return false;
}
 
Example 5
Source File: VcsAdvancedOptions.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public boolean isChanged() {
    for (OptionsPanelController c : getControllers()) {
        if (c.isChanged()) {
            return true;
        }
    }
    return false;
}
 
Example 6
Source File: FolderBasedController.java    From netbeans with Apache License 2.0 5 votes vote down vote up
public final synchronized boolean isChanged() {
    Collection<? extends OptionsPanelController> controllers = getMimeType2delegates ().values();
    for(OptionsPanelController c : controllers) {
        if (c.isChanged()) {
            return true;
        }
    }
    return false;
}