Skip to content

Instantly share code, notes, and snippets.

View porcelli's full-sized avatar

Alex Porcelli porcelli

View GitHub Profile
package org.kie.uberfire.perspective.editor.model;
import java.util.Map;
import com.google.gwt.user.client.ui.Widget;
public interface ExternalPerspectiveEditorComponent {
void setup(final String placeName,
final Map<String, String> parameters);
List of available perspectives (6.0.x):
Common:
org.kie.workbench.common.screens.home.client.perspectives.HomePerspective
kie-drools-wb (BRMS)
org.kie.workbench.drools.client.perspectives.AdministrationPerspective
org.kie.workbench.drools.client.perspectives.DroolsAuthoringPerspective
org.guvnor.m2repo.client.perspectives.GuvnorM2RepoPerspective
package org.kie.uberfire.social.activities.adapters;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.kie.uberfire.social.activities.model.ExtendedTypes;
import org.kie.uberfire.social.activities.model.SocialActivitiesEvent;
package org.uberfire.backend.vfs;
import org.uberfire.mvp.Command;
import org.uberfire.mvp.ParameterizedCommand;
import org.uberfire.rpc.SessionInfo;
public interface ObservablePath extends Path {
void onRename( final Command command );
package org.uberfire.rpc.impl;
import org.jboss.errai.common.client.protocols.SerializationParts;
import org.jboss.errai.marshalling.client.api.MarshallingSession;
import org.jboss.errai.marshalling.client.api.annotations.ClientMarshaller;
import org.jboss.errai.marshalling.client.api.annotations.ServerMarshaller;
import org.jboss.errai.marshalling.client.api.json.EJValue;
import org.jboss.errai.marshalling.client.marshallers.AbstractNullableMarshaller;
import org.uberfire.rpc.SessionInfo;
import org.uberfire.security.impl.IdentityImpl;
Loading module: org.uberfire.UberfireShowcase
Top URL: http://127.0.0.1:8888/org.uberfire.UberfireShowcase/Uberfire.html?gwt.codesvr=127.0.0.1:9997
User agent: FF
Remote host: localhost:58337
Tab key: 0x1143b7800
Session key: j~iEmU%d%((*-=Ps
DEBUG: Validating units:
INFO: Ignored 23 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
DEBUG: Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory
$ echo 'public class Hello { public static void main(String... args) { System.out.println("Hello?"); } }' > Hello.java
$ javac Hello.java
$ java Hello
final IOCBeanManager beanManager = IOC.getBeanManager();
final ActivityBeansCache activityBeansCache = beanManager.lookupBean( ActivityBeansCache.class ).getInstance();
final JSNativePlugin newNativePlugin = beanManager.lookupBean( JSNativePlugin.class ).getInstance();
newNativePlugin.build( obj );
final JSWorkbenchScreenActivity activity = new JSWorkbenchScreenActivity( newNativePlugin, beanManager.lookupBean( PlaceManager.class ).getInstance() );
beanManager.addBean( (Class) Activity.class, JSWorkbenchScreenActivity.class, null, activity, DEFAULT_QUALIFIERS, newNativePlugin.getId(), true );
beanManager.addBean( (Class) WorkbenchScreenActivity.class, JSWorkbenchScreenActivity.class, null, activity, DEFAULT_QUALIFIERS, newNativePlugin.getId(), true );
/*
* 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
*
* Unless required by applicable law or agreed to in writing, software
$registerPerspective({
"id": "Markdown Editor",
"view": {
"parts": [
{
"place": "MarkdownLiveViewer",
"parameters": {}
}
],
"panels": [