forked from ProjetoDSL/ERDSL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generating product for controlled experiment
- Adding the Eclipse RCP product deployment configuration file.
- Loading branch information
1 parent
a5680eb
commit 3500bc9
Showing
31 changed files
with
780 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
...t.unipampa.erdsl.tests/test-bin/org/xtext/unipampa/erdsl/tests/.ErDslParsingTest.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
....unipampa.erdsl.tests/xtend-gen/org/xtext/unipampa/erdsl/tests/.ErDslParsingTest.xtendbin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
org.xtext.unipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/.ErDslUiModule.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...mpa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/codemining/.ErDslCodeMiningProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...pa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/contentassist/.ErDslProposalProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/labeling/.ErDslDescriptionLabelProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...t.unipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/labeling/.ErDslLabelProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...pampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/outline/.ErDslOutlineTreeProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...nipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/quickfix/.ErDslQuickfixProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...pampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/wizard/.ErDslFileTemplateProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...pa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/wizard/.ErDslProjectTemplateProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
org.xtext.unipampa.erdsl.ui/xtend-gen/org/xtext/unipampa/erdsl/ui/.ErDslUiModule.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...dsl.ui/xtend-gen/org/xtext/unipampa/erdsl/ui/codemining/.ErDslCodeMiningProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sl.ui/xtend-gen/org/xtext/unipampa/erdsl/ui/contentassist/.ErDslProposalProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ui/xtend-gen/org/xtext/unipampa/erdsl/ui/labeling/.ErDslDescriptionLabelProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ampa.erdsl.ui/xtend-gen/org/xtext/unipampa/erdsl/ui/labeling/.ErDslLabelProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...erdsl.ui/xtend-gen/org/xtext/unipampa/erdsl/ui/outline/.ErDslOutlineTreeProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...a.erdsl.ui/xtend-gen/org/xtext/unipampa/erdsl/ui/quickfix/.ErDslQuickfixProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...erdsl.ui/xtend-gen/org/xtext/unipampa/erdsl/ui/wizard/.ErDslFileTemplateProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sl.ui/xtend-gen/org/xtext/unipampa/erdsl/ui/wizard/.ErDslProjectTemplateProvider.xtendbin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.81 KB
...ext.unipampa.erdsl/bin/org/xtext/unipampa/erdsl/splashHandlers/BrowserSplashHandler.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
547 changes: 547 additions & 0 deletions
547
org.xtext.unipampa.erdsl/org.xtext.unipampa.erdsl.product
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP = true |
Binary file not shown.
177 changes: 177 additions & 0 deletions
177
...text.unipampa.erdsl/src/org/xtext/unipampa/erdsl/splashHandlers/BrowserSplashHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
|
||
package org.xtext.unipampa.erdsl.splashHandlers; | ||
|
||
import org.eclipse.swt.SWT; | ||
import org.eclipse.swt.browser.Browser; | ||
import org.eclipse.swt.browser.ProgressEvent; | ||
import org.eclipse.swt.browser.ProgressListener; | ||
import org.eclipse.swt.events.SelectionEvent; | ||
import org.eclipse.swt.events.SelectionListener; | ||
import org.eclipse.swt.layout.GridData; | ||
import org.eclipse.swt.layout.GridLayout; | ||
import org.eclipse.swt.widgets.Button; | ||
import org.eclipse.swt.widgets.Shell; | ||
import org.eclipse.ui.splash.AbstractSplashHandler; | ||
|
||
/** | ||
* @since 3.3 | ||
* | ||
*/ | ||
public class BrowserSplashHandler extends AbstractSplashHandler { | ||
|
||
private final static String F_BROWSER_URL = "http://www.google.com"; //NON-NLS-1 | ||
|
||
private Browser fBrowser; | ||
|
||
private Button fButton; | ||
|
||
private boolean fClose; | ||
|
||
/** | ||
* | ||
*/ | ||
public BrowserSplashHandler() { | ||
fBrowser = null; | ||
fButton = null; | ||
fClose = false; | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* | ||
* @see org.eclipse.ui.internal.splash.AbstractSplashHandler#init(org.eclipse.swt.widgets.Shell, | ||
* org.eclipse.ui.IWorkbench) | ||
*/ | ||
public void init(final Shell splash) { | ||
// Store the shell | ||
super.init(splash); | ||
// Configure the shell layout | ||
configureUISplash(); | ||
// Create UI | ||
createUI(); | ||
// Create UI listeners | ||
createUIListeners(); | ||
// Force the UI to layout | ||
splash.layout(true); | ||
// Keep the splash screen visible and prevent the RCP application from | ||
// loading until the close button is clicked. | ||
doEventLoop(); | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
private void doEventLoop() { | ||
Shell splash = getSplash(); | ||
while (fClose == false) { | ||
if (splash.getDisplay().readAndDispatch() == false) { | ||
splash.getDisplay().sleep(); | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
private void createUIListeners() { | ||
// Create the browser listeners | ||
createUIListenersBrowser(); | ||
// Create the button listeners | ||
createUIListenersButton(); | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
private void createUIListenersButton() { | ||
fButton.addSelectionListener(new SelectionListener() { | ||
public void widgetDefaultSelected(SelectionEvent e) { | ||
// NO-OP | ||
} | ||
public void widgetSelected(SelectionEvent e) { | ||
fClose = true; | ||
} | ||
}); | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
private void createUIListenersBrowser() { | ||
fBrowser.addProgressListener(new ProgressListener() { | ||
public void changed(ProgressEvent event) { | ||
// NO-OP | ||
} | ||
public void completed(ProgressEvent event) { | ||
// Only show the UI when the URL is fully loaded into the | ||
// browser | ||
fBrowser.setVisible(true); | ||
fButton.setVisible(true); | ||
} | ||
}); | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
private void createUI() { | ||
// Create the web browser | ||
createUIBrowser(); | ||
// Create the close button | ||
createUIButton(); | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
private void createUIButton() { | ||
Shell splash = getSplash(); | ||
fButton = new Button(splash, SWT.PUSH); | ||
fButton.setText("Close"); //NON-NLS-1 | ||
fButton.setVisible(false); | ||
// Configure the button bounds | ||
configureUIButtonBounds(); | ||
// Configure layout data | ||
GridData data = new GridData(SWT.CENTER, SWT.FILL, false, false); | ||
data.widthHint = 80; | ||
fButton.setLayoutData(data); | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
private void configureUIButtonBounds() { | ||
Shell splash = getSplash(); | ||
|
||
int button_x_coord = (splash.getSize().x / 2) | ||
- (fButton.computeSize(SWT.DEFAULT, SWT.DEFAULT).x / 2); | ||
int button_y_coord = splash.getSize().y | ||
- fButton.computeSize(SWT.DEFAULT, SWT.DEFAULT).y; | ||
int button_x_width = splash.getSize().x; | ||
int button_y_width = fButton.computeSize(SWT.DEFAULT, SWT.DEFAULT).y; | ||
|
||
fButton.setBounds(button_x_coord, button_y_coord, button_x_width, | ||
button_y_width); | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
private void createUIBrowser() { | ||
fBrowser = new Browser(getSplash(), SWT.NONE); | ||
fBrowser.setUrl(F_BROWSER_URL); | ||
fBrowser.setVisible(false); | ||
// Configure layout data | ||
GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); | ||
fBrowser.setLayoutData(data); | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
private void configureUISplash() { | ||
GridLayout layout = new GridLayout(1, true); | ||
getSplash().setLayout(layout); | ||
} | ||
|
||
} |