mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
cleanup
GitOrigin-RevId: 595e9072fed2091c2bc9223170ff4007d1cbaa04
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f7bd986c87
commit
217c9ba71f
@@ -913,9 +913,7 @@ open class ToolWindowManagerImpl(val project: Project) : ToolWindowManagerEx(),
|
||||
init((WindowManager.getInstance() as WindowManagerImpl).allocateFrame(project))
|
||||
}
|
||||
|
||||
if (LOG.isDebugEnabled) {
|
||||
LOG.debug("enter: installToolWindow($task)")
|
||||
}
|
||||
LOG.debug { "enter: installToolWindow($task)" }
|
||||
|
||||
ApplicationManager.getApplication().assertIsDispatchThread()
|
||||
if (idToEntry.containsKey(task.id)) {
|
||||
|
||||
@@ -1,18 +1,4 @@
|
||||
/*
|
||||
* 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.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.byteCodeViewer;
|
||||
|
||||
import com.intellij.codeInsight.lookup.LookupManager;
|
||||
@@ -49,10 +35,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* @author anna
|
||||
*/
|
||||
public class ShowByteCodeAction extends AnAction {
|
||||
final class ShowByteCodeAction extends AnAction {
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(false);
|
||||
@@ -98,7 +81,7 @@ public class ShowByteCodeAction extends AnAction {
|
||||
|
||||
@Override
|
||||
public void run(@NotNull ProgressIndicator indicator) {
|
||||
if (ProjectRootManager.getInstance(project).getFileIndex().isInContent(virtualFile) &&
|
||||
if (ProjectRootManager.getInstance(project).getFileIndex().isInContent(virtualFile) &&
|
||||
isMarkedForCompilation(project, virtualFile)) {
|
||||
myErrorTitle = "Class File May Be Out-of-Date";
|
||||
}
|
||||
@@ -121,6 +104,7 @@ public class ShowByteCodeAction extends AnAction {
|
||||
Messages.showErrorDialog(project, "Unable to parse class file for '" + psiElementTitle + "'.", "Bytecode not Found");
|
||||
return;
|
||||
}
|
||||
|
||||
final ByteCodeViewerComponent component = new ByteCodeViewerComponent(project);
|
||||
component.setText(myByteCode, targetElement);
|
||||
Processor<JBPopup> pinCallback = popup -> {
|
||||
@@ -129,7 +113,6 @@ public class ShowByteCodeAction extends AnAction {
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
if (myErrorTitle != null) {
|
||||
JLabel errorLabel = new JLabel(myErrorTitle);
|
||||
Color color = EditorColorsManager.getInstance().getGlobalScheme().getColor(EditorColors.NOTIFICATION_BACKGROUND);
|
||||
|
||||
Reference in New Issue
Block a user