
de.funfried.netbeans.plugins.editor.closeleftright.AbstractBaseAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nb-editor-close-left-right Show documentation
Show all versions of nb-editor-close-left-right Show documentation
This plugin helps you to easily close unused or unwanted editor tabs. Instead of either close all tabs
or all tabs except the currently selected you can also close the tabs right or left, the ones either
belong or not belong to the project from the context menu of a selected tab at once or even all tabs
that have not been changed since the last commit to your version control system (Git, SVN and Mercurial
supported).
The newest version!
/**
* 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.
*/
package de.funfried.netbeans.plugins.editor.closeleftright;
import java.util.logging.Logger;
import javax.swing.AbstractAction;
import org.openide.windows.TopComponent;
/**
* Base class for closing actions.
*
* @author bahlef
*/
public abstract class AbstractBaseAction extends AbstractAction {
private static final long serialVersionUID = -9120253952276652530L;
private static final Logger log = Logger.getLogger(AbstractBaseAction.class.getName());
/** the related {@link TopComponent} of this action. */
protected final TopComponent topComponent;
/**
* Constructor of abstract class {@link AbstractBaseAction}.
*
* @param name the name of this action
* @param topComponent the {@link TopComponent}
*/
protected AbstractBaseAction(String name, TopComponent topComponent) {
super(name);
this.topComponent = topComponent;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy