2021-07-30 03:28:10 +00:00
|
|
|
package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist;
|
2021-07-27 07:26:38 +00:00
|
|
|
|
2021-08-26 21:59:07 +00:00
|
|
|
import java.awt.event.ActionEvent;
|
|
|
|
import javax.swing.AbstractAction;
|
2021-07-27 07:26:38 +00:00
|
|
|
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
2021-07-30 03:28:10 +00:00
|
|
|
import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem;
|
|
|
|
import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType;
|
2021-07-27 10:18:21 +00:00
|
|
|
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
|
2021-07-27 05:43:36 +00:00
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite *
|
|
|
|
* Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Konloch
|
|
|
|
* @since 7/26/2021
|
|
|
|
*/
|
2021-07-27 07:26:38 +00:00
|
|
|
public class Expand extends ContextMenuItem
|
2021-07-27 05:43:36 +00:00
|
|
|
{
|
2021-07-27 07:26:38 +00:00
|
|
|
public Expand()
|
2021-07-27 05:43:36 +00:00
|
|
|
{
|
2021-07-30 03:28:10 +00:00
|
|
|
super(ContextMenuType.DIRECTORY, ((tree, selPath, result, menu) ->
|
2021-12-19 23:24:17 +00:00
|
|
|
menu.add(new AbstractAction(TranslatedStrings.EXPAND.toString())
|
|
|
|
{
|
|
|
|
@Override
|
|
|
|
public void actionPerformed(ActionEvent e)
|
|
|
|
{
|
|
|
|
BytecodeViewer.viewer.resourcePane.expandAll(tree, selPath, true);
|
|
|
|
}
|
|
|
|
})));
|
2021-07-27 05:43:36 +00:00
|
|
|
}
|
|
|
|
}
|