Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.httprpc.sierra.previewer;
package org.httprpc.sierra.tools.previewer;

import org.fife.ui.autocomplete.AutoCompletion;
import org.fife.ui.autocomplete.CompletionProvider;
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
import org.fife.ui.rsyntaxtextarea.SyntaxConstants;
import org.httprpc.sierra.Outlet;
import org.httprpc.sierra.UILoader;
import org.httprpc.sierra.previewer.engine.RenderingEngine;
import org.httprpc.sierra.previewer.model.RenderError;
import org.httprpc.sierra.previewer.model.RenderResult;
import org.httprpc.sierra.tools.previewer.engine.RenderingEngine;
import org.httprpc.sierra.tools.previewer.model.RenderError;
import org.httprpc.sierra.tools.previewer.model.RenderResult;

import javax.swing.ImageIcon;
import javax.swing.JFileChooser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.httprpc.sierra.previewer;
package org.httprpc.sierra.tools.previewer;

import java.nio.file.Path;
import java.nio.file.Paths;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.httprpc.sierra.previewer;
package org.httprpc.sierra.tools.previewer;

import com.formdev.flatlaf.FlatLightLaf;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.httprpc.sierra.previewer;
package org.httprpc.sierra.tools.previewer;

import org.fife.ui.autocomplete.BasicCompletion;
import org.fife.ui.autocomplete.Completion;
Expand Down Expand Up @@ -73,17 +73,10 @@ private void loadTags() {

private void addCommonAttributes() {
Map<String, String> attributes = new HashMap<>();
// Add common attributes applicable to all components
attributes.put("name", "String");
attributes.put("group", "String");
attributes.put("border", "String");
attributes.put("padding", "String");
attributes.put("weight", "String");
attributes.put("size", "String");
attributes.put("tabTitle", "String");
attributes.put("tabIcon", "String");
attributes.put("style", "String");
attributes.put("styleClass", "String");
// Add common attributes from UILoader.Attribute enum
for (UILoader.Attribute attr : UILoader.Attribute.values()) {
attributes.put(attr.getName(), attr.getType().getSimpleName());
}
baseClassAttributeDefinitions.put("CommonAttributes", attributes);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.httprpc.sierra.previewer.engine;
package org.httprpc.sierra.tools.previewer.engine;

import org.httprpc.sierra.UILoader;
import org.httprpc.sierra.previewer.model.RenderError;
import org.httprpc.sierra.previewer.model.RenderResult;
import org.httprpc.sierra.tools.previewer.model.RenderError;
import org.httprpc.sierra.tools.previewer.model.RenderResult;

import javax.swing.JPanel;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.httprpc.sierra.previewer.model;
package org.httprpc.sierra.tools.previewer.model;

/**
* A record to hold detailed information about a rendering failure. Implements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.httprpc.sierra.previewer.model;
package org.httprpc.sierra.tools.previewer.model;

import javax.swing.JComponent;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package org.httprpc.sierra.previewer;

import org.fife.ui.autocomplete.Completion;
import org.httprpc.sierra.tools.previewer.SierraXMLCompletionProvider;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

Expand Down