Search in sources :

Example 1 with EditorOptions

use of org.intellij.images.options.EditorOptions in project intellij-community by JetBrains.

the class EditorOptionsImpl method equals.

public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof EditorOptions)) {
        return false;
    }
    EditorOptions otherOptions = (EditorOptions) obj;
    GridOptions gridOptions = otherOptions.getGridOptions();
    TransparencyChessboardOptions chessboardOptions = otherOptions.getTransparencyChessboardOptions();
    ZoomOptions zoomOptions = otherOptions.getZoomOptions();
    return gridOptions != null && gridOptions.equals(getGridOptions()) && chessboardOptions != null && chessboardOptions.equals(getTransparencyChessboardOptions()) && zoomOptions != null && zoomOptions.equals(getZoomOptions());
}
Also used : GridOptions(org.intellij.images.options.GridOptions) ZoomOptions(org.intellij.images.options.ZoomOptions) EditorOptions(org.intellij.images.options.EditorOptions) TransparencyChessboardOptions(org.intellij.images.options.TransparencyChessboardOptions)

Example 2 with EditorOptions

use of org.intellij.images.options.EditorOptions in project intellij-community by JetBrains.

the class OptionsImpl method equals.

public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof Options)) {
        return false;
    }
    Options otherOptions = (Options) obj;
    EditorOptions editorOptions = otherOptions.getEditorOptions();
    ExternalEditorOptions externalEditorOptions = otherOptions.getExternalEditorOptions();
    return editorOptions != null && editorOptions.equals(getEditorOptions()) && externalEditorOptions != null && externalEditorOptions.equals(getExternalEditorOptions());
}
Also used : EditorOptions(org.intellij.images.options.EditorOptions) Options(org.intellij.images.options.Options) ExternalEditorOptions(org.intellij.images.options.ExternalEditorOptions) EditorOptions(org.intellij.images.options.EditorOptions) ExternalEditorOptions(org.intellij.images.options.ExternalEditorOptions) ExternalEditorOptions(org.intellij.images.options.ExternalEditorOptions)

Aggregations

EditorOptions (org.intellij.images.options.EditorOptions)2 ExternalEditorOptions (org.intellij.images.options.ExternalEditorOptions)1 GridOptions (org.intellij.images.options.GridOptions)1 Options (org.intellij.images.options.Options)1 TransparencyChessboardOptions (org.intellij.images.options.TransparencyChessboardOptions)1 ZoomOptions (org.intellij.images.options.ZoomOptions)1