1 package org.robsite.extension.rss; 2 import javax.swing.JPanel; 3 import oracle.ide.addin.AbstractCommand; 4 import oracle.ide.docking.DockStation; 5 import oracle.ide.layout.ViewId; 6 7 public class ViewNewsDockableCommand extends AbstractCommand 8 { 9 public ViewNewsDockableCommand() 10 { 11 super( Commands.id( Commands.VIEW_NEWS_DOCKABLE ), NO_CHANGE ); 12 } 13 14 public int doit() 15 { 16 DockStation.getDockStation().setDockableVisible( 17 NewsFeedExtension.VIEW_ID, true 18 ); 19 DockStation.getDockStation().activateDockable( 20 DockStation.getDockStation().getDockable( new ViewId( NewsFeedExtension.VIEW_ID ) ) 21 ); 22 23 return OK; 24 } 25 }