Opening a node in editor

Hi,
I am relatively new to JDeveloper extension development.
I am currently working with my ESB team to develop an extension to do certain things with the diagram.
We are stuck when we are trying to get the oracle.tip.tools.ide.esb.addin.DiagramEditor object from the node.
If we right click on an ESB resource node, the context menu should have our new menuitem. This works fine.
But, as we need to work with the oracle.tip.tools.ide.esb.addin.DiagramEditor object, we are trying to invoke the
editor for this node(when clicking the menuitem) with the following piece of code:
public boolean handleEvent(IdeAction ideAction, Context context) {
Element el = context.getElement();
if (el instanceof DiagramNode) {
DiagramNode dNode = (DiagramNode) el;
Util.logToIde("\nOpening resource... ");
*EditorManager.getEditorManager().register(new DiagramAddin() ,new Class[] {DiagramNode.class});*
Util.logToIde("\nOpened resource");
The editor is not opening.
If we can not open the editor we can not get the gui components from it, thus our work is stuck.
We are using JDeveloper 10.1.3.1.
Please help.

Hi,
I guess, you are just registering the Editor.
Have you tried this after register?
EditorManager.getEditorManager().openDefaultEditorInFrame(<the file which you would want to open>);-Arun

Similar Messages

  • Why does Raw image open in PSE 11 Editor as jpeg instead of as RAW image?

    For several years I have been managing my photos in iphoto and using PSE as an external editor for editing images. I currently use PSE 11 on an iMac with OS X Lion (version 10.7.5). My iPhoto Library is divided into a number of sub-libraries via iPhoto Library Manager. I have unexpectedly encountered a problem attempting to edit a RAW image (in this case a .NEF image from a Nikon D200) in a sub-library containing images shot in 2007. When I right click on the image and select Edit in External Editor the image opens in PSE 11 Editor, but it opens as a jpeg and not as an .NEF image. This is in spite of the fact that in iPhoto/Preferences/Advanced/RAW Photos I have checked "Use RAW when using external editor."
    As an alternative approach I tried dragging and dropping the RAW image into the PSE 11 Editor icon in the Dock, but I got the same result.
    I can't recall having this problem previously and would appreciate knowing what might be the source of the problem along with a suggested fix.

    I took a clue from both of your responses. I exported a copy of the original RAW file to my desktop. Then I went to PSE Editor and clicked File/Open and selected the RAW file on the desktop. This automatically changed the Format setting to Camera Raw. I then clicked Open and lo and behold my RAW file opens in Camera Raw!
    I’m now where I want to be to edit this image in Camera RAW, but I never before had to go around the horn like this to get there! This is very similar to the procedure I follow when I edit jpegs in Camera Raw.
    I’m happy to report that this workaround did the job, but I have no idea why it was necessary in this instance. Hopefully this issue will be confined to this one particular iPhoto sub-library!

  • Open file in sample editor

    Hey forum,
    This is probably a super noob question, but I have a clip of a 7 bar guitar line that I want to open in the sample editor so I can reverse it. I know the default is to double-click it, but it has the arrow on the left side and when I double click it, it pulls down the only take that I did of that section (instead of opening in sample editor). I want to know how to do this for other clips with more than one take as well.
    So basically, how do I open a snippet in sample editor without double clicking on it?
    Thanks,
    Daniel

    Hey Jorge.
    Thanks for the suggestion. I've actually had to re-install the bug ridden 8.0.0 version to get it to work. Never thought i'd be saying that
    I haven't updated it yet as i need to get some work done before i waste another day trying to sort out mysterious errors.
    Thanks anyway
    Rowan

  • ViewKind Parameter Ignored in ProjectItem.Open if ProjectItem is Set to Open With Default External Editor

    Hi all,
    In my VS2010 extension, I have just encountered a situation which I can find no workaround for. As always, I went to Carlos Quintero's MZ-Tools first to see if I could find an answer. In this excellent article of his (http://www.mztools.com/articles/2007/mz2007027.aspx),
    he discusses how to get "the ProjectItem in the desired view using ProjectItem.Open(viewKind), which returns an EnvDTE.Window object."
    This is the behavior I have experienced until I noticed that if a user selects "Open With..." and sets a default external program to open a given item with, I can no longer programmatically open the item in the text editor (this is required
    functionality for my extension, since I am not setting the Window to visible, anyway). The screenshot below illustrates my point, even though I am working with my own custom extensions.
    In this case, calling ProjectItem.Open with every available ViewKind value will cause Program.cs to open in Notepad rather than the text editor. The Window returned from the Open call is always null in this case.
    Is there any way I can force an item to open in the text editor, regardless what its default program/viewer is? Thanks for your help,
    -Mike

    I don't think that is a bug but a limitation of the automation model.
    As workaround, you can use the following method:
    IVsUIShellOpenDocument.OpenSpecificEditor
    If you want something somewhat more palatable you can use the following method:
    VsShellUtilities.OpenDocumentWithSpecificEditor
    Editor guids are stored in the registry entry HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0_Config\Editors, but since you are only interested in the text editor guid, you are lucky because there is already a constant defined Microsoft.VisualStudio.VSConstants.GUID_TextEditorFactory.
    There is also a constant defined for the logical view: Microsoft.VisualStudio.VSConstants.LOGVIEWID.TextView_guid.
    So, even if text files are set to open with Notepad, this code should open them in the text editor:
             string fullPath;
             Guid editorGuid;
             Guid logicalViewGuid;
             IVsWindowFrame windowFrame;
             fullPath = projectItem.get_FileNames(0);
             editorGuid = Microsoft.VisualStudio.VSConstants.GUID_TextEditorFactory;
             logicalViewGuid = Microsoft.VisualStudio.VSConstants.LOGVIEWID.TextView_guid;
             windowFrame = Microsoft.VisualStudio.Shell.VsShellUtilities.OpenDocumentWithSpecificEditor(this, fullPath, editorGuid, logicalViewGuid);
             if (windowFrame != null)
                windowFrame.Show();
    * My new blog about VSX: http://www.visualstudioextensibility.com * Twitter: https://twitter.com/VSExtensibility * MZ-Tools productivity extension for Visual Studio: http://www.mztools.com.

  • "Open in external sample editor" seems to be broken?

    Hey all,
    I'm hoping that someone can help me figure this out. I'm using Logic Pro X 10.0.7 in conjunction with Adobe Audition CS6. This problem seems to happen intermittently, and on some of my machines, but not others. I've also witnessed it on others' machines as well.
    When I try to open a region of audio in the external sample editor (For which I've set up Adobe Audtion CS6 to do destructive edits), I can manage to get the file to open correctly in Audition. HOWEVER, when I make my edits in audition and try to SAVE the file in Audition to send it back to Logic Pro X, I get an error message that the file cannot be saved because it is "in use by another application". It's almost as if Logic doesn't release the file to the external sample editor in order for it to be overwritten, and updated.
    When I switch back to Logic, after I get the error message, Logic "refreshes" the waveform information, but it's still unchanged, because the external sample editor can't save the changes that I've made to the region. Can anyone relate? Offer me useful tips on how to fix this? Is it a bad configuration on my end, or just a bug in Logic?
    Thanks,
    Steve

    Ok so I think I might have figured this out on my own... Apparently, if you highlight a region, and the region is open in Logic's Editor window, while you're trying to edit the region with an external editor like Audition, it will throw the "file is in use by another application" error, when you try to save the changes you've made in the external editor. I found that if I close the "Editor" window in Logic, before trying to open the region in Audition, Audition is then able to save the changes to the file.
    Derp.

  • Image won't open after right click and "open with" command using Editor PSE 10

    Can't see image after right click and "open with" Windows XP command using Editor PSE 10. The editor opens but no image appears. I have to use the open command from within Editor

      Make sure you have chosen the application PhotoshopElementsEditor.exe and not a shortcut.
    To manually associate a file format with an application:
    In Windows Explorer, right-click a file whose file association you want to change. For example, if you want to change the file association for all jpeg files, click a jpeg file.
    Choose Open With > Choose Program from the pop-up menu.
    In the Open With dialog box, click Browse and then locate and select the exe application file.
    Checkmark "Always use the selected program to open this kind of file" and click OK.
    Note:If you choose a program from the Open With menu in step 2, instead of selecting the Choose Program option, this check box is not available, and the file association won't work.

  • How to re-open tree nodes after a refresh to AdvancedDataGrid's GroupingCollection?

    Hello,
    I have an AdvancedDataGrid, which has as it's dataProvider a
    GroupingCollection. The GroupingCollection's source is bound to an
    ArrayCollection. Items in the ArrayCollection can be edited.
    After a change to the ArrayCollection, I refresh() the
    GroupingCollection so it displays properly. Unfortunately, this
    collapses the tree of the AdvancedDataGrid, that is, the previously
    open nodes are no longer open. I would like to re-open the nodes
    after a refresh.
    In the code provided, I have attempted to save the nodes
    which were open before the refresh, perform the refresh, then
    re-expand the nodes with AdvancedDataGrid.expandItem(). But it
    didn't work, and I am stumped.
    Any ideas on how to expand nodes in the AdvancedDataGrid?
    or
    Any ideas on how to allow the user to modify a data item,
    including fields used as GroupingFields, in an AdvancedDataGrid?

    Yes, I try saving the nodes like this:
    //save the currently opened items
    openArray = new Array();
    for each(var obj:Object in advancedDataGrid.openItems)
    openArray = openArray.concat(obj);
    and then restoring them with the expand function:
    //expands the nodes which are passed in as the argument
    private var expand:Function = function(array:Array):void
    for each(var obj:Object in array)
    advancedDataGrid.expandItem(obj, true);
    Unfortunately, expandItem just seems to return without doing
    anything!

  • SharePoint 2003 : Cannot open the Rich Text Editor in Content Editor Web Part

    Error message when you use the Rich Text Editor in a SharePoint Portal Server 2003 Service Pack 3 Content Editor Web Part: "Cannot open the Rich Text Editor"
    Mohamed Gamal Orief Senior Software Engineer ITWORX EGYPT Phone: +202.2673.6377 Mobile:+2010.0552.7971 www.itworx.com

    Hi Mohamed,
    Please check if your issue is the same as the following article cannot use Rich Text Editor in a CEWP on a Vista client, if yes, you can install the kb 941204 hotfix for your SharePoint 2003, then check result again.
    http://support.microsoft.com/kb/949604
    http://support.microsoft.com/kb/941204 (Description of the SharePoint Portal
    Server 2003 post-Service Pack 3 hotfix package: February 26, 2008)
    Thanks,
    Daniel Yang
    Forum Support
    If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

  • I am having a problem opening images in the Editor from iPhotos into photoshop elements

    I am having a problem opening images in the Editor from iphoto (on my macbook pro) to the photoshop elements

    What exactly is the problem? What happens when you try, and how are you trying to do this?

  • Wrong filename used when opening image in external editor

    When I select an image and choose Open in External Editor, the filename that is used for the opened image is the original filename given from the camera (DSC1234) and not the filename that I choose when importing (DATECUSTOMSEQ).
    Why is this? Is this is a bug?

    I don't want to export the file to Photoshop, because
    I want to keep the modified version in the project in
    Aperture, may be for a book later.
    Aperture says "open version in external editor", but
    it opens the version with the master file name.
    That's wrong!
    But if it goes back into Aperture under the proper version, does it matter? It seems to me it only matters if you plan to save out the file directly from Photoshop, or if you have many photoshop windows open and want to reply on the version name to keep them stright (whcih I could see).
    The reason Aperture uses the master name is because when you open a file for external editing you are actually creating a new master itself, and it's trying to make sure it is tied back to the real original master. All changes based on that externally edited version will treat the PSD or TIFF you edit externally as the new master (versions created against the old master) will still be based on the original master, not the new one...
    That is why I advocate trips to external editors as the last step in an Aperture workfow. Otherwise you can end up making a lot of new versions in a hurry.

  • I am unable to open Organizer or Photo Editor this morning of elements 12 and don't know why.

    I am unable to open Organizer or Photo Editor in elements 12 this morning and don't know why.  Any ideas??

    OK,
    Good to hear that you are running at the moment.
    The causes for organizer and the editor to stop working are usually different. For both to be affected, I would tend to suspect disk space problems. Probably a good idea to check that you have plenty of free space.
    Please let us know if you have problems again and we can try troubleshooting.
    Brian

  • I purchased a book from Kobo online and when I try to open it Adobe Digital Editor

    I purchased a book from Kobo online and when I try to open it Adobe Digital Editor says it needs to be authorized by a Vendor ID.  when I go to my ADE account it says a Vendor ID has already been created.  How do I get to access my book (which I have already purchased twice!).  Thanks.

    Why not use the Kobo reader, Kobo app, or Kobo program as needed?
    Read Anytime, Anywhere with Free Kobo eReading Apps

  • Problem while trying to open application in Rule editor

    Hi There
    I am trying to open application in rule editor for the first time.while i am trying open its giving error message "Could not authenticate the specified user. %0".
    Is there any solution for this please help me that could be great.
    Thanks
    Harsha.

    This is a password error. Make sure that you do not have anything in the domain boxs and that when you enter your credenials that you do not have [Cas lock] on if your password is in lower case and that you have number lock on/off as required.

  • Clicking on jsp page does not open it in visual editor.

    All "open jsp tags in visual editor" checkbox is on for all libraries.
    Jdeveloper version is 10131 build 3914
    Message
    BME-99003: An error occurred, so processing could not continue.
    Cause
    The application has tried to de-reference an invalid pointer. This exception should have been dealt with programmatically. The current activity may fail and the system may have been left in an unstable state. The following is a stack trace.
    java.lang.NullPointerException
         at oracle.jdevimpl.webapp.design.util.InvisibleJspElementsUtil.applyInvisibleJSPElements(InvisibleJspElementsUtil.java:108)
         at oracle.jdevimpl.webapp.design.util.InvisibleJspElementsUtil.applyInvisibleJSPElements(InvisibleJspElementsUtil.java:78)
         at oracle.jdevimpl.webapp.design.util.InvisibleJspElementsUtil.applyInvisibleJSPElements(InvisibleJspElementsUtil.java:47)
         at oracle.jdevimpl.webapp.design.view.DesignTimeFixedViewDocument.rebuildTree(DesignTimeFixedViewDocument.java:162)
         at oracle.jdevimpl.webapp.model.content.dom.view.proxy.ProxyViewDocument.initialize(ProxyViewDocument.java:80)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.rebuildViewDocument(AbstractWebAppEditor.java:686)
         at oracle.jdevimpl.webapp.editor.html.HtmlEditor.rebuildViewDocument(HtmlEditor.java:621)
         at oracle.jdevimpl.webapp.editor.jsp.JspEditor.rebuildViewDocument(JspEditor.java:209)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.createDocuments(AbstractWebAppEditor.java:1206)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.open(AbstractWebAppEditor.java:393)
         at oracle.jdevimpl.webapp.editor.html.HtmlEditor.open(HtmlEditor.java:172)
         at oracle.jdevimpl.webapp.editor.jsp.JspEditor.open(JspEditor.java:113)
         at oracle.ideimpl.editor.EditorState.openEditor(EditorState.java:239)
         at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:147)
         at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:90)
         at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:231)
         at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:194)
         at oracle.ideimpl.editor.TabGroupState.createSplitPaneState(TabGroupState.java:103)
         at oracle.ideimpl.editor.TabGroup.addTabGroupState(TabGroup.java:275)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1261)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1196)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditorInFrame(EditorManagerImpl.java:1077)
         at oracle.ideimpl.editor.EditorManagerImpl.openDefaultEditorInFrame(EditorManagerImpl.java:1036)
         at oracle.adfdt.controller.util.CommonUtils.showEditor(CommonUtils.java:575)
         at oracle.adfdt.controller.jsf.diagram.shape.PageNode.gotoPage(PageNode.java:355)
         at oracle.adfdt.controller.jsf.diagram.shape.PageNode.invokeAction(PageNode.java:292)
         at oracle.adfdt.controller.jsf.diagram.registry.RPageNode.editContents(RPageNode.java:210)
         at oracle.bm.diagrammer.track.SelectionTracker.keyPressed(SelectionTracker.java:1338)
         at oracle.bm.diagrammer.track.ModularTracker.processEvent(ModularTracker.java:253)
         at oracle.bm.diagrammer.track.SelectionTracker.processEvent(SelectionTracker.java:148)
         at oracle.bm.diagrammer.track.TrackerStack.processEvent(TrackerStack.java:375)
         at oracle.bm.diagrammer.BaseDiagramView$53.processEvent(BaseDiagramView.java:733)
         at oracle.bm.diagrammer.PageView$PageViewPanel.fireEvent(PageView.java:2933)
         at oracle.bm.diagrammer.PageView$PageViewPanel.processEvent(PageView.java:3111)
         at java.awt.Component.dispatchEventImpl(Component.java:4407)
         at java.awt.Container.dispatchEventImpl(Container.java:2042)
         at java.awt.Component.dispatchEvent(Component.java:4237)
         at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1828)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:693)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:952)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:824)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:657)
         at java.awt.Component.dispatchEventImpl(Component.java:4279)
         at java.awt.Container.dispatchEventImpl(Container.java:2042)
         at java.awt.Window.dispatchEventImpl(Window.java:2405)
         at java.awt.Component.dispatchEvent(Component.java:4237)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Action
    If further errors occur, you should restart the application.
    Also, report the problem on the JDeveloper forum on otn.oracle.com, or contact Oracle support, giving the information from this message.
    ________________________________________________________________________________

    one more thing...the code runs properly on localhost... i tested it on my pc n it was fine..both in firefox and IE...
    i guess there is a specific syntax i need to follow (strict syntax) but i dunno what it is...:(

  • When I try to open Photoshop elements 12 editor it crashes

    I've only had elemonts 12 for about a month and it's been working fine until this afternoon I tried to open the editor and it crashed
    I have tried opening the organiser and repairing the catalogue and no errors were found and I have also installed the 12.1 update but it still crashes as soon as I try to open it
    Please help!

    Hello,
    I still can't open my photoshop and my work is piling up.
    I have had one response then nothing, It's not good enough, Photoshop isn't
    cheap!
    I'd appreciate an answer or I want my money back
    Nicola
    On 17 October 2014 16:47, Nicola Exitinteriors <[email protected]>

Maybe you are looking for