mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
some debugger actions added as transparent
This commit is contained in:
@@ -40,7 +40,7 @@ import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
|
||||
public class ExportThreadsAction extends AnAction {
|
||||
public class ExportThreadsAction extends AnAction implements AnAction.TransparentUpdate {
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
Project project = PlatformDataKeys.PROJECT.getData(e.getDataContext());
|
||||
if (project == null) {
|
||||
|
||||
@@ -45,7 +45,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class ThreadDumpAction extends AnAction {
|
||||
public class ThreadDumpAction extends AnAction implements AnAction.TransparentUpdate {
|
||||
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
final Project project = PlatformDataKeys.PROJECT.getData(e.getDataContext());
|
||||
|
||||
@@ -20,13 +20,14 @@ import com.intellij.execution.ExecutionManager;
|
||||
import com.intellij.execution.process.ProcessHandler;
|
||||
import com.intellij.execution.ui.RunContentDescriptor;
|
||||
import com.intellij.execution.ui.RunContentManager;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.actionSystem.PlatformDataKeys;
|
||||
import com.intellij.openapi.project.DumbAwareAction;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class StopAction extends DumbAwareAction {
|
||||
public class StopAction extends DumbAwareAction implements AnAction.TransparentUpdate {
|
||||
public void actionPerformed(final AnActionEvent e) {
|
||||
final ProcessHandler processHandler = getProcessHandler(e);
|
||||
if(processHandler == null) return;
|
||||
|
||||
@@ -73,7 +73,6 @@ public abstract class AnAction {
|
||||
private boolean myWorksInInjected;
|
||||
|
||||
|
||||
private boolean myTransparentUpdate = false;
|
||||
/**
|
||||
* Creates a new action with its text, description and icon set to <code>null</code>.
|
||||
*/
|
||||
@@ -293,14 +292,14 @@ public abstract class AnAction {
|
||||
}
|
||||
|
||||
public boolean isTransparentUpdate() {
|
||||
return myTransparentUpdate;
|
||||
}
|
||||
|
||||
public void setTransparentUpdate(boolean transparentUpdate) {
|
||||
myTransparentUpdate = transparentUpdate;
|
||||
return this instanceof TransparentUpdate;
|
||||
}
|
||||
|
||||
public boolean isDumbAware() {
|
||||
return this instanceof DumbAware;
|
||||
}
|
||||
|
||||
public interface TransparentUpdate {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ import com.intellij.xdebugger.impl.DebuggerSupport;
|
||||
import com.intellij.xdebugger.impl.breakpoints.ui.BreakpointsConfigurationDialogFactory;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class ViewBreakpointsAction extends AnAction {
|
||||
public class ViewBreakpointsAction extends AnAction implements AnAction.TransparentUpdate {
|
||||
private Object myInitialBreakpoint;
|
||||
|
||||
public ViewBreakpointsAction(){
|
||||
|
||||
+1
-2
@@ -24,12 +24,11 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* @author nik
|
||||
*/
|
||||
public abstract class XDebuggerActionBase extends AnAction {
|
||||
public abstract class XDebuggerActionBase extends AnAction implements AnAction.TransparentUpdate {
|
||||
private boolean myHideDisabledInPopup;
|
||||
|
||||
protected XDebuggerActionBase() {
|
||||
this(false);
|
||||
setTransparentUpdate(true);
|
||||
}
|
||||
|
||||
protected XDebuggerActionBase(final boolean hideDisabledInPopup) {
|
||||
|
||||
Reference in New Issue
Block a user