Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 204548 Details for
Bug 359489
TitleAreaDialog has a gap below the image in Firefox 6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Modified source file in "RAP Application with a view" Template
ApplicationActionBarAdvisor.java (text/plain), 2.23 KB, created by
Arvinder Birdi
on 2011-10-04 15:59:44 EDT
(
hide
)
Description:
Modified source file in "RAP Application with a view" Template
Filename:
MIME Type:
Creator:
Arvinder Birdi
Created:
2011-10-04 15:59:44 EDT
Size:
2.23 KB
patch
obsolete
>package org.example.rap.view; > >import org.eclipse.jface.action.Action; >import org.eclipse.jface.action.IMenuManager; >import org.eclipse.jface.action.MenuManager; >import org.eclipse.jface.dialogs.TitleAreaDialog; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.ui.IWorkbenchActionConstants; >import org.eclipse.ui.IWorkbenchWindow; >import org.eclipse.ui.PlatformUI; >import org.eclipse.ui.actions.ActionFactory; >import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction; >import org.eclipse.ui.application.ActionBarAdvisor; >import org.eclipse.ui.application.IActionBarConfigurer; > >/** > * Creates, adds and disposes actions for the menus and action bars of > * each workbench window. > */ >public class ApplicationActionBarAdvisor extends ActionBarAdvisor { > > public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { > super(configurer); > } > > // Actions - important to allocate these only in makeActions, and then use > // them in the fill methods. This ensures that the actions aren't recreated > // in the fill methods. > private IWorkbenchAction exitAction; > private Action defectAction; > > @Override > protected void makeActions(IWorkbenchWindow window) { > // Creates the actions and registers them. Registering also > // provides automatic disposal of the actions when the window is closed. > exitAction = ActionFactory.QUIT.create(window); > > defectAction = new Action("defect") > { > @Override > public void run() > { > > Shell activeShell = PlatformUI.getWorkbench().getDisplay().getActiveShell(); > > TitleAreaDialog dialog = new TitleAreaDialog(activeShell); > dialog.create(); > > // dialog.setTitle("The Title"); > dialog.setMessage("A message."); > > dialog.open(); > } > }; > defectAction.setId("defect"); > > register(exitAction); > register(defectAction); > } > > @Override > protected void fillMenuBar(IMenuManager menuBar) { > MenuManager fileMenu > = new MenuManager("&File",IWorkbenchActionConstants.M_FILE); > menuBar.add(fileMenu); > fileMenu.add(exitAction); > fileMenu.add(defectAction); > } > > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 359489
: 204548 |
204549
|
204550