/** Sets the images. */ private void setImages() { GridData buttonLayout = new GridData(); if ("win32".equals(SWT.getPlatform())) { ImageData id = AdichatzApplication.getInstance() .getImage(EngineConstants.ENGINE_BUNDLE, "IMG_TOOL_DELETE.gif") .getImageData(); buttonLayout.widthHint = id.width + 4; buttonLayout.heightHint = id.height + 4; } buttonLayout.grabExcessVerticalSpace = true; if (null != deleteButton) { deleteButton.setImage( AdichatzApplication.getInstance() .getImage(EngineConstants.ENGINE_BUNDLE, "IMG_TOOL_DELETE.gif")); deleteButton.setLayoutData(buttonLayout); } dateChoosertButton.setImage( AdichatzApplication.getInstance() .getImage(EngineConstants.ENGINE_BUNDLE, "IMG_DATECHOOSER.png")); dateChoosertButton.setLayoutData(buttonLayout); }
/* * (non-Javadoc) * * @see org.adichatz.engine.controller.action.ActionController#createControl() */ @Override public void createControl() { listenerKeys = null; action = new AAction() { @Override public void runAction() { AColumnController<T> columnController = tabularController.getRightClickColumnController(); if (null != columnController) { columnController.hide(); } } }; action.setText(getFromEngineBundle("query.hide.column")); action.setToolTipText(getFromEngineBundle("query.hide.column")); action.setImageDescriptor( AdichatzApplication.getInstance() .getImageDescriptor(EngineConstants.ENGINE_BUNDLE, "IMG_HIDE_COLUMN.png")); action.setActionController(this); }