|
Re: Xtext eclipse plugin [message #1730534 is a reply to message #1730532] |
Tue, 26 April 2016 14:17 |
|
Radhakrishna Kasiraju <forums-noreply@xxxxxxxx> wrote:
> Hi Christian,
>
> How to create plugin for my dsl editor? I want an option like new custom
> project on tool bar
>
Simply use the yourdsl.ui plugin
You get that if you select eclipse plugin in the wizard
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
|
|
|
|
Re: Xtext eclipse plugin [message #1730622 is a reply to message #1730617] |
Wed, 27 April 2016 08:01 |
RamaRao Nandamuri Messages: 120 Registered: April 2016 |
Senior Member |
|
|
package org.xtext.example.mydsl.ui.handler
import org.eclipse.core.commands.AbstractHandler
import org.eclipse.core.commands.IHandler
import org.eclipse.core.commands.ExecutionEvent
import org.eclipse.core.commands.ExecutionException
import org.eclipse.jface.viewers.ISelection
import org.eclipse.ui.handlers.HandlerUtil
import org.eclipse.jface.viewers.IStructuredSelection
import org.eclipse.xtext.generator.IGenerator
import com.google.inject.Inject
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.xtext.resource.IResourceDescriptions;
import org.eclipse.xtext.ui.resource.IResourceSetProvider;
[Updated on: Wed, 27 April 2016 18:00] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06286 seconds