Question

I cloned this: git repository into eclipse workspace. I am interested in Xtext-XML sample only. Because i want to create a domain specfic language generating xml code. Thats seems the only example at this topic.

My problem is that on the build path the '/src-gen' folders are missing. All the projects have a red exclamation mark in the package explorer. How can i generate those missing files.

Was it helpful?

Solution

Check out the README.TXT file. There it says:

Start a new Eclipse Application and create an empty Java project. Add new source folder called "src-gen/" and put the following statemachine into a file in the "src/" folder.

 // MrsGrantsSecretCompartments.statemachine

 events
        doorClosed        D1CL
        drawOpened        D2OP
        lightOn                L1ON
        doorOpened        D1OP
        panelClosed PNCL
end

resetEvents
        doorClosed
end

commands
        unlockPanel PNUL
        lockPanel        PNLK
        lockDoor        D1LK
        unlockDoor        D1UL
end

state idle
        actions {unlockDoor lockPanel}
        doorClosed = active
end

state active
        drawOpened         = waitingForLight
        lightOn                = waitingForDraw
end

state waitingForLight
        lightOn = unlockedPanel
end

state waitingForDraw
        drawOpened = unlockedPanel
end

state unlockedPanel
        actions {unlockPanel lockDoor}
        panelClosed = idle
end
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top