Search in sources :

Example 6 with Options

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

the class ImagesConfigurable method propertyChange.

public void propertyChange(PropertyChangeEvent evt) {
    Options options = OptionsManager.getInstance().getOptions();
    Options uiOptions = myComponent.getOptions();
    setModified(!options.equals(uiOptions));
}
Also used : Options(org.intellij.images.options.Options)

Example 7 with Options

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

the class ImagesConfigurable method disposeUIResources.

public void disposeUIResources() {
    if (myComponent != null) {
        Options options = OptionsManager.getInstance().getOptions();
        options.removePropertyChangeListener(this);
        myComponent.getOptions().removePropertyChangeListener(this);
        myComponent = null;
    }
}
Also used : Options(org.intellij.images.options.Options)

Example 8 with Options

use of org.intellij.images.options.Options 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

Options (org.intellij.images.options.Options)8 ExecutionException (com.intellij.execution.ExecutionException)1 GeneralCommandLine (com.intellij.execution.configurations.GeneralCommandLine)1 Project (com.intellij.openapi.project.Project)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 BufferedImage (java.awt.image.BufferedImage)1 File (java.io.File)1 ImageDocument (org.intellij.images.editor.ImageDocument)1 ImageZoomModel (org.intellij.images.editor.ImageZoomModel)1 ImageFileTypeManager (org.intellij.images.fileTypes.ImageFileTypeManager)1 EditorOptions (org.intellij.images.options.EditorOptions)1 ExternalEditorOptions (org.intellij.images.options.ExternalEditorOptions)1 ZoomOptions (org.intellij.images.options.ZoomOptions)1