Tools Details Style Only


public class MyTool implements Tool ... {

    String style = "";
     ...

    public void start() {
        ...

        // Save the current style set in the console
        style = properties.getProperty(VConsoleProperties.ICONSTYLE);

        // Since we're only allowing one view, we need to disable
        // style menu items, so user can't change style
        properties.setProperty(VConsoleProperties.ICONVIEWSENABLED,
                  VConsoleProperties.FALSE);

        // Set style property for Details only
        properties.setProperty(VConsoleProperties.ICONSTYLE,
                  VConsoleProperties.DETAILS);
        ...
    }

    public void stop() {
        ...

        // Reset style back to original setting
        properties.setProperty(VConsoleProperties.ICONSTYLE, style);

        ...
    }

    ...