org.eclipse.ui.texteditor.StatusLineContributionItem Java Examples
The following examples show how to use
org.eclipse.ui.texteditor.StatusLineContributionItem.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommonTextEditorActionContributor.java From APICloud-Studio with GNU General Public License v3.0 | 6 votes |
@Override public void contributeToStatusLine(IStatusLineManager statusLineManager) { commandsMenuContributionItem = new CommandsMenuContributionItem(); statusLineManager.add(commandsMenuContributionItem); super.contributeToStatusLine(statusLineManager); inputPositionStatsContributionItem = new StatusLineContributionItem(ITextEditorActionConstants.STATUS_CATEGORY_INPUT_POSITION, true, 24); IContributionItem[] contributionItems = statusLineManager.getItems(); for (IContributionItem contributionItem : contributionItems) { String id = contributionItem.getId(); if (ITextEditorActionConstants.STATUS_CATEGORY_INPUT_POSITION.equals(id)) { statusLineManager.remove(contributionItem); statusLineManager.add(inputPositionStatsContributionItem); } } }
Example #2
Source File: TLAMultiPageEditorActionBarContributor.java From tlaplus with MIT License | 5 votes |
public TLAMultiPageEditorActionBarContributor() { super(); fContentAssistProposal = new RetargetTextEditorAction(TLAEditorMessages.getResourceBundle(), "ContentAssistProposal."); //$NON-NLS-1$ fContentAssistProposal.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS); fContentAssistTip = new RetargetTextEditorAction(TLAEditorMessages.getResourceBundle(), "ContentAssistTip."); //$NON-NLS-1$ fContentAssistTip.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_CONTEXT_INFORMATION); // status field for the line and column of the cursor cursorPositionStatusField = new StatusLineContributionItem( ITextEditorActionConstants.STATUS_CATEGORY_INPUT_POSITION); }
Example #3
Source File: ModeLineFlasher.java From e4macs with Eclipse Public License 1.0 | 5 votes |
protected StatusLineContributionItem initStatusLineItem() { if (flashItem == null) { setColors(); flashItem = new FlashLineContributionItem(FLASH_ID, true, 83);; } flashItem.setBackground(backs[flashCount % backs.length]); return flashItem; }
Example #4
Source File: AnnotationEditorActionContributor.java From uima-uimaj with Apache License 2.0 | 5 votes |
/** * Contributes the status item to the status line. * * @param statusLineManager the status line manager */ @Override public void contributeToStatusLine(IStatusLineManager statusLineManager) { super.contributeToStatusLine(statusLineManager); mStatusLineModeItem = new StatusLineContributionItem(ID); mStatusLineModeItem.setVisible(true); statusLineManager.add(mStatusLineModeItem); }
Example #5
Source File: StatusItemSupport.java From e4macs with Eclipse Public License 1.0 | votes |
protected abstract StatusLineContributionItem initStatusLineItem();