This commit is contained in:
Sergey Ignatov
2017-09-06 17:13:29 +03:00
parent fdf6dbcb8c
commit 091fa6a500
5 changed files with 10 additions and 11 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@ public abstract class EditorMacro extends Macro {
}
@Override
public final String expand(DataContext dataContext) throws ExecutionCancelledException {
public final String expand(DataContext dataContext) {
Editor editor = CommonDataKeys.EDITOR.getData(dataContext);
if (editor != null){
return expand(editor);
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@ package com.intellij.ide.macro;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.NonNls;
@@ -86,7 +85,7 @@ public abstract class Macro {
}
@Override
public String expand(DataContext dataContext) throws ExecutionCancelledException {
public String expand(DataContext dataContext) {
return myValue;
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ public class ModuleSdkPathMacro extends Macro {
@Nullable
@Override
public String expand(DataContext dataContext) throws ExecutionCancelledException {
public String expand(DataContext dataContext) {
final Module module = LangDataKeys.MODULE.getData(dataContext);
if (module == null) {
return null;
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,7 +43,7 @@ public final class UnixSeparatorsMacro extends Macro implements SecondQueueExpan
@Nullable
@Override
public String expand(DataContext dataContext) throws ExecutionCancelledException {
public String expand(DataContext dataContext) {
return null;
}
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -44,7 +44,7 @@ public class InterpreterDirectoryMacro extends Macro {
@Nullable
@Override
public String expand(DataContext dataContext) throws ExecutionCancelledException {
public String expand(DataContext dataContext) {
Module module = LangDataKeys.MODULE.getData(dataContext);
if (module == null) {
Project project = CommonDataKeys.PROJECT.getData(dataContext);