List of usage examples for org.eclipse.jface.resource ImageDescriptor createFromURL
public static ImageDescriptor createFromURL(URL url)
From source file:eu.geclipse.aws.ec2.ui.wizards.EditAMIAttributesWizardPage.java
License:Open Source License
/** * Create a new {@link EditAMIAttributesWizardPage} by setting the parent aws * vo and the ami under modification./*from ww w . j a v a2 s . c o m*/ * * @param awsVo the parent vo * @param ami the AMI to whos attributes to edit */ public EditAMIAttributesWizardPage(final AWSVirtualOrganization awsVo, final EC2AMIImage ami) { super(EditAMIAttributesWizardPage.WIZARD_PAGE_ID, Messages.getString("EditAMIAttributesWizardPage.page_title"), //$NON-NLS-1$ null); setDescription(MessageFormat.format(Messages.getString("EditAMIAttributesWizardPage.page_description"), //$NON-NLS-1$ ami.getImageId())); URL imgUrl = Activator.getDefault().getBundle().getEntry("icons/wizban/service_wiz.gif"); //$NON-NLS-1$ setImageDescriptor(ImageDescriptor.createFromURL(imgUrl)); this.awsVo = awsVo; this.ami = ami; }
From source file:eu.geclipse.aws.ec2.ui.wizards.GroupPermissionWizardPage.java
License:Open Source License
/** * The constructor creates the {@link WizardPage} and sets title, description * and page image.// w w w . j ava 2s .c om * * @param securityGroup the security group to add the cidr entry to */ public GroupPermissionWizardPage(final GroupDescription securityGroup) { super(GroupPermissionWizardPage.WIZARD_PAGE_ID, Messages.getString("GroupPermissionWizardPage.page_title") + securityGroup.getName(), //$NON-NLS-1$ null); setDescription(Messages.getString("GroupPermissionWizardPage.page_description") //$NON-NLS-1$ + securityGroup.getName()); URL imgUrl = Activator.getDefault().getBundle().getEntry("icons/wizban/security_wiz.gif"); //$NON-NLS-1$ setImageDescriptor(ImageDescriptor.createFromURL(imgUrl)); setPageComplete(false); }
From source file:eu.geclipse.aws.ec2.ui.wizards.SecurityGroupSelectionWizardPage.java
License:Open Source License
/** * Creates the wizard page and sets up the title, description and wizard * image./*ww w.j a va 2 s.c o m*/ * * @param awsAccessId */ protected SecurityGroupSelectionWizardPage(final String awsAccessId) { super(SecurityGroupSelectionWizardPage.WIZARD_PAGE_ID, Messages.getString("SecurityGroupSelectionWizardPage.page_title"), //$NON-NLS-1$ null); setDescription(Messages.getString("SecurityGroupSelectionWizardPage.page_description")); //$NON-NLS-1$ URL imgUrl = Activator.getDefault().getBundle().getEntry("icons/wizban/security_wiz.gif"); //$NON-NLS-1$ setImageDescriptor(ImageDescriptor.createFromURL(imgUrl)); this.awsAccessId = awsAccessId; this.availableGroups = new ArrayList<String>(); this.selectedGroups = new ArrayList<String>(); }
From source file:eu.geclipse.aws.ec2.ui.wizards.SecurityGroupWizardPage.java
License:Open Source License
/** * Creates a new security group wizard page and initiates the title, * description and image icon.//from w w w.j a va 2 s .co m * * @param securityGroup the group to modify * @param awsAccessId the access id to identify the current user */ public SecurityGroupWizardPage(final EC2SecurityGroup securityGroup) { super(SecurityGroupWizardPage.WIZARD_PAGE_ID, Messages.getString("SecurityGroupWizardPage.page_title") + securityGroup.getName(), //$NON-NLS-1$ null); setDescription(Messages.getString("SecurityGroupWizardPage.page_description")); //$NON-NLS-1$ URL imgUrl = Activator.getDefault().getBundle().getEntry("icons/wizban/security_wiz.gif"); //$NON-NLS-1$ setImageDescriptor(ImageDescriptor.createFromURL(imgUrl)); this.securityGroup = securityGroup; }
From source file:eu.geclipse.aws.ec2.ui.wizards.SelectElasticIPWizardPage.java
License:Open Source License
/** * Creates the wizard page with the awsVo providing the aws credentials and * the ec2Instance providing some information about the target ec2 instance. * /*from www .j a v a 2s .c o m*/ * @param awsVo the aws credentials source * @param ec2Instance the ec2 instance to associate */ public SelectElasticIPWizardPage(final AWSVirtualOrganization awsVo, final EC2Instance ec2Instance) { super(SelectElasticIPWizardPage.WIZARD_PAGE_ID, Messages.getString("SelectElasticIPWizardPage.wizard_page_title"), //$NON-NLS-1$ null); setDescription(MessageFormat.format(Messages.getString("SelectElasticIPWizardPage.wizard_page_description"), //$NON-NLS-1$ ec2Instance.getInstanceId())); URL imgUrl = Activator.getDefault().getBundle().getEntry("icons/wizban/service_wiz.gif"); //$NON-NLS-1$ setImageDescriptor(ImageDescriptor.createFromURL(imgUrl)); this.awsVo = awsVo; setPageComplete(false); }
From source file:eu.geclipse.aws.s3.ui.wizards.CreateBucketWizardPage.java
License:Open Source License
/** * Creates a new S3 bucket wizard page.// w w w .j a v a 2s. c o m */ protected CreateBucketWizardPage() { super(CreateBucketWizardPage.WIZARD_PAGE_ID, Messages.getString("CreateBucketWizardPage.page_title"), null); //$NON-NLS-1$ setDescription(Messages.getString("CreateBucketWizardPage.page_description")); //$NON-NLS-1$ URL imgUrl = Activator.getDefault().getBundle().getEntry("icons/wizban/service_wiz.gif"); //$NON-NLS-1$ setImageDescriptor(ImageDescriptor.createFromURL(imgUrl)); setPageComplete(false); }
From source file:eu.geclipse.aws.ui.wizards.AWSAuthTokenWizardPage.java
License:Open Source License
/** * Create a new {@link AWSAuthTokenWizardPage} and provide initial content via * the awsAuthTokenDesc/* w w w.j av a 2 s .c o m*/ * * @param authTokenWizard the parent {@link Wizard} * @param awsAuthTokenDesc the initial {@link AWSAuthTokenDescription} */ protected AWSAuthTokenWizardPage(final AWSAuthTokenWizard authTokenWizard, final AWSAuthTokenDescription awsAuthTokenDesc) { super(AWSAuthTokenWizardPage.WIZARD_PAGE_ID, Messages.getString("AWSAuthTokenWizardPage.wizard_page_title"), //$NON-NLS-1$ null); this.awsAuthTokenDesc = awsAuthTokenDesc; this.authTokenWizard = authTokenWizard; setDescription(Messages.getString("AWSAuthTokenWizardPage.wizard_page_description")); //$NON-NLS-1$ URL imgUrl = Activator.getDefault().getBundle().getEntry("icons/wizban/credentials_wiz.gif"); //$NON-NLS-1$ setImageDescriptor(ImageDescriptor.createFromURL(imgUrl)); }
From source file:eu.geclipse.batch.ui.internal.pages.AdvancedQueueConfigPage.java
License:Open Source License
protected void addFormPageHelp(final ScrolledForm form) { final String href = getHelpResource(); if (href != null) { IToolBarManager manager = form.getToolBarManager(); Action helpAction = new Action("help") { //$NON-NLS-1$ @Override//from w w w .j a v a 2 s .co m public void run() { BusyIndicator.showWhile(form.getDisplay(), new Runnable() { public void run() { PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(href); } }); } }; helpAction.setToolTipText(Messages.getString("QdlEditorPage_HelpToolTip")); //$NON-NLS-1$ URL stageInURL = Activator.getDefault().getBundle().getEntry("icons/help.gif"); //$NON-NLS-1$ this.helpDesc = ImageDescriptor.createFromURL(stageInURL); helpAction.setImageDescriptor(this.helpDesc); manager.add(helpAction); form.updateToolBar(); } }
From source file:eu.geclipse.gvid.internal.views.NewGVidDropDownAction.java
License:Open Source License
@Override public void run() { URL imgUrl = Activator.getDefault().getBundle().getEntry("icons/wizban/newconn_wiz.gif"); //$NON-NLS-1$ Wizard wizard = new Wizard() { @Override/*from w ww . ja v a2 s .c o m*/ public boolean performFinish() { return false; } @Override public void addPages() { ExtPointWizardSelectionListPage page = new ExtPointWizardSelectionListPage( Messages.getString("NewGVidDropDownAction.selectConnectionType"), //$NON-NLS-1$ EXT_ID_NEW_GVID_WIZARD, Messages.getString("NewGVidDropDownAction.title"), //$NON-NLS-1$ Messages.getString("NewGVidDropDownAction.description"), //$NON-NLS-1$ Messages.getString("NewGVidDropDownAction.noConnectionTypes")); //$NON-NLS-1$ page.setInitData(NewGVidDropDownAction.this.gvidView); addPage(page); } }; wizard.setForcePreviousAndNextButtons(true); wizard.setDefaultPageImageDescriptor(ImageDescriptor.createFromURL(imgUrl)); wizard.setWindowTitle(Messages.getString("NewGVidDropDownAction.newGVidSession")); //$NON-NLS-1$ WizardDialog wizardDialog = new WizardDialog(Display.getCurrent().getActiveShell(), wizard); wizardDialog.open(); }
From source file:eu.geclipse.info.ui.GlueInfoViewer.java
License:Open Source License
private void fillLocalToolBar(final IToolBarManager manager) { IAction refreshAction = new Action() { @Override/*ww w .j a v a 2s. co m*/ public void run() { GlueInfoViewer.this.fetchJob.schedule(); } }; refreshAction.setToolTipText(Messages.getString("GlueInfoView.refresh")); //$NON-NLS-1$ URL imgUrl = Activator.getDefault().getBundle().getEntry("icons/elcl16/refresh_nav.gif"); //$NON-NLS-1$ refreshAction.setImageDescriptor(ImageDescriptor.createFromURL(imgUrl)); manager.add(refreshAction); IAction showFilledInfoElementsAction = new Action() { @Override public void run() { URL imageURL = null; if (GlueInfoViewer.this.showOnlyFilledInfoElements == true) { GlueInfoViewer.this.showOnlyFilledInfoElements = false; this.setToolTipText(Messages.getString("GlueInfoView.showOnlyFilledInfoElements")); //$NON-NLS-1$ imageURL = Activator.getDefault().getBundle().getEntry("icons/elcl16/hide.png"); //$NON-NLS-1$ this.setImageDescriptor(ImageDescriptor.createFromURL(imageURL)); ViewerFilter[] myViewerFilter = GlueInfoViewer.this.viewer.getFilters(); myViewerFilter[0] = new InfoViewerFilter(); GlueInfoViewer.this.viewer.setFilters(myViewerFilter); } else { GlueInfoViewer.this.showOnlyFilledInfoElements = true; this.setToolTipText(Messages.getString("GlueInfoView.showAllInfoElements")); //$NON-NLS-1$ imageURL = Activator.getDefault().getBundle().getEntry("icons/elcl16/show_all.png"); //$NON-NLS-1$ this.setImageDescriptor(ImageDescriptor.createFromURL(imageURL)); ViewerFilter[] myViewerFilter = GlueInfoViewer.this.viewer.getFilters(); myViewerFilter[0] = new InfoViewFilterShowFilledElements(); GlueInfoViewer.this.viewer.setFilters(myViewerFilter); } GlueInfoViewer.this.viewer.refresh(); } }; imgUrl = Activator.getDefault().getBundle().getEntry("icons/elcl16/hide.png"); //$NON-NLS-1$ showFilledInfoElementsAction.setImageDescriptor(ImageDescriptor.createFromURL(imgUrl)); showFilledInfoElementsAction.setToolTipText(Messages.getString("GlueInfoView.showOnlyFilledInfoElements")); //$NON-NLS-1$ manager.add(showFilledInfoElementsAction); this.drillDownAdapter.addNavigationActions(manager); }