/** * Constructor. * * @param parent * parent composite * @param keyTree * key tree */ public AbstractI18NEntry(Composite parent, final AbstractMessagesEditor editor, final Locale locale) { super(parent, SWT.NONE); this.editor = editor; this.locale = locale; GridLayout gridLayout = new GridLayout(1, false); gridLayout.horizontalSpacing = 0; gridLayout.verticalSpacing = 0; gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; setLayout(gridLayout); GridData gd = new GridData(GridData.FILL_BOTH); // gd.heightHint = 80; setLayoutData(gd); banner = new CBanner(this, SWT.NONE); Control bannerLeft = new EntryLeftBanner(banner, this);// createBannerLeft(banner); Control bannerRight = new EntryRightBanner(banner, this);// createBannerRight(banner); GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; banner.setLeft(bannerLeft); banner.setRight(bannerRight); // banner.setRightWidth(300); banner.setSimple(false); banner.setLayoutData(gridData); createTextbox(); }
/** * Constructor. * @param parent parent composite * @param keyTree key tree */ public I18NEntry( Composite parent, final MessagesEditor editor, final Locale locale) { super(parent, SWT.NONE); this.editor = editor; this.locale = locale; this.messagesBundleGroup = editor.getBundleGroup(); GridLayout gridLayout = new GridLayout(1, false); gridLayout.horizontalSpacing = 0; gridLayout.verticalSpacing = 0; gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; setLayout(gridLayout); GridData gd = new GridData(GridData.FILL_BOTH); // gd.heightHint = 80; setLayoutData(gd); banner = new CBanner(this, SWT.NONE); Control bannerLeft = new EntryLeftBanner(banner, this);// createBannerLeft(banner); Control bannerRight = new EntryRightBanner(banner, this);// createBannerRight(banner); GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; banner.setLeft(bannerLeft); banner.setRight(bannerRight); // banner.setRightWidth(300); banner.setSimple(false); banner.setLayoutData(gridData); createTextbox(); }