Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2014-03-27 11:48:15 +0000
committerLars Vogel2014-03-27 11:48:15 +0000
commit7e26a4a0bc4b7b490bd7ed01366e5114230596ce (patch)
treed4421765ff26797656bfecb1ba255f24da1337f4 /bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java
parent3a3b6e0e3dc59714f0f2f4b7ecd74b21f83cd132 (diff)
downloadeclipse.platform.ui-7e26a4a0bc4b7b490bd7ed01366e5114230596ce.tar.gz
eclipse.platform.ui-7e26a4a0bc4b7b490bd7ed01366e5114230596ce.tar.xz
eclipse.platform.ui-7e26a4a0bc4b7b490bd7ed01366e5114230596ce.zip
Bug 431179 - Add missing @Override and @Deprecate annotations to
org.eclipse.ui.workbench Change-Id: I7a59eb6f206a8687d4c72a748554a969a7d9ef40 Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
Diffstat (limited to 'bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java')
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java
index a2ddee9587e..41e7b337784 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java
@@ -99,6 +99,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.IContributionManager#add(org.eclipse.jface.action
* .IAction)
*/
+ @Override
public void add(IAction action) {
// TODO Auto-generated method stub
@@ -111,6 +112,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.IContributionManager#add(org.eclipse.jface.action
* .IContributionItem)
*/
+ @Override
public void add(IContributionItem item) {
add(topTrim, -1, item);
}
@@ -199,6 +201,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.ICoolBarManager#add(org.eclipse.jface.action
* .IToolBarManager)
*/
+ @Override
public void add(final IToolBarManager toolBarManager) {
if (toolBarManager instanceof ToolBarManager) {
add(new ToolBarContributionItem(toolBarManager));
@@ -212,6 +215,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.IContributionManager#appendToGroup(java.lang
* .String, org.eclipse.jface.action.IAction)
*/
+ @Override
public void appendToGroup(String groupName, IAction action) {
}
@@ -222,6 +226,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.IContributionManager#appendToGroup(java.lang
* .String, org.eclipse.jface.action.IContributionItem)
*/
+ @Override
public void appendToGroup(String groupName, IContributionItem item) {
List<MToolBar> toolBars = modelService
.findElements(window, groupName, MToolBar.class, null);
@@ -243,6 +248,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.internal.provisional.action.ICoolBarManager2#createControl2
* (org.eclipse.swt.widgets.Composite)
*/
+ @Override
public Control createControl2(Composite parent) {
new Exception("CBTTM:createControl2()").printStackTrace(); //$NON-NLS-1$
return null;
@@ -254,6 +260,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* @see
* org.eclipse.jface.internal.provisional.action.ICoolBarManager2#dispose()
*/
+ @Override
public void dispose() {
// TODO Auto-generated method stub
@@ -264,6 +271,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.IContributionManager#find(java.lang.String)
*/
+ @Override
public IContributionItem find(String id) {
List<MToolBar> toolbars = modelService.findElements(window, id, MToolBar.class, null);
if (toolbars.isEmpty()) {
@@ -302,6 +310,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.ICoolBarManager#getContextMenuManager()
*/
+ @Override
public IMenuManager getContextMenuManager() {
new Exception("CBTTM:getContextMenuManager()").printStackTrace(); //$NON-NLS-1$
return null;
@@ -314,6 +323,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.internal.provisional.action.ICoolBarManager2#getControl2
* ()
*/
+ @Override
public Control getControl2() {
new Exception("CBTTM:getControl2()").printStackTrace(); //$NON-NLS-1$
return null;
@@ -324,6 +334,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.IContributionManager#getItems()
*/
+ @Override
public IContributionItem[] getItems() {
ArrayList<IContributionItem> items = new ArrayList<IContributionItem>();
@@ -364,6 +375,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.ICoolBarManager#getLockLayout()
*/
+ @Override
public boolean getLockLayout() {
// TODO Auto-generated method stub
return false;
@@ -374,6 +386,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.IContributionManager#getOverrides()
*/
+ @Override
public IContributionManagerOverrides getOverrides() {
return toolbarOverrides;
}
@@ -383,6 +396,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.ICoolBarManager#getStyle()
*/
+ @Override
public int getStyle() {
// TODO Auto-generated method stub
return 0;
@@ -395,6 +409,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.IContributionManager#insertAfter(java.lang.String
* , org.eclipse.jface.action.IAction)
*/
+ @Override
public void insertAfter(String id, IAction action) {
// TODO Auto-generated method stub
@@ -423,6 +438,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.IContributionManager#insertAfter(java.lang.String
* , org.eclipse.jface.action.IContributionItem)
*/
+ @Override
public void insertAfter(String id, IContributionItem item) {
MToolBar afterElement = getToolBar(id);
if (afterElement == null || getTrim(afterElement) == null)
@@ -441,6 +457,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.IContributionManager#insertBefore(java.lang.
* String, org.eclipse.jface.action.IAction)
*/
+ @Override
public void insertBefore(String id, IAction action) {
}
@@ -451,6 +468,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.IContributionManager#insertBefore(java.lang.
* String, org.eclipse.jface.action.IContributionItem)
*/
+ @Override
public void insertBefore(String id, IContributionItem item) {
MToolBar beforeElement = getToolBar(id);
if (beforeElement == null || getTrim(beforeElement) == null)
@@ -466,6 +484,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.IContributionManager#isDirty()
*/
+ @Override
public boolean isDirty() {
// TODO Auto-generated method stub
return false;
@@ -476,6 +495,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.IContributionManager#isEmpty()
*/
+ @Override
public boolean isEmpty() {
return topTrim.getChildren().isEmpty();
}
@@ -485,6 +505,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.IContributionManager#markDirty()
*/
+ @Override
public void markDirty() {
// TODO Auto-generated method stub
@@ -497,6 +518,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.IContributionManager#prependToGroup(java.lang
* .String, org.eclipse.jface.action.IAction)
*/
+ @Override
public void prependToGroup(String groupName, IAction action) {
// TODO Auto-generated method stub
@@ -509,6 +531,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.IContributionManager#prependToGroup(java.lang
* .String, org.eclipse.jface.action.IContributionItem)
*/
+ @Override
public void prependToGroup(String groupName, IContributionItem item) {
MUIElement gnElement = modelService.find(groupName, window);
if (gnElement instanceof MToolBar) {
@@ -525,6 +548,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* @see
* org.eclipse.jface.internal.provisional.action.ICoolBarManager2#refresh()
*/
+ @Override
public void refresh() {
// TODO Auto-generated method stub
@@ -537,6 +561,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.IContributionManager#remove(org.eclipse.jface
* .action.IContributionItem)
*/
+ @Override
public IContributionItem remove(IContributionItem item) {
final List<MToolBar> children = modelService.findElements(window, null, MToolBar.class,
null);
@@ -574,6 +599,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* @see
* org.eclipse.jface.action.IContributionManager#remove(java.lang.String)
*/
+ @Override
public IContributionItem remove(String id) {
new Exception("CBTTM:remove(String id) " + id).printStackTrace(); //$NON-NLS-1$
return null;
@@ -584,6 +610,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.IContributionManager#removeAll()
*/
+ @Override
public void removeAll() {
new Exception("CBTTM:removeAll").printStackTrace(); //$NON-NLS-1$
}
@@ -595,6 +622,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.internal.provisional.action.ICoolBarManager2#resetItemOrder
* ()
*/
+ @Override
public void resetItemOrder() {
updateAll(true);
}
@@ -606,6 +634,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.action.ICoolBarManager#setContextMenuManager(org.eclipse
* .jface.action.IMenuManager)
*/
+ @Override
public void setContextMenuManager(IMenuManager menuManager) {
// TODO Auto-generated method stub
@@ -618,6 +647,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.internal.provisional.action.ICoolBarManager2#setItems
* (org.eclipse.jface.action.IContributionItem[])
*/
+ @Override
public void setItems(IContributionItem[] newItems) {
new Exception("CBTTM:setItems(IContributionItem[] newItems)").printStackTrace(); //$NON-NLS-1$
}
@@ -627,6 +657,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.ICoolBarManager#setLockLayout(boolean)
*/
+ @Override
public void setLockLayout(boolean value) {
// TODO Auto-generated method stub
@@ -639,6 +670,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* org.eclipse.jface.internal.provisional.action.ICoolBarManager2#setOverrides
* (org.eclipse.jface.action.IContributionManagerOverrides)
*/
+ @Override
public void setOverrides(IContributionManagerOverrides newOverrides) {
this.toolbarOverrides = newOverrides;
// this is required when we need to set the overrides for the
@@ -651,6 +683,7 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
*
* @see org.eclipse.jface.action.IContributionManager#update(boolean)
*/
+ @Override
public void update(boolean force) {
final List<MToolBar> children = modelService.findElements(window, null, MToolBar.class,
null);

Back to the top