/*
 * Copyright 2014 Patrik Karlsson.
 *
 * 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 se.trixon.toolbox.core.base;

import java.util.ResourceBundle;
import org.openide.windows.TopComponent;

/**
 *
 * @author Patrik Karlsson <patrik@trixon.se>
 */
public abstract class ToolTopComponent extends TopComponent {

    protected static final int TOOLBAR_ICON_SIZE = 24;
    protected ResourceBundle mBundle;
    protected String mToolName;
}

@@ -706,28 +706,109 @@
 ide.
-windows.TopComponent
+awt.StatusDisplayer;%0D%0Aimport org.openide.windows.TopComponent;%0D%0Aimport se.trixon.toolbox.core.Toolbox
 ;%0D%0A%0D
@@ -1029,16 +1029,16 @@
 undle;%0D%0A
-
     prot
@@ -1062,11 +1062,399 @@
 lName;%0D%0A
+    private String mStatus = %22%22;%0D%0A%0D%0A    @Override%0D%0A    protected void componentDeactivated() %7B%0D%0A        super.componentDeactivated();%0D%0A        mStatus = StatusDisplayer.getDefault().getStatusText();%0D%0A        Toolbox.setStatusText(%22%22);%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    protected void componentActivated() %7B%0D%0A        super.componentActivated();%0D%0A        Toolbox.setStatusText(mStatus);%0D%0A    %7D%0D%0A
 %7D%0D%0A

Clear and reset status text.