-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
761 additions
and
179 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SELECT DISTINCT * WHERE { | ||
?s ?p ?o | ||
} | ||
LIMIT 10 | ||
LIMIT 10zxc |
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 |
---|---|---|
@@ -1,13 +1,7 @@ | ||
# Turtle Syntax (autogenerated - leave this line intact) | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
|
||
<http://purl.org/stuff/brian> | ||
<http://xmlns.com/foaf/0.1/knows> | ||
<http://purl.org/stuff/andy> . | ||
SELECT DISTINCT * WHERE { | ||
|
||
<http://purl.org/stuff/carl> | ||
<http://xmlns.com/foaf/0.1/name> | ||
"carl" . | ||
|
||
<http://purl.org/stuff/andy> | ||
<http://xmlns.com/foaf/0.1/knows> | ||
<http://purl.org/stuff/brian> . | ||
<http://dbpedia.org/resource/Neptune> a ?object . | ||
?object rdfs:label ?label . | ||
} |
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
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
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,49 @@ | ||
/** | ||
* | ||
*/ | ||
package org.hyperdata.scute.main; | ||
|
||
import java.awt.event.FocusEvent; | ||
import java.awt.event.FocusListener; | ||
|
||
import javax.swing.JEditorPane; | ||
|
||
import org.hyperdata.scute.editortools.EditorToolbar; | ||
import org.hyperdata.scute.source.EditorPane; | ||
|
||
/** | ||
* @author danny | ||
* | ||
*/ | ||
public class FocusMonitor implements FocusListener { | ||
|
||
private EditorToolbar editorToolbar; | ||
|
||
public void setEditorToolbar(EditorToolbar editorToolbar){ | ||
this.editorToolbar = editorToolbar; | ||
} | ||
/* (non-Javadoc) | ||
* @see java.awt.event.FocusListener#focusGained(java.awt.event.FocusEvent) | ||
*/ | ||
@Override | ||
public void focusGained(FocusEvent event) { | ||
Object source = event.getSource(); | ||
if(source instanceof EditorPane){ | ||
editorToolbar.enableAll(); | ||
editorToolbar.setEditorPane((EditorPane)source); | ||
editorToolbar.setVisible(true); | ||
} else { | ||
editorToolbar.setVisible(false); | ||
} | ||
System.out.println("FOCUS="+event.getSource()); | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see java.awt.event.FocusListener#focusLost(java.awt.event.FocusEvent) | ||
*/ | ||
@Override | ||
public void focusLost(FocusEvent e) { | ||
// ignore | ||
} | ||
|
||
} |
Oops, something went wrong.