You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2015/03/11 18:40:38 UTC

[jira] [Created] (DIRSTUDIO-1018) Adding a new LDIF file directly fails with an error "can't find IDfind.ext"

Emmanuel Lecharny created DIRSTUDIO-1018:
--------------------------------------------

             Summary: Adding a new LDIF file directly fails with an error "can't find IDfind.ext"
                 Key: DIRSTUDIO-1018
                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1018
             Project: Directory Studio
          Issue Type: Bug
          Components: studio-ldifeditor
    Affects Versions: 2.0.0-M9
            Reporter: Emmanuel Lecharny


On trunk, starting Studio, creating a new File, selecting LdifEditor, we get a "can't find IDfind.ext" error.

This is due to the missing GroupMarker "find" in the LdifEditorContributor menuManager.

Adding it in the {{init}} does solve the issue :

{code}
    public void init( IActionBars bars, IWorkbenchPage page )
    {
        IMenuManager menuManager = bars.getMenuManager();
        IMenuManager editMenu = menuManager.findMenuUsingPath(IWorkbenchActionConstants.M_EDIT);
        
        if ( editMenu != null )
        {
            editMenu.add( new GroupMarker( IWorkbenchActionConstants.FIND_EXT ) );
        }
        
        super.init( bars, page );
        bars.setGlobalActionHandler( CONTENTASSIST_ACTION, contentAssist );
    }
{code}

but this is quite ugly...

Is there any reason why the {{find.ext}} groupMarker  is missing ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)