public void createPlugInContext( JComponent c, String id, ImageIcon icon, String[] editors, WorkbenchContext context) { this.component = c; this.id = id; context .getWorkbench() .getFrame() .getViews() .add(new ViewDecorator(this, id, icon, (editors == null) ? new String[0] : editors)); if (plugInContext == null) { plugInContext = context.createPlugInContext(this); } if (!context.getViewsPlugInObservers().contains(this)) { context.getViewsPlugInObservers().add(this); } }