Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢

Eder Ignatowicz ederign

🐢
View GitHub Profile
View PanelManagerImpl.java
@Override
public void setPerspective( final PerspectiveDefinition perspective ) {
final PanelDefinition newRoot = perspective.getRoot();
//ederign o que falta aqui, saber como ele define o root, pq o estquema aqui embaixo tá dando null;
final WorkbenchPanelPresenter oldPresenter = mapPanelDefinitionToPresenter.remove( root );
final SimplePanel container;
if ( oldPresenter != null && oldPresenter.getPanelView().asWidget().getParent() != null ) {
container = (SimplePanel) oldPresenter.getPanelView().asWidget().getParent();
} else {
View gist:d046e06be4f2da614a72
[INFO] 2014-10-16 10:49:32,661 [btpool0-8] INFO KieModule was added:MemoryKieModule[ ReleaseId=mortgages:mortgages:0.0.1]
[INFO] view.addPanel(): this=; child=; position=WEST
[INFO] view.removePanel(): parent=; child=
[INFO] dropping child panel id= as requested
[INFO] -> dropped panel's children: {}
[INFO] splitter@2111586229 rescuing orphan: CENTER - <div style="right: 0px; bottom: 0px; position: absolute; left: 0px; top: 0px;"><div></div><div style="overflow: hidden; position: relative; top: 0px; left: 0px; width: 100%; height: 100%;" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><div class="GOCQFPYCFFB"><div class="GOCQFPYCBCB"><div aria-hidden="false" style="" class="GOCQFPYCHFB GOCQFPYCEFB"><div class="GOCQFPYCGFB GOCQFPYCEFB"></div><div class="btn-group"><a class="btn btn-mini" href="javascript:;"><i class="icon-remove"></i></a></div><div class="btn-group"><a data-toggle="dropdow
View gist:fbc2c95c661ab928ca33
var app = angular.module('myapp', []);
app.directive('uberfire', function() {
return {
restrict: 'AE',
replace: true,
scope: {
screen: '@'
},
template:"<div id=angularID></div>",
View gist:d22ccb6e66b272c93a18
2014-12-02 12:17:46,175 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@251] - Accepted socket connection from /127.0.0.1:62418
2014-12-02 12:17:46,178 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@777] - Client attempting to establish new session at /127.0.0.1:62418
2014-12-02 12:17:46,185 - INFO [SyncThread:0:NIOServerCnxn@1580] - Established session 0x14a0b4756c50008 with negotiated timeout 30000 for client /127.0.0.1:62418
2014-12-02 12:17:46,239 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@251] - Accepted socket connection from /127.0.0.1:62419
2014-12-02 12:17:46,243 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@777] - Client attempting to establish new session at /127.0.0.1:62419
2014-12-02 12:17:46,244 - INFO [SyncThread:0:NIOServerCnxn@1580] - Established session 0x14a0b4756c50009 with negotiated timeout 30000 for client /127.0.0.1:62419
2014-12-02 12:17:46,344 - INFO [ProcessThread:-1:PrepRequestProcessor@4
View Test.java
import java.io.IOException;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import static java.nio.file.Files.readAllBytes;
import static java.nio.file.Paths.get;
public class Test {
View pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2012 JBoss Inc
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
View gist:d3a642983039a2231159
diff --git a/uberfire-commons-editor/uberfire-commons-editor-client/src/main/java/org/uberfire/ext/editor/commons/client/history/VersionMenuItemLabel.ui.xml b/uberfire-commons-editor/uberfire-commons-editor-client/src/main/java/org/uberfire/ext/editor/commons/client/history/VersionMenuItemLabel.ui.xml
index f01c889..b5fdc7c 100644
--- a/uberfire-commons-editor/uberfire-commons-editor-client/src/main/java/org/uberfire/ext/editor/commons/client/history/VersionMenuItemLabel.ui.xml
+++ b/uberfire-commons-editor/uberfire-commons-editor-client/src/main/java/org/uberfire/ext/editor/commons/client/history/VersionMenuItemLabel.ui.xml
@@ -21,7 +21,7 @@
xmlns:gwt='urn:import:com.google.gwt.user.client.ui'
>
- <ui:with field="i18n" type="org.kie.workbench.common.widgets.client.resources.i18n.CommonConstants"/>
+ <ui:with field="i18n" type="org.uberfire.ext.widgets.common.client.resources.i18n.CommonConstants"/>
View Test.java
import java.io.IOException;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import static java.nio.file.Files.readAllBytes;
import static java.nio.file.Paths.get;
public class Test {
View Test.java
import java.io.IOException;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Test {
public static void main( String[] args ) throws IOException {
View PerspectiveEditorMainPresenter.java
package org.uberfire.ext.perspective.editor.client.main;
import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import com.github.gwtbootstrap.client.ui.Button;
import com.github.gwtbootstrap.client.ui.constants.IconType;
import com.github.gwtbootstrap.client.ui.resources.ButtonSize;
import com.google.gwt.event.dom.client.ClickEvent;