Comments (9)
Great idea!
from gwt-eclipse-plugin.
#124 - This will get uploaded to the snapshot later tonight.
<extension
point="com.google.gdt.eclipse.core.browser.launchMenus">
<client
class="com.sencha.eclipse.gss.GetMenus">
</client>
</extension>
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IProject;
import com.google.gdt.eclipse.core.browser.BrowserMenuPopulator.ILaunchMenus;
import com.google.gdt.eclipse.core.browser.LaunchMenuModel;
public class GetMenus implements ILaunchMenus {
@Override
public List<LaunchMenuModel> getMenus(IProject project) {
List<LaunchMenuModel> list = new ArrayList<LaunchMenuModel>();
list.add(new LaunchMenuModel("AAAAA", "chrome", "http://google.com"));
list.add(new LaunchMenuModel("BBBBBB", "chrome", "http://docs.sencha.com"));
list.add(new LaunchMenuModel("BBBBBB", "chrome", "http://sencha.com"));
return list;
}
}
Would this work?
from gwt-eclipse-plugin.
I may need to add something about the browser implementation. Anyway this will get uploaded tonight to the snapshot repo.
from gwt-eclipse-plugin.
Good to hear that you are picking up the idea.
I do not understand the need for the extension point you are suggesting though. The existing IDebugLaunch interface and its extension point would be enough isn't?
from gwt-eclipse-plugin.
I didn't want to use the existing wiring I didn't believe it had all the properties I needed to configure the menus properly and I didn't want to break the existing one as of yet.
from gwt-eclipse-plugin.
OK but I think you cannot get-by without IDebugLaunch, because besides displaying these items in the menu, you need to be capable of launching a debugger once the user has selected it in the menu. That's exactly what IDebugLaunch is doing anyway isn't it?
Currently the IDebugLaunch's extension point, com.google.gdt.eclipse.core.debugLauncher only has two properties:
- class - the implementation of the launcher
- label - the label which you can possibly display in the menu
<extension
point="com.google.gdt.eclipse.core.debugLauncher">
<extensions
class="com.github.sdbg.integration.jdt.ChromeDebugLaunch"
label="SDBG Chrome JS Debugger">
</extensions>
</extension>
Note that the label is part of the extension point and not a property on the IDebugLaunch interface itself (which is good!). How about we enrich the above extension point with additional - possibly optional - properties that you need for the menu? (Even though I'm not yet sure what they would be?)
from gwt-eclipse-plugin.
Gotcha. I see what you're saying. I put the label in the class, figuring it might be generated. The other extension point wasn't wired up correctly as of yet but I can revisit it and fix it. I may have to rewrite some of the core to get it done. I was hoping to take a shortcut, but you're right. :) Well anyway, I'm off with the family today. I might get some time tonight, but I'd say I'll aim to get this done thursday.
from gwt-eclipse-plugin.
Ah, yeah I see it clearly now. Ugh, yeah, that should be an easy fix later.
from gwt-eclipse-plugin.
Turns out the extension IDebugLauncher was what I did sometime ago and I completely glitched when I came back to look at this. My mistake, I've returned it to its previous operation. Funny how that happens to me now in then. :)
from gwt-eclipse-plugin.
Related Issues (20)
- Marketplace install does not contain the SDKs HOT 2
- Installing GWT Plugin involves trusting unsigned code HOT 1
- Super/Legacy Development Mode Radio Toggle missing for GWT 2.10.x HOT 17
- "Language Servers" Errors in Eclipse 2023-03 HOT 3
- Build failure due to bad caching performed by maven-download-plugin HOT 2
- Long paths stopped working on 4.0.0 HOT 3
- Plugin 4.0.0 / Run Configuration / Not producing SuperDev HOT 2
- GWT compilation error in Eclipse with GWT 3.0 plugin HOT 10
- Change plugin's content assist contributors to support asynchronous non-blocking completions HOT 1
- Is there a tutorial here on how to install the plugin in Eclipse? HOT 4
- Unable to install plugin version 4.0.0 in Eclipse 2023-12 (requires 'osgi.bundle; javax.inject 1.0.0' but it could not be found) HOT 12
- Unable to create run configuration for super dev mode
- Is it possible to update the Jetty to a version that supports Jakarta? HOT 1
- Update to GWT 2.11
- Error while installing in eclipse HOT 1
- Installation fails on Eclipse 2023.12 HOT 2
- Error installing from market place because of javax.inject which was moves to jakarta.inject HOT 4
- Fresh install of the plugin in Eclipse 2024-03 is missing dependencies HOT 2
- Add support for Eclipse 2024-03 (4.31.0) HOT 6
- GWT recompilation does not occur if you modify a properties file located on a submodule
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-eclipse-plugin.