-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Java: Type cache (24.12) [STUD-72718]
Change target framework from 5.0 to 6.0 Add view models project Add icon resource Fix activity converter Fix pipeline to use NET 6.0 Address review findings
- Loading branch information
Showing
17 changed files
with
546 additions
and
254 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
95 changes: 51 additions & 44 deletions
95
Activities/Java/UiPath.Java.Activities.Design/ConvertJavaObjectDesigner.xaml
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,44 +1,51 @@ | ||
<sap:ActivityDesigner x:Class="UiPath.Java.Activities.Design.ConvertJavaObjectDesigner" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation" | ||
xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation" | ||
xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation" | ||
xmlns:uip="clr-namespace:UiPath.Activities.Presentation" | ||
xmlns:sys="clr-namespace:System;assembly=mscorlib" | ||
xmlns:local="clr-namespace:UiPath.Java;assembly=UiPath.Java" | ||
xmlns:src="clr-namespace:UiPath.Java.Activities.Design" | ||
xmlns:p="clr-namespace:UiPath.Java.Activities.Design.Properties"> | ||
<sap:ActivityDesigner.Resources> | ||
<ResourceDictionary> | ||
<sapc:ArgumentToExpressionConverter x:Key="ArgumentToExpressionConverter" /> | ||
<sapc:ModelToObjectValueConverter x:Key="ModelToObjectValueConverter" /> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Themes/Generic.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
|
||
</ResourceDictionary> | ||
</sap:ActivityDesigner.Resources> | ||
|
||
<uip:ActivityDecoratorControl Style="{StaticResource ActivityDecoratorStyle}"> | ||
<Grid Width="300"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto"/> | ||
<ColumnDefinition/> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition/> | ||
<RowDefinition/> | ||
</Grid.RowDefinitions> | ||
|
||
<Label Content="{x:Static p:Resources.JavaObjectLabel}"/> | ||
<sapv:ExpressionTextBox Grid.Column="1" OwnerActivity="{Binding ModelItem}" ExpressionType="local:JavaObject" HintText="{x:Static p:Resources.JavaObjectHint}" Margin="0, 0, 0, 5" | ||
Expression="{Binding Path=ModelItem.JavaObject, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=In, Mode=TwoWay}" /> | ||
|
||
<Label Grid.Row="1" Content="{x:Static p:Resources.ResultLabel}"/> | ||
<sapv:ExpressionTextBox Name="Expr" Grid.Row="1" Grid.Column="1" OwnerActivity="{Binding ModelItem}" ExpressionType="{Binding Path=ModelItem.ActivityType, Converter={StaticResource ModelToObjectValueConverter}, Mode=OneTime}" HintText="{x:Static p:Resources.InvokeMethodResultHintText}" | ||
Expression="{Binding Path=ModelItem.Result, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=Out, Mode=TwoWay}" UseLocationExpression="True" /> | ||
|
||
</Grid> | ||
</uip:ActivityDecoratorControl> | ||
</sap:ActivityDesigner> | ||
<sap:ActivityDesigner x:Class="UiPath.Java.Activities.Design.ConvertJavaObjectDesigner" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation" | ||
xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation" | ||
xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation" | ||
xmlns:uip="clr-namespace:UiPath.Activities.Presentation" | ||
xmlns:sys="clr-namespace:System;assembly=mscorlib" | ||
xmlns:local="clr-namespace:UiPath.Java;assembly=UiPath.Java" | ||
xmlns:src="clr-namespace:UiPath.Java.Activities.Design" | ||
xmlns:p="clr-namespace:UiPath.Java.Activities.Design.Properties" | ||
xmlns:uipc="clr-namespace:UiPath.Activities.Presentation.Converters"> | ||
|
||
<sap:ActivityDesigner.Resources> | ||
<ResourceDictionary> | ||
<sapc:ArgumentToExpressionConverter x:Key="ArgumentToExpressionConverter" /> | ||
<sapc:ModelToObjectValueConverter x:Key="ModelToObjectValueConverter" /> | ||
<uipc:ActivityIconConverter x:Key="ActivityIconConverter" /> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Themes/Generic.xaml" /> | ||
<ResourceDictionary Source="Themes/Icons.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</sap:ActivityDesigner.Resources> | ||
|
||
<sap:ActivityDesigner.Icon> | ||
<DrawingBrush Stretch="Uniform" Drawing="{Binding Path=ModelItem, Converter={StaticResource ActivityIconConverter}}" /> | ||
</sap:ActivityDesigner.Icon> | ||
|
||
<uip:ActivityDecoratorControl Style="{StaticResource ActivityDecoratorStyle}"> | ||
<Grid Width="300"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto"/> | ||
<ColumnDefinition/> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition/> | ||
<RowDefinition/> | ||
</Grid.RowDefinitions> | ||
|
||
<Label Content="{x:Static p:Resources.JavaObjectLabel}"/> | ||
<sapv:ExpressionTextBox Grid.Column="1" OwnerActivity="{Binding ModelItem}" ExpressionType="local:JavaObject" HintText="{x:Static p:Resources.JavaObjectHint}" Margin="0, 0, 0, 5" | ||
Expression="{Binding Path=ModelItem.JavaObject, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=In, Mode=TwoWay}" /> | ||
|
||
<Label Grid.Row="1" Content="{x:Static p:Resources.ResultLabel}"/> | ||
<sapv:ExpressionTextBox Name="Expr" Grid.Row="1" Grid.Column="1" OwnerActivity="{Binding ModelItem}" ExpressionType="{Binding Path=ModelItem.ActivityType, Converter={StaticResource ModelToObjectValueConverter}, Mode=OneTime}" HintText="{x:Static p:Resources.InvokeMethodResultHintText}" | ||
Expression="{Binding Path=ModelItem.Result, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=Out, Mode=TwoWay}" UseLocationExpression="True" /> | ||
|
||
</Grid> | ||
</uip:ActivityDecoratorControl> | ||
</sap:ActivityDesigner> |
83 changes: 45 additions & 38 deletions
83
Activities/Java/UiPath.Java.Activities.Design/CreateJavaObjectDesigner.xaml
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,38 +1,45 @@ | ||
<sap:ActivityDesigner x:Class="UiPath.Java.Activities.Design.CreateJavaObjectDesigner" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation" | ||
xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation" | ||
xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation" | ||
xmlns:uip="clr-namespace:UiPath.Activities.Presentation" | ||
xmlns:sys="clr-namespace:System;assembly=mscorlib" | ||
xmlns:local="clr-namespace:UiPath.Java;assembly=UiPath.Java" | ||
xmlns:p="clr-namespace:UiPath.Java.Activities.Design.Properties"> | ||
<sap:ActivityDesigner.Resources> | ||
<ResourceDictionary> | ||
<sapc:ArgumentToExpressionConverter x:Key="ArgumentToExpressionConverter" /> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Themes/Generic.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
|
||
</ResourceDictionary> | ||
</sap:ActivityDesigner.Resources> | ||
|
||
<uip:ActivityDecoratorControl Style="{StaticResource ActivityDecoratorStyle}"> | ||
<StackPanel Width="300"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto"/> | ||
<ColumnDefinition/> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition/> | ||
</Grid.RowDefinitions> | ||
|
||
<Label Content="{x:Static p:Resources.TargetTypeLabel}"/> | ||
<sapv:ExpressionTextBox Grid.Column="1" OwnerActivity="{Binding ModelItem}" ExpressionType="sys:String" HintText="{x:Static p:Resources.TargetTypeHintText}" Margin="0, 0, 0, 5" | ||
Expression="{Binding Path=ModelItem.TargetType, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=In, Mode=TwoWay}" /> | ||
</Grid> | ||
</StackPanel> | ||
</uip:ActivityDecoratorControl> | ||
</sap:ActivityDesigner> | ||
<sap:ActivityDesigner x:Class="UiPath.Java.Activities.Design.CreateJavaObjectDesigner" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation" | ||
xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation" | ||
xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation" | ||
xmlns:uip="clr-namespace:UiPath.Activities.Presentation" | ||
xmlns:sys="clr-namespace:System;assembly=mscorlib" | ||
xmlns:local="clr-namespace:UiPath.Java;assembly=UiPath.Java" | ||
xmlns:p="clr-namespace:UiPath.Java.Activities.Design.Properties" | ||
xmlns:uipc="clr-namespace:UiPath.Activities.Presentation.Converters"> | ||
|
||
<sap:ActivityDesigner.Resources> | ||
<ResourceDictionary> | ||
<sapc:ArgumentToExpressionConverter x:Key="ArgumentToExpressionConverter" /> | ||
<uipc:ActivityIconConverter x:Key="ActivityIconConverter" /> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Themes/Generic.xaml" /> | ||
<ResourceDictionary Source="Themes/Icons.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</sap:ActivityDesigner.Resources> | ||
|
||
<sap:ActivityDesigner.Icon> | ||
<DrawingBrush Stretch="Uniform" Drawing="{Binding Path=ModelItem, Converter={StaticResource ActivityIconConverter}}" /> | ||
</sap:ActivityDesigner.Icon> | ||
|
||
<uip:ActivityDecoratorControl Style="{StaticResource ActivityDecoratorStyle}"> | ||
<StackPanel Width="300"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto"/> | ||
<ColumnDefinition/> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition/> | ||
</Grid.RowDefinitions> | ||
|
||
<Label Content="{x:Static p:Resources.TargetTypeLabel}"/> | ||
<sapv:ExpressionTextBox Grid.Column="1" OwnerActivity="{Binding ModelItem}" ExpressionType="sys:String" HintText="{x:Static p:Resources.TargetTypeHintText}" Margin="0, 0, 0, 5" | ||
Expression="{Binding Path=ModelItem.TargetType, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=In, Mode=TwoWay}" /> | ||
</Grid> | ||
</StackPanel> | ||
</uip:ActivityDecoratorControl> | ||
</sap:ActivityDesigner> |
Oops, something went wrong.