Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lsp4e-dev] Alphabetical sorting in Outline view
  • From: Sebastian Thomschke <sebt.eclipse@xxxxxxxxxxxx>
  • Date: Mon, 15 Nov 2021 21:38:37 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vegardit.com; dmarc=pass action=none header.from=vegardit.com; dkim=pass header.d=vegardit.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1oA98qveUfN0U17QBMQtAT6kqLGn5Kb4COMFBlr/BL4=; b=UOky/DbMiHCs2+Ji5S0y/tWPTaLuKRUd9pQoPSSnDnpxD1gWyudCIybBj2Pyr2pXPI+FJhQxwn7tAdd9Y3iCTv4AxUm94cDUty8itVnW7cMPGV4iRyhN0pe+5Ebg2FaoPequp+iOhEfB9NywY2Yy9IUxYx4NXRTyaIq5RIkBcXHHY1N8pdckRj22OzSiIBaH0kvE7sK7WwQ3D8OMsH/MY39iRnxc+C3+H42m/gipCWcDDhotGUUSHTY5TXuaxr3lOKhk/v9aM33eWwUroZV9m0bh3kReLBj2jprPqsNJbytQN1+OFQ+mlpXR/OHdMHcNhLAbCL5kaw18pvwEow2p8g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mffqriQaEfNyCOvsH2oEQOxXjr3MpRmGpl59O8NJPrkVpA6Ni8EXbuwnRg8vZKDEQqhE1RV8tbyyOt4+kX3FhR5MHn0bycSB+rsoHovFEZwy2ochfBu7a0B6+FwLTncsDli7+xQqPPZGJ/jvItNPB34eoT8gMDcJDXaqWAetsi94t4Uw/hcPoJmgTyrVhKu5hA2qVBZV7JsAQ7q+9VXZnYn3iW+1upAVTNJ6hIOPLuqX2mpndAjQKIS3HSmE9LhaD5iVZPkFkR9W+44e/iqtfSPxkqX3WBI5Q6/FheDu5UW0Tp1PEkE2I8h3Rp7AJ3NikXgRd3xBsSoiwBnd6fCoAQ==
  • Delivered-to: lsp4e-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/lsp4e-dev/>
  • List-help: <mailto:lsp4e-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/lsp4e-dev>, <mailto:lsp4e-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/lsp4e-dev>, <mailto:lsp4e-dev-request@eclipse.org?subject=unsubscribe>

Thanks Mickael, I think that is the extension point I was looking for: toolbar:org.eclipse.ui.views.ContentOutline?after=additions

On 15.11.2021 21:08, Mickael Istria wrote:

On Mon, Nov 15, 2021 at 8:55 PM Sebastian Thomschke <sebt.eclipse@xxxxxxxxxxxx> wrote:

Hi,

Hi,
 

I am interested in tying to implement https://bugs.eclipse.org/bugs/show_bug.cgi?id=564503 Can anyone give me some hints if this is actually possible at the scope of the lsp4e project? E.g. is there an extension point one can use to contribute a menu item or a sort button to the outline view used by lsp4e editors?

The outline is based on the Common Navigator Framework. It has extension points to add sorters: https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_ui_navigator_navigatorContent.html&anchor=e.commonSorter . There is probably a sorter existing in Platform and that could be reused to sort alphabetically .
Once you have a sorter, you can try adding a button to the outline, using usual menu extension point: https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fworkbench_cmd_menus.htm ; the related action can then enable the sorter or not programatically using the common navigator API or some other strategy.
--
Mickael Istria
Eclipse IDE developer, for Red Hat Developers

_______________________________________________
lsp4e-dev mailing list
lsp4e-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/lsp4e-dev



Back to the top