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 113479 Details for
Bug 248416
"Run from JAD" in jad editor doesn't work if project is renamed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
fix for this bug
jadeditor_inputchanged.patch (text/plain), 2.10 KB, created by
Hugo Raniere
on 2008-09-25 12:04:37 EDT
(
hide
)
Description:
fix for this bug
Filename:
MIME Type:
Creator:
Hugo Raniere
Created:
2008-09-25 12:04:37 EDT
Size:
2.10 KB
patch
obsolete
>Index: src/org/eclipse/mtj/ui/internal/editors/jad/form/JADFormEditor.java >=================================================================== >--- src/org/eclipse/mtj/ui/internal/editors/jad/form/JADFormEditor.java (revision 549) >+++ src/org/eclipse/mtj/ui/internal/editors/jad/form/JADFormEditor.java (working copy) >@@ -49,17 +49,21 @@ > import org.eclipse.mtj.ui.internal.editors.jad.form.pages.OverviewEditorPage; > import org.eclipse.mtj.ui.internal.utils.ManifestPreferenceStore; > import org.eclipse.ui.IEditorInput; >+import org.eclipse.ui.IInPlaceEditor; >+import org.eclipse.ui.IInPlaceEditorInput; > import org.eclipse.ui.IStorageEditorInput; > import org.eclipse.ui.PartInitException; > import org.eclipse.ui.forms.editor.FormEditor; > import org.eclipse.ui.forms.editor.IFormPage; >+import org.eclipse.ui.part.FileEditorInput; >+import org.eclipse.ui.part.FileInPlaceEditorInput; > > /** > * Editor for specifying the properties of a MIDP application descriptor. > * > * @author Craig Setera > */ >-public class JADFormEditor extends FormEditor { >+public class JADFormEditor extends FormEditor implements IInPlaceEditor { > > // all JAD editor page configuration elements > private static JADEditorPageConfigElement[] jadEditorPageConfigElements; >@@ -423,7 +427,13 @@ > */ > @Override > protected void setInput(IEditorInput input) { >- super.setInput(input); >+ if (input instanceof FileEditorInput) { >+ FileInPlaceEditorInput fipei = new FileInPlaceEditorInput( ((FileEditorInput)input).getFile()); >+ fipei.setInPlaceEditor(this); >+ super.setInput(fipei); >+ } else { >+ super.setInput(input); >+ } > > // Update the application descriptor instance > if (input instanceof IStorageEditorInput) { >@@ -447,4 +457,13 @@ > } > } > } >+ >+ public void sourceChanged(IInPlaceEditorInput input) { >+ this.getSite().getPage().closeEditor(this, true); >+ } >+ >+ public void sourceDeleted() { >+ this.getSite().getPage().closeEditor(this, false); >+ } >+ > }
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248416
:
113478
| 113479