forked from JetBrains/intellij-community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Platform: disabled image interpolation on resize in the viewer (IDEA-…
…98635)
- Loading branch information
Showing
5 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
|
||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.actionSystem.ToggleAction; | ||
import com.intellij.openapi.project.DumbAware; | ||
import org.intellij.images.editor.ImageEditor; | ||
import org.intellij.images.editor.actionSystem.ImageEditorActionUtil; | ||
|
||
|
@@ -26,7 +27,7 @@ | |
* @author <a href="mailto:[email protected]">Alexey Efimov</a> | ||
* @see ImageEditor#setGridVisible | ||
*/ | ||
public final class ToggleGridAction extends ToggleAction { | ||
public final class ToggleGridAction extends ToggleAction implements DumbAware { | ||
public boolean isSelected(AnActionEvent e) { | ||
ImageEditor editor = ImageEditorActionUtil.getValidEditor(e); | ||
return editor != null && editor.isGridVisible(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
|
||
import com.intellij.openapi.actionSystem.AnAction; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.project.DumbAware; | ||
import org.intellij.images.editor.ImageEditor; | ||
import org.intellij.images.editor.ImageZoomModel; | ||
import org.intellij.images.editor.actionSystem.ImageEditorActionUtil; | ||
|
@@ -27,7 +28,7 @@ | |
* @author <a href="mailto:[email protected]">Alexey Efimov</a> | ||
* @see ImageEditor#getZoomModel | ||
*/ | ||
public final class ZoomInAction extends AnAction { | ||
public final class ZoomInAction extends AnAction implements DumbAware { | ||
public void actionPerformed(AnActionEvent e) { | ||
ImageEditor editor = ImageEditorActionUtil.getValidEditor(e); | ||
if (editor != null) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
|
||
import com.intellij.openapi.actionSystem.AnAction; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.project.DumbAware; | ||
import org.intellij.images.editor.ImageEditor; | ||
import org.intellij.images.editor.ImageZoomModel; | ||
import org.intellij.images.editor.actionSystem.ImageEditorActionUtil; | ||
|
@@ -27,7 +28,7 @@ | |
* @author <a href="mailto:[email protected]">Alexey Efimov</a> | ||
* @see ImageEditor#getZoomModel | ||
*/ | ||
public final class ZoomOutAction extends AnAction { | ||
public final class ZoomOutAction extends AnAction implements DumbAware { | ||
public void actionPerformed(AnActionEvent e) { | ||
ImageEditor editor = ImageEditorActionUtil.getValidEditor(e); | ||
if (editor != null) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters