Permalink
Browse files

Merge pull request #44 from mattcasters/master

Create a Neo4j perspective in Spoon #43
  • Loading branch information...
mattcasters committed Oct 2, 2018
2 parents 4254fc5 + 6ab22ec commit a480ce7ae9bf66652aa702c0f81b6dd1b4c0ca92
11 pom.xml
@@ -4,7 +4,7 @@
<groupId>bi.know.kettle.neo4j.output</groupId>
<artifactId>Neo4JOutput</artifactId>
<version>3.12.0-SNAPSHOT</version>
<version>3.13.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Neo4JOutput</name>
@@ -69,6 +69,15 @@
<includes>
<include>**/*.properties</include>
<include>**/*.svg</include>
<include>**/*.xul</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.svg</include>
<include>**/*.xul</include>
</includes>
</resource>
</resources>
@@ -0,0 +1,57 @@
/*
* Copyright 2017 Hitachi America, Ltd., R&D.
*
* 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package bi.know.kettle.neo4j.perspective;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.widgets.Text;
import org.pentaho.ui.xul.XulException;
import org.pentaho.ui.xul.binding.Binding;
import org.pentaho.ui.xul.binding.BindingFactory;
import org.pentaho.ui.xul.components.XulTextbox;
import org.pentaho.ui.xul.impl.AbstractXulEventHandler;
import org.pentaho.ui.xul.swt.SwtBindingFactory;
import java.lang.reflect.InvocationTargetException;
public class Neo4jController extends AbstractXulEventHandler {
private static final Class<?> PKG = Neo4jController.class;
private BindingFactory bf = new SwtBindingFactory();
private Binding revisionBinding;
private Binding changedBinding;
private Binding branchBinding;
private Binding diffBinding;
public Neo4jController() {
setName( "neo4jController" );
}
public void init() throws IllegalArgumentException, InvocationTargetException, XulException {
XulTextbox diffText = (XulTextbox) document.getElementById( "diff" );
Text text = (Text) diffText.getManagedObject();
text.setFont( JFaceResources.getFont( JFaceResources.TEXT_FONT ) );
}
private void createBindings() {
// TODO
}
public void onTabClose() {
// Simply close
}
}
@@ -0,0 +1,37 @@
/*
* Copyright 2017 Hitachi America, Ltd., R&D.
*
* 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package bi.know.kettle.neo4j.perspective;
import org.pentaho.di.ui.spoon.ISpoonMenuController;
import org.pentaho.ui.xul.dom.Document;
import org.pentaho.ui.xul.impl.AbstractXulEventHandler;
public class Neo4jMenuController extends AbstractXulEventHandler implements ISpoonMenuController {
private static final Class<?> PKG = Neo4jController.class;
private Neo4jController neo4jController;
public void setNeo4jController( Neo4jController gitController ) {
this.neo4jController = gitController;
}
@Override public void updateMenu( Document document ) {
// TODO
}
}
Oops, something went wrong.

0 comments on commit a480ce7

Please sign in to comment.